CREATE TABLE [dbo].[pol_periods]
(
[per_period_code] [dbo].[ais_code_short] NOT NULL,
[per_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[per_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[per_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[per_years] [smallint] NULL,
[per_sys] [bit] NOT NULL CONSTRAINT [DF__pol_periods__per_sys] DEFAULT ((0))
) ON [PRIMARY]
ALTER TABLE [dbo].[pol_periods] ADD
CONSTRAINT [CK__pol_periods_per_period_code__string_pk] CHECK ((len(ltrim(rtrim([per_period_code])))>(0) AND charindex('*',[per_period_code])=(0) AND charindex('%',[per_period_code])=(0)))
GO
ALTER TABLE [dbo].[pol_periods] ADD CONSTRAINT [PK_pol_periods] PRIMARY KEY CLUSTERED  ([per_period_code]) ON [PRIMARY]
GO
