-- --------------------------------------------------
-- Entity Designer DDL Script for SQL Server 2005, 2008, and Azure
-- --------------------------------------------------
-- --------------------------------------------------
-- Creating all tables
-- --------------------------------------------------
-- Creating table 'Artists'
CREATE TABLE [dbo].[Artists] (
[Id] int IDENTITY(1,1) NOT NULL,
[Name] nvarchar(100) NOT NULL,
[IsIndividual] bit NOT NULL,
[Phone_CountryCode] nvarchar(4) NOT NULL,
[Phone_AreaCode] nvarchar(5) NOT NULL,
[Phone_Number] nvarchar(10) NOT NULL,
[Phone_Extension] nvarchar(10) NULL
);
GO
-- <snip other tables>
-- --------------------------------------------------
-- Creating all PRIMARY KEY constraints
-- --------------------------------------------------
-- Creating primary key on [Id] in table 'Artists'
ALTER TABLE [dbo].[Artists]
ADD CONSTRAINT [PK_Artists]
PRIMARY KEY CLUSTERED ([Id] ASC);
GO
-- <snip other primary and foreign key>
-- --------------------------------------------------
-- Script has ended
-- --------------------------------------------------