﻿CREATE TABLE [dbo].[Rate] (
    [Id]       UNIQUEIDENTIFIER CONSTRAINT [DF_Rate_Id2] DEFAULT (newid()) NOT NULL,
    [Name]     NVARCHAR (50)    NOT NULL,
    [Rate]     NUMERIC (9, 4)   NOT NULL,
    [IsActive] BIT              NOT NULL,
    CONSTRAINT [PK_Rate] PRIMARY KEY CLUSTERED ([Id] ASC)
);




GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'Rate';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Name of the Rate.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'Rate', @level2type = N'COLUMN', @level2name = N'Name';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Rate value.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'Rate', @level2type = N'COLUMN', @level2name = N'Rate';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Flags the Rate as active or inactive (true=active)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'Rate', @level2type = N'COLUMN', @level2name = N'IsActive';

