CREATE TABLE [dbo].[md_grids_summaries_positions]
(
[gsp_position_code] [dbo].[ais_code_short] NOT NULL,
[gsp_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[gsp_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[gsp_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[gsp_sys] [bit] NOT NULL CONSTRAINT [DF__md_grids_summaries_positions__gsp_sys] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[md_grids_summaries_positions] ADD CONSTRAINT [CK__md_grids_summaries_positions_gsp_position_code__string_pk] CHECK ((len(ltrim(rtrim([gsp_position_code])))>(0) AND charindex('*',[gsp_position_code])=(0) AND charindex('%',[gsp_position_code])=(0)))
GO
ALTER TABLE [dbo].[md_grids_summaries_positions] ADD CONSTRAINT [PK_md_grids_summaries_positions] PRIMARY KEY CLUSTERED  ([gsp_position_code]) ON [PRIMARY]
GO
