
--Migration_RCCP_20220211_123549.txt
CREATE TABLE [dbo].[AreaAppPermissions] (
    [Id] [bigint] NOT NULL IDENTITY,
    [AreaId] [bigint] NOT NULL,
    [AppPermissionType] [int] NOT NULL,
    CONSTRAINT [PK_dbo.AreaAppPermissions] PRIMARY KEY ([Id])
)
CREATE INDEX [IX_AreaId] ON [dbo].[AreaAppPermissions]([AreaId])
ALTER TABLE [dbo].[AreaAppPermissions] ADD CONSTRAINT [FK_dbo.AreaAppPermissions_dbo.FFAreas_AreaId] FOREIGN KEY ([AreaId]) REFERENCES [dbo].[FFAreas] ([Id])
