表名:ZL_EDU_School












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2UserIDint40     
3premoningint40    早读
4moringint40    上午几节
5afternoonint40    下午几节
6eveningint40    晚上几节
7weekdayint40    每周几天课
8itemsntext160    课数基本配置
9SchoolNamenvarchar2000    学校名
10TermNamenvarchar2000    学期名|课程表名称
11SchoolTypenvarchar500    学校类型
12StudySelfint40    是否有早晚自习
13SelectCourseint40    是否有自选课程
14CourseTimenvarchar40000    每节课的时间
15ClassIDSvarchar80000    所属班级IDS,为空则为私有
16CDatedatetime83     

简要说明:

排课信息表

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

--注意:清空且复位表ID序列为初始值

TRUNCATE table ZL_EDU_School