1 Star 1 Fork 1

非洲平头哥/ProDotnetDesignPatternFramework45

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Plan.sql 2.97 KB
一键复制 编辑 原始数据 按行查看 历史
Shubham Patil 提交于 2017-09-19 08:04 +08:00 . Upload
/*==============================================================*/
/* Table: Task */
/*==============================================================*/
create table Task (
Id int identity,
UserId int not null,
Name nvarchar(100) not null default '0',
Description nvarchar(max) null default '0',
StartDate datetime not null,
EndDate datetime null default '0',
CreatedOn datetime not null default getdate(),
CreatedBy int null,
ChangedOn datetime not null default getdate(),
ChangedBy int null,
constraint PK_TASK primary key nonclustered (Id)
)
go
/*==============================================================*/
/* Index: IndexPlanUserId */
/*==============================================================*/
create index IndexPlanUserId on Task (
UserId ASC
)
go
/*==============================================================*/
/* Index: IndexPlanStartDate */
/*==============================================================*/
create index IndexPlanStartDate on Task (
StartDate ASC
)
go
/*==============================================================*/
/* Index: IndexPlanName */
/*==============================================================*/
create index IndexPlanName on Task (
Name ASC
)
go
/*==============================================================*/
/* Table: "User" */
/*==============================================================*/
create table "User" (
Id int identity,
FirstName nvarchar(30) not null,
LastName nvarchar(30) not null,
Email nvarchar(100) not null,
CreatedOn datetime not null default getdate(),
CreatedBy int null,
ChangedOn datetime not null default getdate(),
ChangedBy int null,
constraint PK_USER primary key nonclustered (Id)
)
go
/*==============================================================*/
/* Index: IndexUserLastName */
/*==============================================================*/
create index IndexUserLastName on "User" (
LastName ASC
)
go
/*==============================================================*/
/* Index: IndexUserEmail */
/*==============================================================*/
create unique index IndexUserEmail on "User" (
Email ASC
)
go
alter table Task
add constraint FK_TASK_REFERENCE_USER foreign key (UserId)
references "User" (Id)
go
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/Alexander360/ProDotnetDesignPatternFramework45.git
git@gitee.com:Alexander360/ProDotnetDesignPatternFramework45.git
Alexander360
ProDotnetDesignPatternFramework45
ProDotnetDesignPatternFramework45
master

搜索帮助