dev
Line | |
---|
1 | CREATE TABLE [dbo].[Student] (
|
---|
2 | [Id] BIGINT IDENTITY (1, 1) NOT NULL,
|
---|
3 | [Uid] UNIQUEIDENTIFIER NOT NULL,
|
---|
4 | [ApplicationUserFk] BIGINT NOT NULL,
|
---|
5 | [IndexNumber] NVARCHAR (1) NOT NULL,
|
---|
6 | [Reputation] BIGINT DEFAULT (CONVERT([bigint],(0))) NOT NULL,
|
---|
7 | [ReportReputation] BIGINT DEFAULT (CONVERT([bigint],(0))) NOT NULL,
|
---|
8 | [ImageUrl] NVARCHAR (1) NOT NULL,
|
---|
9 | CONSTRAINT [PK_Student] PRIMARY KEY CLUSTERED ([Id] ASC),
|
---|
10 | CONSTRAINT [FK_Student_AspNetUsers_ApplicationUserFk] FOREIGN KEY ([ApplicationUserFk]) REFERENCES [dbo].[AspNetUsers] ([Id])
|
---|
11 | );
|
---|
12 |
|
---|
13 |
|
---|
14 | GO
|
---|
15 | CREATE UNIQUE NONCLUSTERED INDEX [IX_Student_ApplicationUserFk]
|
---|
16 | ON [dbo].[Student]([ApplicationUserFk] ASC);
|
---|
17 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.