CREATE TABLE [dbo].[sq_types]
(
[seqt_code] [dbo].[ais_code_short] NOT NULL,
[seqt_rowver] [timestamp] NOT NULL,
[seqt_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[seqt_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[seqt_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[seqt_sys] [bit] NOT NULL CONSTRAINT [DF__sq_types__seqt_sys] DEFAULT ((0))
) ON [PRIMARY]
ALTER TABLE [dbo].[sq_types] ADD
CONSTRAINT [CK__sq_types_seqt_code__string_pk] CHECK ((len(ltrim(rtrim([seqt_code])))>(0) AND charindex('*',[seqt_code])=(0) AND charindex('%',[seqt_code])=(0)))
GO
ALTER TABLE [dbo].[sq_types] ADD CONSTRAINT [PK_sq_types] PRIMARY KEY CLUSTERED  ([seqt_code]) ON [PRIMARY]
GO
