
--Migration_RCCP_20230921_104852.txt
CREATE TABLE [dbo].[EntityAccesses] (
    [Id] [uniqueidentifier] NOT NULL DEFAULT newsequentialid(),
    [EntityType] [int] NOT NULL,
    [EntityTypeId] [nvarchar](max),
    [Privacy] [int] NOT NULL,
    CONSTRAINT [PK_dbo.EntityAccesses] PRIMARY KEY ([Id])
)
CREATE TABLE [dbo].[UserEntityAccessLinks] (
    [Id] [uniqueidentifier] NOT NULL DEFAULT newsequentialid(),
    [EntityAccessId] [uniqueidentifier] NOT NULL,
    [UserId] [bigint] NOT NULL,
    CONSTRAINT [PK_dbo.UserEntityAccessLinks] PRIMARY KEY ([Id])
)
