序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | RoomID | int | 4 | 0 | 是 | 是 | 否 | 班级ID | ||
2 | RoomName | nvarchar | 255 | 0 | 是 | 班级名称 | ||||
3 | SchoolID | int | 4 | 0 | 是 | 学校ID | ||||
4 | ClassName | nvarchar | 50 | 0 | 是 | 班级名称 | ||||
5 | Room | nvarchar | 10 | 0 | 是 | |||||
6 | Teacher | nvarchar | 255 | 0 | 是 | 担任老师 | ||||
7 | Adviser | nvarchar | 255 | 0 | 是 | 副管理员 | ||||
8 | Monitor | nvarchar | 255 | 0 | 是 | 班微标 | ||||
9 | Creation | datetime | 8 | 3 | 是 | 创建时间 | ||||
10 | CreateUser | int | 4 | 0 | 是 | 创建人(管理员) | ||||
11 | Integral | int | 4 | 0 | 是 | 0 | 人数(Disuse,应该动态查询) | |||
12 | Classinfo | ntext | 16 | 0 | 是 | 班级介绍 | ||||
13 | Grade | int | 4 | 0 | 是 | 年级(disuse,应该改名称) | ||||
14 | IsTrue | int | 4 | 0 | 是 | 0 | 审核 | |||
15 | ClassStar | int | 4 | 0 | 是 | 班级星级 | ||||
16 | IsDone | int | 4 | 0 | 是 | 是否毕业 |
在线考试班级表
GO
CREATE TABLE [dbo].[ZL_Exam_ClassRoom](
[RoomID] [int] IDENTITY(1,1) NOT NULL,
[RoomName] [nvarchar](255) NULL,
[SchoolID] [int] NULL,
[ClassName] [nvarchar](50) NULL,
[Room] [nvarchar](10) NULL,
[Teacher] [nvarchar](255) NULL,
[Adviser] [nvarchar](255) NULL,
[Monitor] [nvarchar](255) NULL,
[Creation] [datetime] NULL,
[CreateUser] [int] NULL,
[Integral] [int] NULL,
[Classinfo] [ntext] NULL,
[Grade] [int] NULL,
[IsTrue] [int] NULL,
[ClassStar] [int] NULL,
[IsDone] [int] NULL,
CONSTRAINT [PK_ZL_Exam_ClassRoom] PRIMARY KEY CLUSTERED
([RoomID] ASC)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[ZL_Exam_ClassRoom] ADD CONSTRAINT [DF_ZL_Exam_ClassRoom_Integral] DEFAULT ((0)) FOR [Integral]
GO
ALTER TABLE [dbo].[ZL_Exam_ClassRoom] ADD CONSTRAINT [DF_ZL_Exam_ClassRoom_IsTrue] DEFAULT ((0)) FOR [IsTrue]
detele from ZL_Exam_ClassRoom
drop table ZL_Exam_ClassRoom
TRUNCATE table ZL_Exam_ClassRoom