-
Notifications
You must be signed in to change notification settings - Fork 2
/
TodoEntities.edmx.sql
58 lines (46 loc) · 1.7 KB
/
TodoEntities.edmx.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
-- --------------------------------------------------
-- Entity Designer DDL Script for SQL Server 2005, 2008, and Azure
-- --------------------------------------------------
-- Date Created: 08/09/2012 12:42:23
-- Generated from EDMX file: C:\Users\Steve\Downloads\Todo-MVC\Todo\TodoEntities.edmx
-- --------------------------------------------------
SET QUOTED_IDENTIFIER OFF;
GO
USE [Todo];
GO
IF SCHEMA_ID(N'dbo') IS NULL EXECUTE(N'CREATE SCHEMA [dbo]');
GO
-- --------------------------------------------------
-- Dropping existing FOREIGN KEY constraints
-- --------------------------------------------------
-- --------------------------------------------------
-- Dropping existing tables
-- --------------------------------------------------
IF OBJECT_ID(N'[dbo].[TodoSet]', 'U') IS NOT NULL
DROP TABLE [dbo].[TodoSet];
GO
-- --------------------------------------------------
-- Creating all tables
-- --------------------------------------------------
-- Creating table 'TodoSet'
CREATE TABLE [dbo].[TodoSet] (
[Id] int IDENTITY(1,1) NOT NULL,
[Order] int NOT NULL,
[Done] bit NOT NULL,
[Text] nvarchar(max) NOT NULL
);
GO
-- --------------------------------------------------
-- Creating all PRIMARY KEY constraints
-- --------------------------------------------------
-- Creating primary key on [Id] in table 'TodoSet'
ALTER TABLE [dbo].[TodoSet]
ADD CONSTRAINT [PK_TodoSet]
PRIMARY KEY CLUSTERED ([Id] ASC);
GO
-- --------------------------------------------------
-- Creating all FOREIGN KEY constraints
-- --------------------------------------------------
-- --------------------------------------------------
-- Script has ended
-- --------------------------------------------------