Skip to content

Commit

Permalink
Added database script (SQL Server)
Browse files Browse the repository at this point in the history
  • Loading branch information
markrendle committed May 30, 2012
1 parent 61590e0 commit 3f3d3e1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions database.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
CREATE TABLE [dbo].[Signup](
[Id] [uniqueidentifier] ROWGUIDCOL NOT NULL,
[Email] [nvarchar](256) NOT NULL,
[Number] [int] IDENTITY(1,1) NOT NULL,
[CreatedAt] [datetime] NOT NULL,
CONSTRAINT [PK_Signup] PRIMARY KEY CLUSTERED
(
[Id] ASC
)

CREATE TABLE [dbo].[Invitation](
[Id] [uniqueidentifier] ROWGUIDCOL NOT NULL,
[SignupId] [uniqueidentifier] NOT NULL,
[InvitedAt] [datetime] NOT NULL,
[InvitedBy] [nvarchar](40) NOT NULL,
CONSTRAINT [PK_Invitation] PRIMARY KEY CLUSTERED
(
[Id] ASC
)

0 comments on commit 3f3d3e1

Please sign in to comment.