CREATE TABLE [dbo].[nm_types_addresses]
(
[nmtadr_type_code] [dbo].[ais_code_short] NOT NULL,
[nmtadr_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[nmtadr_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[nmtadr_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[nmtadr_corresp] [bit] NOT NULL CONSTRAINT [DF__nm_types_addresses__nmtadr_corresp] DEFAULT ((0))
) ON [PRIMARY]
ALTER TABLE [dbo].[nm_types_addresses] ADD
CONSTRAINT [CK__nm_types_addresses_nmtadr_type_code__string_pk] CHECK ((len(ltrim(rtrim([nmtadr_type_code])))>(0) AND charindex('*',[nmtadr_type_code])=(0) AND charindex('%',[nmtadr_type_code])=(0)))
GO
ALTER TABLE [dbo].[nm_types_addresses] ADD CONSTRAINT [PK_nm_types_addresses] PRIMARY KEY CLUSTERED  ([nmtadr_type_code]) ON [PRIMARY]
GO
