-
Notifications
You must be signed in to change notification settings - Fork 0
/
Model1.edmx.sqlce
69 lines (55 loc) · 2.08 KB
/
Model1.edmx.sqlce
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
59
60
61
62
63
64
65
66
67
68
69
-- --------------------------------------------------
-- Entity Designer DDL Script for SQL Server Compact Edition
-- --------------------------------------------------
-- Date Created: 08/06/2010 11:25:06
-- Generated from EDMX file: C:\Users\Jaddie\Documents\Coding\WCell-Utility-Bot\Model1.edmx
-- --------------------------------------------------
-- --------------------------------------------------
-- Dropping existing FOREIGN KEY constraints
-- NOTE: if the constraint does not exist, an ignorable error will be reported.
-- --------------------------------------------------
-- --------------------------------------------------
-- Dropping existing tables
-- NOTE: if the table does not exist, an ignorable error will be reported.
-- --------------------------------------------------
DROP TABLE [Accounts];
GO
DROP TABLE [Messages];
GO
-- --------------------------------------------------
-- Creating all tables
-- --------------------------------------------------
-- Creating table 'Accounts'
CREATE TABLE [Accounts] (
[Username] nvarchar(4000) NOT NULL,
[Password] nvarchar(4000) NOT NULL,
[UserLevel] nvarchar(4000) NOT NULL
);
GO
-- Creating table 'Messages'
CREATE TABLE [Messages] (
[DateLeft] nvarchar(4000) NOT NULL,
[IrcNick] nvarchar(4000) NOT NULL,
[MessageText] nvarchar(4000) NOT NULL,
[FromIrcNick] nvarchar(4000) NOT NULL
);
GO
-- --------------------------------------------------
-- Creating all PRIMARY KEY constraints
-- --------------------------------------------------
-- Creating primary key on [Username] in table 'Accounts'
ALTER TABLE [Accounts]
ADD CONSTRAINT [PK_Accounts]
PRIMARY KEY ([Username] );
GO
-- Creating primary key on [DateLeft] in table 'Messages'
ALTER TABLE [Messages]
ADD CONSTRAINT [PK_Messages]
PRIMARY KEY ([DateLeft] );
GO
-- --------------------------------------------------
-- Creating all FOREIGN KEY constraints
-- --------------------------------------------------
-- --------------------------------------------------
-- Script has ended
-- --------------------------------------------------