CREATE TABLE [dbo].[nm_status_clients]
(
[nmscli_statut_code] [dbo].[ais_code_short] NOT NULL,
[nmscli_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[nmscli_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[nmscli_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[nmscli_sys] [bit] NOT NULL CONSTRAINT [DF__nm_status_clients__nmscli_sys] DEFAULT ((0))
) ON [PRIMARY]
ALTER TABLE [dbo].[nm_status_clients] ADD
CONSTRAINT [CK__nm_status_clients_nmscli_statut_code__string_pk] CHECK ((len(ltrim(rtrim([nmscli_statut_code])))>(0) AND charindex('*',[nmscli_statut_code])=(0) AND charindex('%',[nmscli_statut_code])=(0)))
GO
ALTER TABLE [dbo].[nm_status_clients] ADD CONSTRAINT [PK_nm_status_clients] PRIMARY KEY CLUSTERED  ([nmscli_statut_code]) ON [PRIMARY]
GO
