CREATE TABLE [dbo].[nm_pol_monthly_payments_days]
(
[nmpmpd_monthly_payment_code] [dbo].[ais_code_short] NOT NULL,
[nmpmpd_day] [smallint] NOT NULL,
[nmpmpd_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[nmpmpd_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[nmpmpd_l3] [nvarchar] (64) COLLATE French_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[nm_pol_monthly_payments_days] ADD CONSTRAINT [CK_nm_pol_monthly_payments_days_nmpmpd_day] CHECK (([nmpmpd_day]>=(1) AND [nmpmpd_day]<=(31)))
GO
ALTER TABLE [dbo].[nm_pol_monthly_payments_days] ADD CONSTRAINT [PK_nm_pol_monthly_payments_days] PRIMARY KEY CLUSTERED  ([nmpmpd_monthly_payment_code], [nmpmpd_day]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[nm_pol_monthly_payments_days] ADD CONSTRAINT [FK_nm_pol_monthly_payments_days_nm_pol_monthly_payments] FOREIGN KEY ([nmpmpd_monthly_payment_code]) REFERENCES [dbo].[nm_pol_monthly_payments] ([nmpmp_monthly_payment_code])
GO
