-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTokenStore.edmx.sql
More file actions
61 lines (49 loc) · 1.81 KB
/
TokenStore.edmx.sql
File metadata and controls
61 lines (49 loc) · 1.81 KB
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
-- --------------------------------------------------
-- Entity Designer DDL Script for SQL Server 2005, 2008, and Azure
-- --------------------------------------------------
-- Date Created: 11/05/2012 05:38:07
-- Generated from EDMX file: c:\proj\Yam\YammerServer\TokenStore.edmx
-- --------------------------------------------------
SET QUOTED_IDENTIFIER OFF;
GO
USE [YamAz];
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].[Tokens]', 'U') IS NOT NULL
DROP TABLE [dbo].[Tokens];
GO
-- --------------------------------------------------
-- Creating all tables
-- --------------------------------------------------
-- Creating table 'Tokens'
CREATE TABLE [dbo].[Tokens] (
[Id] uniqueidentifier NOT NULL,
[StoreTypeId] tinyint NOT NULL,
[UserId] nvarchar(max) NOT NULL,
[TokenContent] nvarchar(max) NOT NULL,
[Type] int NOT NULL,
[Secret] nvarchar(max) NULL,
[ContextContent] nvarchar(max) NULL
);
GO
-- --------------------------------------------------
-- Creating all PRIMARY KEY constraints
-- --------------------------------------------------
-- Creating primary key on [Id] in table 'Tokens'
ALTER TABLE [dbo].[Tokens]
ADD CONSTRAINT [PK_Tokens]
PRIMARY KEY CLUSTERED ([Id] ASC);
GO
-- --------------------------------------------------
-- Creating all FOREIGN KEY constraints
-- --------------------------------------------------
-- --------------------------------------------------
-- Script has ended
-- --------------------------------------------------