CREATE TABLE [dbo].[acc_accounts_types]
(
[atyp_type_code] [dbo].[ais_code_short] NOT NULL,
[atyp_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[atyp_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[atyp_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[atyp_sys] [bit] NOT NULL CONSTRAINT [DF__acc_accounts_types__atyp_sys] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[acc_accounts_types] ADD CONSTRAINT [CK__acc_accounts_types_atyp_type_code__string_pk] CHECK ((len(ltrim(rtrim([atyp_type_code])))>(0) AND charindex('*',[atyp_type_code])=(0) AND charindex('%',[atyp_type_code])=(0)))
GO
ALTER TABLE [dbo].[acc_accounts_types] ADD CONSTRAINT [PK_acc_accounts_types] PRIMARY KEY CLUSTERED  ([atyp_type_code]) ON [PRIMARY]
GO
