CREATE TABLE [dbo].[act_link_types]
(
[lt_link_code] [dbo].[ais_code_short] NOT NULL,
[lt_rowver] [timestamp] NOT NULL,
[lt_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[lt_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[lt_l3] [nvarchar] (64) COLLATE French_CI_AS NULL
) ON [PRIMARY]
ALTER TABLE [dbo].[act_link_types] ADD
CONSTRAINT [CK__act_link_types_lt_link_code__string_pk] CHECK ((len(ltrim(rtrim([lt_link_code])))>(0) AND charindex('*',[lt_link_code])=(0) AND charindex('%',[lt_link_code])=(0)))
GO
ALTER TABLE [dbo].[act_link_types] ADD CONSTRAINT [PK_act_link_types] PRIMARY KEY CLUSTERED  ([lt_link_code]) ON [PRIMARY]
GO
