
--Migration_RCCP_20221007_144105.txt
EXECUTE sp_rename @objname = N'dbo.Rules', @newname = N'Rules1', @objtype = N'OBJECT'
IF object_id('[PK_dbo.Rules]') IS NOT NULL BEGIN
    EXECUTE sp_rename @objname = N'[PK_dbo.Rules]', @newname = N'PK_dbo.Rules1', @objtype = N'OBJECT'
END
CREATE TABLE [dbo].[Rules] (
    [ID] [bigint] NOT NULL IDENTITY,
    [Name] [nvarchar](max),
    [RuleType] [int] NOT NULL,
    [Params] [nvarchar](max),
    [IsActive] [bit] NOT NULL,
    [CompanyId] [bigint] NOT NULL,
    CONSTRAINT [PK_dbo.Rules] PRIMARY KEY ([ID])
)
