更改Users表结构增加非空约束

This commit is contained in:
Argo-Lenovo 2016-10-24 16:36:49 +08:00
parent f4d5831e35
commit a2bf36db17
1 changed files with 4 additions and 4 deletions

View File

@ -19,10 +19,10 @@ SET QUOTED_IDENTIFIER ON
GO GO
CREATE TABLE [dbo].[Users]( CREATE TABLE [dbo].[Users](
[ID] [int] IDENTITY(1,1) NOT NULL, [ID] [int] IDENTITY(1,1) NOT NULL,
[UserName] [nvarchar](50) NULL, [UserName] [varchar](50) NOT NULL,
[Password] [nvarchar](50) NULL, [Password] [varchar](50) NOT NULL,
[PassSalt] [nvarchar](50) NULL, [PassSalt] [varchar](50) NOT NULL,
[DisplayName] [nvarchar](50) NULL, [DisplayName] [nvarchar](50) NOT NULL,
CONSTRAINT [PK_Users] PRIMARY KEY CLUSTERED CONSTRAINT [PK_Users] PRIMARY KEY CLUSTERED
( (
[ID] ASC [ID] ASC