CREATE TABLE [dbo].[doc_collections_docs_statuses]
(
[dcds_status_code] [dbo].[ais_code_short] NOT NULL,
[dcds_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[dcds_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[dcds_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[dcds_sys] [bit] NOT NULL CONSTRAINT [DF__doc_collections_docs_statuses__dcds_sys] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[doc_collections_docs_statuses] ADD CONSTRAINT [CK__doc_collections_docs_statuses_dcds_status_code__string_pk] CHECK ((len(ltrim(rtrim([dcds_status_code])))>(0) AND charindex('*',[dcds_status_code])=(0) AND charindex('%',[dcds_status_code])=(0)))
GO
ALTER TABLE [dbo].[doc_collections_docs_statuses] ADD CONSTRAINT [PK_doc_collections_docs_statuses] PRIMARY KEY CLUSTERED  ([dcds_status_code]) ON [PRIMARY]
GO
