CREATE TABLE [dbo].[nm_pol_monthly_payments]
(
[nmpmp_monthly_payment_code] [dbo].[ais_code_short] NOT NULL,
[nmpmp_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[nmpmp_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[nmpmp_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[nmpmp_authorized_rejection_count] [smallint] NOT NULL CONSTRAINT [DF_nm_pol_monthly_payments_nmpmp_authorized_rejection_count] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[nm_pol_monthly_payments] ADD CONSTRAINT [CK_nm_pol_monthly_payments_nmpmp_authorized_rejection_count] CHECK (([nmpmp_authorized_rejection_count]>=(0) AND [nmpmp_authorized_rejection_count]<=(30)))
GO
ALTER TABLE [dbo].[nm_pol_monthly_payments] ADD CONSTRAINT [CK__nm_pol_monthly_payments_nmpmp_monthly_payment_code__string_pk] CHECK ((len(ltrim(rtrim([nmpmp_monthly_payment_code])))>(0) AND charindex('*',[nmpmp_monthly_payment_code])=(0) AND charindex('%',[nmpmp_monthly_payment_code])=(0)))
GO
ALTER TABLE [dbo].[nm_pol_monthly_payments] ADD CONSTRAINT [PK_nm_pol_monthly_payments] PRIMARY KEY CLUSTERED  ([nmpmp_monthly_payment_code]) ON [PRIMARY]
GO
