CREATE TABLE [dbo].[dyn_types]
(
[dt_type_code] [dbo].[ais_code_short] NOT NULL,
[dt_rowver] [timestamp] NOT NULL,
[dt_table_name] [dbo].[ais_name] NOT NULL
) ON [PRIMARY]
ALTER TABLE [dbo].[dyn_types] ADD
CONSTRAINT [CK__dyn_types_dt_type_code__string_pk] CHECK ((len(ltrim(rtrim([dt_type_code])))>(0) AND charindex('*',[dt_type_code])=(0) AND charindex('%',[dt_type_code])=(0)))
GO
ALTER TABLE [dbo].[dyn_types] ADD CONSTRAINT [PK_dyn_types] PRIMARY KEY CLUSTERED  ([dt_type_code]) ON [PRIMARY]
GO
