CREATE TABLE [dbo].[cts_methods]
(
[ctsm_met_code] [dbo].[ais_code_short] NOT NULL,
[ctsm_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[ctsm_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[ctsm_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[ctsm_premium_broker] [bit] NOT NULL CONSTRAINT [DF__cts_methods__ctsm_premium_broker] DEFAULT ((0)),
[ctsm_premium_broker_prorata] [bit] NOT NULL CONSTRAINT [DF__cts_methods__ctsm_premium_broker_prorata] DEFAULT ((0)),
[ctsm_premium_cie] [bit] NOT NULL CONSTRAINT [DF__cts_methods__ctsm_premium_cie] DEFAULT ((0)),
[ctsm_premium_cie_prorata] [bit] NOT NULL CONSTRAINT [DF__cts_methods__ctsm_premium_cie_prorata] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cts_methods] ADD CONSTRAINT [CK__cts_methods_ctsm_met_code__string_pk] CHECK ((len(ltrim(rtrim([ctsm_met_code])))>(0) AND charindex('*',[ctsm_met_code])=(0) AND charindex('%',[ctsm_met_code])=(0)))
GO
ALTER TABLE [dbo].[cts_methods] ADD CONSTRAINT [PK_cts_methods] PRIMARY KEY CLUSTERED  ([ctsm_met_code]) ON [PRIMARY]
GO
