CREATE TABLE [dbo].[grpusg_bm]
(
[bm_bm_code] [dbo].[ais_code_short] NOT NULL,
[bm_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[bm_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[bm_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[bm_sys] [bit] NOT NULL CONSTRAINT [DF__grpusg_bm__bm_sys] DEFAULT ((0))
) ON [PRIMARY]
ALTER TABLE [dbo].[grpusg_bm] ADD
CONSTRAINT [CK__grpusg_bm_bm_bm_code__string_pk] CHECK ((len(ltrim(rtrim([bm_bm_code])))>(0) AND charindex('*',[bm_bm_code])=(0) AND charindex('%',[bm_bm_code])=(0)))
GO
ALTER TABLE [dbo].[grpusg_bm] ADD CONSTRAINT [PK_grpusg_bm] PRIMARY KEY CLUSTERED  ([bm_bm_code]) ON [PRIMARY]
GO
