CREATE TABLE [dbo].[nm_invoices_operations]
(
[op_operation_code] [dbo].[ais_code_short] NOT NULL,
[op_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[op_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[op_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[op_sys] [bit] NOT NULL CONSTRAINT [DF__nm_invoices_operations__op_sys] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[nm_invoices_operations] ADD CONSTRAINT [CK__nm_invoices_operations_op_operation_code__string_pk] CHECK ((len(ltrim(rtrim([op_operation_code])))>(0) AND charindex('*',[op_operation_code])=(0) AND charindex('%',[op_operation_code])=(0)))
GO
ALTER TABLE [dbo].[nm_invoices_operations] ADD CONSTRAINT [PK_nm_invoices_operations] PRIMARY KEY CLUSTERED  ([op_operation_code]) ON [PRIMARY]
GO
