CREATE TABLE [dbo].[nm_claims_events_categories]
(
[evtcat_category_code] [dbo].[ais_code_short] NOT NULL,
[evtcat_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[evtcat_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[evtcat_l3] [nvarchar] (64) COLLATE French_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[nm_claims_events_categories] ADD CONSTRAINT [CK__nm_claims_events_categories_evtcat_category_code__string_pk] CHECK ((len(ltrim(rtrim([evtcat_category_code])))>(0) AND charindex('*',[evtcat_category_code])=(0) AND charindex('%',[evtcat_category_code])=(0)))
GO
ALTER TABLE [dbo].[nm_claims_events_categories] ADD CONSTRAINT [PK_nm_claims_events_categories] PRIMARY KEY CLUSTERED  ([evtcat_category_code]) ON [PRIMARY]
GO
