CREATE TABLE [dbo].[nm_types_retro_base_amount]
(
[nmtrba_base_amount_code] [dbo].[ais_code_medium] NOT NULL,
[nmtrba_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[nmtrba_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[nmtrba_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[nmtrba_sys] [bit] NOT NULL CONSTRAINT [DF__nm_types_retro_base_amount__nmtrba_sys] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[nm_types_retro_base_amount] ADD CONSTRAINT [CK__nm_types_retro_base_amount_nmtrba_base_amount_code__string_pk] CHECK ((len(ltrim(rtrim([nmtrba_base_amount_code])))>(0) AND charindex('*',[nmtrba_base_amount_code])=(0) AND charindex('%',[nmtrba_base_amount_code])=(0)))
GO
ALTER TABLE [dbo].[nm_types_retro_base_amount] ADD CONSTRAINT [PK_nm_types_retro_base_amount] PRIMARY KEY CLUSTERED  ([nmtrba_base_amount_code]) ON [PRIMARY]
GO
