CREATE TABLE [dbo].[md_cultures]
(
[clt_culture_code] [dbo].[ais_code_short] NOT NULL,
[clt_rowver] [timestamp] NOT NULL,
[clt_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[clt_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[clt_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[clt_language_code] [dbo].[ais_code_short] NOT NULL,
[clt_decimal_separator] [nvarchar] (2) COLLATE French_CI_AS NOT NULL CONSTRAINT [DF_md_cultures_clt_decimal_separator] DEFAULT ('.'),
[clt_thousands_separator] [nvarchar] (1) COLLATE French_CI_AS NOT NULL CONSTRAINT [DF_md_cultures_clt_thousands_separator] DEFAULT (' ')
) ON [PRIMARY]
ALTER TABLE [dbo].[md_cultures] ADD
CONSTRAINT [FK_md_cultures_md_languages] FOREIGN KEY ([clt_language_code]) REFERENCES [dbo].[md_languages] ([lng_language_code])
ALTER TABLE [dbo].[md_cultures] ADD
CONSTRAINT [CK__md_cultures_clt_culture_code__string_pk] CHECK ((len(ltrim(rtrim([clt_culture_code])))>(0) AND charindex('*',[clt_culture_code])=(0) AND charindex('%',[clt_culture_code])=(0)))
GO
ALTER TABLE [dbo].[md_cultures] ADD CONSTRAINT [PK_md_cultures] PRIMARY KEY CLUSTERED  ([clt_culture_code]) ON [PRIMARY]
GO
