CREATE TABLE [dbo].[crystal_errors_codes]
(
[cec_crystal_error_code] [dbo].[ais_code_long] NOT NULL,
[cec_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[cec_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[cec_l3] [nvarchar] (64) COLLATE French_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[crystal_errors_codes] ADD CONSTRAINT [CK__crystal_errors_codes_cec_crystal_error_code__string_pk] CHECK ((len(ltrim(rtrim([cec_crystal_error_code])))>(0) AND charindex('*',[cec_crystal_error_code])=(0) AND charindex('%',[cec_crystal_error_code])=(0)))
GO
ALTER TABLE [dbo].[crystal_errors_codes] ADD CONSTRAINT [PK_crystal_errors_codes] PRIMARY KEY CLUSTERED  ([cec_crystal_error_code]) ON [PRIMARY]
GO
