CREATE TABLE [dbo].[acc_currencies]
(
[cur_currency_code] [dbo].[ais_code_short] NOT NULL,
[cur_rowver] [timestamp] NOT NULL,
[cur_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[cur_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[cur_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[cur_use_decimals] [bit] NOT NULL CONSTRAINT [DF__acc_currencies__cur_use_decimals] DEFAULT ((0)),
[cur_symbol] [nvarchar] (10) COLLATE French_CI_AS NULL,
[cur_symbol_position_left] [bit] NOT NULL CONSTRAINT [DF__acc_currencies__cur_symbol_position_left] DEFAULT ((0))
) ON [PRIMARY]
ALTER TABLE [dbo].[acc_currencies] ADD
CONSTRAINT [CK__acc_currencies_cur_currency_code__string_pk] CHECK ((len(ltrim(rtrim([cur_currency_code])))>(0) AND charindex('*',[cur_currency_code])=(0) AND charindex('%',[cur_currency_code])=(0)))
GO
ALTER TABLE [dbo].[acc_currencies] ADD CONSTRAINT [PK_acc_currencies] PRIMARY KEY CLUSTERED  ([cur_currency_code]) ON [PRIMARY]
GO
