Source

main / Source / WebClient / Web.DataLayer / Scripts / Repository.sql

CREATE TABLE [dbo].[Repository]
(
    [Id] INT IDENTITY(1,1) NOT NULL , 
    [RepositoryTypeId] INT NOT NULL, 
    [Link] NVARCHAR(MAX) NOT NULL, 
    [RegisteredDate] DATETIME NOT NULL, 
    [UserId] INT NOT NULL, 
    CONSTRAINT [FK_Repository_User] FOREIGN KEY ([UserId]) REFERENCES [User]([Id]), 
    CONSTRAINT [FK_Repository_RespositoryType] FOREIGN KEY ([RepositoryTypeId]) REFERENCES [RepositoryType]([Id]), 
    CONSTRAINT [PK_Repository] PRIMARY KEY ([Id])
)