CREATE TABLE [dbo].[pol_mvts]
(
[pmvt_mvt_code] [dbo].[ais_code_short] NOT NULL,
[pmvt_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[pmvt_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[pmvt_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[pmvt_type_code] [dbo].[ais_code_short] NOT NULL
) ON [PRIMARY]
ALTER TABLE [dbo].[pol_mvts] ADD
CONSTRAINT [CK__pol_mvts_pmvt_mvt_code__string_pk] CHECK ((len(ltrim(rtrim([pmvt_mvt_code])))>(0) AND charindex('*',[pmvt_mvt_code])=(0) AND charindex('%',[pmvt_mvt_code])=(0)))
ALTER TABLE [dbo].[pol_mvts] ADD
CONSTRAINT [FK_pol_mvts_nm_types_mvts_pol] FOREIGN KEY ([pmvt_type_code]) REFERENCES [dbo].[nm_types_mvts_pol] ([nmtmpol_type_code])
GO
ALTER TABLE [dbo].[pol_mvts] ADD CONSTRAINT [PK_pol_mvts] PRIMARY KEY CLUSTERED  ([pmvt_mvt_code]) ON [PRIMARY]
GO
