CREATE TABLE [dbo].[nm_accounts_operations]
(
[aco_operation_code] [dbo].[ais_code_short] NOT NULL,
[aco_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[aco_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[aco_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[aco_sys] [bit] NOT NULL CONSTRAINT [DF__nm_accounts_operations__aco_sys] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[nm_accounts_operations] ADD CONSTRAINT [CK__nm_accounts_operations_aco_operation_code__string_pk] CHECK ((len(ltrim(rtrim([aco_operation_code])))>(0) AND charindex('*',[aco_operation_code])=(0) AND charindex('%',[aco_operation_code])=(0)))
GO
ALTER TABLE [dbo].[nm_accounts_operations] ADD CONSTRAINT [PK_nm_accounts_operations] PRIMARY KEY CLUSTERED  ([aco_operation_code]) ON [PRIMARY]
GO
