CREATE TABLE [dbo].[nm_invoices_nm_monthly_payments_statuses]
(
[nminmps_monthly_payment_status_code] [dbo].[ais_code_short] NOT NULL,
[nminmps_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[nminmps_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[nminmps_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[nminmps_litigation_eligible] [bit] NOT NULL,
[nminmps_payed] [bit] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[nm_invoices_nm_monthly_payments_statuses] ADD CONSTRAINT [CK__nm_invoices_nm_monthly_payments_statuses_nminmps_monthly_payment_status_code__string_pk] CHECK ((len(ltrim(rtrim([nminmps_monthly_payment_status_code])))>(0) AND charindex('*',[nminmps_monthly_payment_status_code])=(0) AND charindex('%',[nminmps_monthly_payment_status_code])=(0)))
GO
ALTER TABLE [dbo].[nm_invoices_nm_monthly_payments_statuses] ADD CONSTRAINT [PK_nm_invoices_nm_monthly_payments_statuses] PRIMARY KEY CLUSTERED  ([nminmps_monthly_payment_status_code]) ON [PRIMARY]
GO
