﻿CREATE TABLE [dbo].[SubscriptionGroup] (
    [Id]                    UNIQUEIDENTIFIER CONSTRAINT [DF_SubscriptionGroup_Id2] DEFAULT (newid()) NOT NULL,
    [SubscriptionGroupName] NVARCHAR (50)    NOT NULL,
    [Isactive]              INT              NOT NULL,
    [AnnualizedDiscount]    NUMERIC (3, 3)   NULL,
    CONSTRAINT [PK_SubscriptionGroup] PRIMARY KEY CLUSTERED ([Id] ASC)
);




GO



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


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Determines if the specific SubscriptionGroup is active.  Values: 0=inactive, 1=active.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'SubscriptionGroup', @level2type = N'COLUMN', @level2name = N'Isactive';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Discount to be applied if subscriptions are paid in advance annually.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'SubscriptionGroup', @level2type = N'COLUMN', @level2name = N'AnnualizedDiscount';

