CREATE TABLE [dbo].[acc_mpay_bordereaux_statuses]
(
[mpays_status_code] [dbo].[ais_code_short] NOT NULL,
[mpays_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[mpays_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[mpays_l3] [nvarchar] (64) COLLATE French_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[acc_mpay_bordereaux_statuses] ADD CONSTRAINT [CK__acc_mpay_bordereaux_statuses_mpays_status_code__string_pk] CHECK ((len(ltrim(rtrim([mpays_status_code])))>(0) AND charindex('*',[mpays_status_code])=(0) AND charindex('%',[mpays_status_code])=(0)))
GO
ALTER TABLE [dbo].[acc_mpay_bordereaux_statuses] ADD CONSTRAINT [PK_acc_mpay_statuses] PRIMARY KEY CLUSTERED  ([mpays_status_code]) ON [PRIMARY]
GO
