CREATE TABLE [dbo].[nm_claims_tiers_types]
(
[tit_type_code] [dbo].[ais_code_short] NOT NULL,
[tit_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[tit_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[tit_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[tit_scen_code] [dbo].[ais_code_short] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[nm_claims_tiers_types] ADD CONSTRAINT [CK__nm_claims_tiers_types_tit_type_code__string_pk] CHECK ((len(ltrim(rtrim([tit_type_code])))>(0) AND charindex('*',[tit_type_code])=(0) AND charindex('%',[tit_type_code])=(0)))
GO
ALTER TABLE [dbo].[nm_claims_tiers_types] ADD CONSTRAINT [CK__mm_claims_tiers_types_tit_type_code__string_pk] CHECK ((len(ltrim(rtrim([tit_type_code])))>(0) AND charindex('*',[tit_type_code])=(0) AND charindex('%',[tit_type_code])=(0)))
GO
ALTER TABLE [dbo].[nm_claims_tiers_types] ADD CONSTRAINT [PK_nm_claims_tiers_types] PRIMARY KEY CLUSTERED  ([tit_type_code]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[nm_claims_tiers_types] ADD CONSTRAINT [FK_nm_claims_tiers_types_dyn_scenarios] FOREIGN KEY ([tit_scen_code]) REFERENCES [dbo].[dyn_scenarios] ([sc_scen_code])
GO
