mirror of
https://github.com/bitwarden/server.git
synced 2025-06-12 22:10:50 -05:00

* Organization integration creation, update, and deletion database logic * Additional procs and entity tweaks * Use check * Couple newlines * Forgot to script the two org procs
14 lines
639 B
Transact-SQL
14 lines
639 B
Transact-SQL
CREATE TABLE [dbo].[OrganizationIntegrationConfiguration]
|
|
(
|
|
[Id] UNIQUEIDENTIFIER NOT NULL,
|
|
[OrganizationIntegrationId] UNIQUEIDENTIFIER NOT NULL,
|
|
[EventType] SMALLINT NOT NULL,
|
|
[Configuration] VARCHAR (MAX) NULL,
|
|
[Template] VARCHAR (MAX) NULL,
|
|
[CreationDate] DATETIME2 (7) NOT NULL,
|
|
[RevisionDate] DATETIME2 (7) NOT NULL,
|
|
CONSTRAINT [PK_OrganizationIntegrationConfiguration] PRIMARY KEY CLUSTERED ([Id] ASC),
|
|
CONSTRAINT [FK_OrganizationIntegrationConfiguration_OrganizationIntegration] FOREIGN KEY ([OrganizationIntegrationId]) REFERENCES [dbo].[OrganizationIntegration] ([Id]) ON DELETE CASCADE
|
|
);
|
|
GO
|