序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | UserID | int | 4 | 0 | 是 | |||||
3 | premoning | int | 4 | 0 | 是 | 早读 | ||||
4 | moring | int | 4 | 0 | 是 | 上午几节 | ||||
5 | afternoon | int | 4 | 0 | 是 | 下午几节 | ||||
6 | evening | int | 4 | 0 | 是 | 晚上几节 | ||||
7 | weekday | int | 4 | 0 | 是 | 每周几天课 | ||||
8 | items | ntext | 16 | 0 | 是 | 课数基本配置 | ||||
9 | SchoolName | nvarchar | 200 | 0 | 是 | 学校名 | ||||
10 | TermName | nvarchar | 200 | 0 | 是 | 学期名|课程表名称 | ||||
11 | SchoolType | nvarchar | 50 | 0 | 是 | 学校类型 | ||||
12 | StudySelf | int | 4 | 0 | 是 | 是否有早晚自习 | ||||
13 | SelectCourse | int | 4 | 0 | 是 | 是否有自选课程 | ||||
14 | CourseTime | nvarchar | 4000 | 0 | 是 | 每节课的时间 | ||||
15 | ClassIDS | varchar | 8000 | 0 | 是 | 所属班级IDS,为空则为私有 | ||||
16 | CDate | datetime | 8 | 3 | 是 |
排课信息表
Go
CREATE TABLE [dbo].[ZL_EDU_School](
[ID] [int] IDENTITY(1,1) NOT NULL,
[UserID] [int] NULL,
[premoning] [int] NULL,
[moring] [int] NULL,
[afternoon] [int] NULL,
[evening] [int] NULL,
[weekday] [int] NULL,
[items] [ntext] NULL,
[SchoolName] [nvarchar](200) NULL,
[TermName] [nvarchar](200) NULL,
[SchoolType] [nvarchar](50) NULL,
[StudySelf] [int] NULL,
[SelectCourse] [int] NULL,
[CourseTime] [nvarchar](4000) NULL,
[ClassIDS] [varchar](8000) NULL,
[CDate] [datetime] NULL,
CONSTRAINT [PK_ZL_EDU_School] PRIMARY KEY CLUSTERED
(
[ID] 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]
detele from ZL_EDU_School
drop table ZL_EDU_School
TRUNCATE table ZL_EDU_School