SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[User_Class](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Administrator_Class_name]  DEFAULT (''),
	[power] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Administrator_Class_authority]  DEFAULT (''),
 CONSTRAINT [PK_Administrator_Class] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管理员分类表(主键)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'User_Class', @level2type=N'COLUMN', @level2name=N'id'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管理员分类表(分类名)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'User_Class', @level2type=N'COLUMN', @level2name=N'name'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管理员分类表(拥有权限页面:逗号区分)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'User_Class', @level2type=N'COLUMN', @level2name=N'power'

insert into User_Class ([name],[power])values('超级管理员','*')
