mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05:00

* Add Gateway columns to Provider table * Add ProviderId column to Transaction table * Create ProviderPlan table * Matt's feedback * Rui's feedback * Fixed Gateway parameter on Provider
12 lines
576 B
Transact-SQL
12 lines
576 B
Transact-SQL
CREATE TABLE [dbo].[ProviderPlan] (
|
|
[Id] UNIQUEIDENTIFIER NOT NULL,
|
|
[ProviderId] UNIQUEIDENTIFIER NOT NULL,
|
|
[PlanType] TINYINT NOT NULL,
|
|
[SeatMinimum] INT NULL,
|
|
[PurchasedSeats] INT NULL,
|
|
[AllocatedSeats] INT NULL,
|
|
CONSTRAINT [PK_ProviderPlan] PRIMARY KEY CLUSTERED ([Id] ASC),
|
|
CONSTRAINT [FK_ProviderPlan_Provider] FOREIGN KEY ([ProviderId]) REFERENCES [dbo].[Provider] ([Id]) ON DELETE CASCADE,
|
|
CONSTRAINT [PK_ProviderPlanType] UNIQUE ([ProviderId], [PlanType])
|
|
);
|