Source

main / Source / WebService / AdminServiceDatabase / dbo / Tables / RepositoryDetails.sql

CREATE TABLE [dbo].[RepositoryDetails] (
    [Id]               INT            IDENTITY (1, 1) NOT NULL,
    [RepositoryName]   VARCHAR (250)  NOT NULL,
    [RepositoryTypeId] SMALLINT       NOT NULL,
    [GetIdentifierUrl] NVARCHAR (250) NOT NULL,
    [PostFileUrl]      NVARCHAR (250) NOT NULL,
    [UserId]           NVARCHAR (250) NULL,
    [Password]         NVARCHAR (250) NULL,
    [UserAgreement]    NVARCHAR (MAX) NULL,
    [IsActive]         BIT            CONSTRAINT [DF_RepositoryDetails_IsActive] DEFAULT ((0)) NULL,
    [LastModified]     DATETIME       NULL,
    [CreatedBy] [int] NOT NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [FK_RepositoryDetails_RepositoryType] FOREIGN KEY ([RepositoryTypeId]) REFERENCES [dbo].[RepositoryType] ([RepositoryTypeId]) ON DELETE NO ACTION ON UPDATE NO ACTION,
    CONSTRAINT [FK_RepositoryDetails_RepositoryDetails] FOREIGN KEY([CreatedBy]) REFERENCES [dbo].[AdminUser] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION
);