CREATE TABLE [dbo].[nm_batches_statuses]
(
[nmbs_batch_status_code] [dbo].[ais_code_medium] NOT NULL,
[nmbs_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[nmbs_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[nmbs_l3] [nvarchar] (64) COLLATE French_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[nm_batches_statuses] ADD CONSTRAINT [CK__nm_batches_statuses_nmbs_batch_status_code__string_pk] CHECK ((len(ltrim(rtrim([nmbs_batch_status_code])))>(0) AND charindex('*',[nmbs_batch_status_code])=(0) AND charindex('%',[nmbs_batch_status_code])=(0)))
GO
ALTER TABLE [dbo].[nm_batches_statuses] ADD CONSTRAINT [PK_nm_batches_statuses] PRIMARY KEY CLUSTERED  ([nmbs_batch_status_code]) ON [PRIMARY]
GO
