Browse Source

(*)个人培训记录sql修改和部门培训记录sql提交

master
Archer_cdm 2 years ago
parent
commit
030afa9008
  1. 32
      doc/scripts/3.2.0/schema/dept_training.sql
  2. 54
      doc/scripts/3.2.0/schema/personal_training_create.sql

32
doc/scripts/3.2.0/schema/dept_training.sql

@ -0,0 +1,32 @@
-- ----------------------------
-- Table structure for dept_training
-- ----------------------------
DROP TABLE IF EXISTS "public"."dept_training";
CREATE TABLE "public"."dept_training" (
"id" int4 NOT NULL DEFAULT nextval('dept_training_id_seq'::regclass),
"departmentname" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"trainingtype" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"traindate" timestamp(6) NOT NULL,
"traincontent" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"trainwho" varchar(255) COLLATE "pg_catalog"."default",
"trainer" varchar(255) COLLATE "pg_catalog"."default",
"trainmethod" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"appraisalmethod" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"traintime" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"attachpath" varchar(255) COLLATE "pg_catalog"."default",
"origin" varchar(255) COLLATE "pg_catalog"."default",
"filesize" varchar(255) COLLATE "pg_catalog"."default",
"filename" varchar(255) COLLATE "pg_catalog"."default",
"filetype" varchar(255) COLLATE "pg_catalog"."default",
"updatedate" timestamptz(6)
)
;
-- ----------------------------
-- Records of dept_training
-- ----------------------------
-- ----------------------------
-- Primary Key structure for table dept_training
-- ----------------------------
ALTER TABLE "public"."dept_training" ADD CONSTRAINT "dept_training_pkey" PRIMARY KEY ("id");

54
doc/scripts/3.2.0/schema/personal_training_create.sql

@ -1,17 +1,39 @@
CREATE TABLE personal_training (
ID serial PRIMARY KEY NOT NULL,
personalName VARCHAR ( 255 ) NOT NULL,-- 姓名
departmentName VARCHAR ( 255 ) NOT NULL,-- 部门名称
trainingType VARCHAR ( 255 ) NOT NULL,-- 培训类型
topic VARCHAR ( 255 ) NOT NULL,-- 课程主题
trainer VARCHAR ( 255 ) NOT NULL,-- 培训讲师
trainDate TIMESTAMP NOT NULL,-- 培训时间
trainTime VARCHAR ( 255 ) NOT NULL,-- 培训时长
trainMethod VARCHAR ( 255 ) NOT NULL,-- 培训方式
attendanceScore VARCHAR ( 255 ),-- 考勤分数
appraisalMethod VARCHAR ( 255 ) NOT NULL,-- 考核形式
appraisalScore VARCHAR ( 255 ),-- 考核分数
totalScore VARCHAR ( 255 ),-- 总分
origin VARCHAR ( 255 ) --
-- ----------------------------
-- Table structure for personal_training
-- ----------------------------
DROP TABLE IF EXISTS "public"."personal_training";
CREATE TABLE "public"."personal_training" (
"id" int4 NOT NULL DEFAULT nextval('personal_training_id_seq'::regclass),
"personalname" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"departmentname" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"trainingtype" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"topic" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"trainer" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"traindate" timestamp(6) NOT NULL,
"traintime" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"trainmethod" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"attendancescore" varchar(255) COLLATE "pg_catalog"."default",
"appraisalmethod" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"appraisalscore" varchar(255) COLLATE "pg_catalog"."default",
"totalscore" varchar(255) COLLATE "pg_catalog"."default",
"origin" varchar(255) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."personal_training"."personalname" IS '姓名';
COMMENT ON COLUMN "public"."personal_training"."departmentname" IS '部门名称';
COMMENT ON COLUMN "public"."personal_training"."trainingtype" IS '培训类型';
COMMENT ON COLUMN "public"."personal_training"."topic" IS '课程主题';
COMMENT ON COLUMN "public"."personal_training"."trainer" IS '培训讲师';
COMMENT ON COLUMN "public"."personal_training"."traindate" IS '培训时间';
COMMENT ON COLUMN "public"."personal_training"."traintime" IS '培训时长';
COMMENT ON COLUMN "public"."personal_training"."trainmethod" IS '培训方式';
COMMENT ON COLUMN "public"."personal_training"."attendancescore" IS '考勤分数';
COMMENT ON COLUMN "public"."personal_training"."appraisalmethod" IS '考核形式';
COMMENT ON COLUMN "public"."personal_training"."appraisalscore" IS '考核分数';
COMMENT ON COLUMN "public"."personal_training"."totalscore" IS '总分';
COMMENT ON COLUMN "public"."personal_training"."origin" IS '来源';
);
-- ----------------------------
-- Primary Key structure for table personal_training
-- ----------------------------
ALTER TABLE "public"."personal_training" ADD CONSTRAINT "personal_training_pkey" PRIMARY KEY ("id");

Loading…
Cancel
Save