source: src/FinkiChattery/FinkiChattery.Database/dbo/Tables/Student.sql@ e6a6d9a

dev
Last change on this file since e6a6d9a was e6a6d9a, checked in by Стојков Марко <mst@…>, 3 years ago

Initialized FinkiChattery project

  • Property mode set to 100644
File size: 785 bytes
Line 
1CREATE 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
14GO
15CREATE UNIQUE NONCLUSTERED INDEX [IX_Student_ApplicationUserFk]
16 ON [dbo].[Student]([ApplicationUserFk] ASC);
17
Note: See TracBrowser for help on using the repository browser.