Archer_cdm
2 years ago
2 changed files with 70 additions and 16 deletions
@ -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"); |
@ -1,17 +1,39 @@ |
|||||
CREATE TABLE personal_training ( |
-- ---------------------------- |
||||
ID serial PRIMARY KEY NOT NULL, |
-- Table structure for personal_training |
||||
personalName VARCHAR ( 255 ) NOT NULL,-- 姓名 |
-- ---------------------------- |
||||
departmentName VARCHAR ( 255 ) NOT NULL,-- 部门名称 |
DROP TABLE IF EXISTS "public"."personal_training"; |
||||
trainingType VARCHAR ( 255 ) NOT NULL,-- 培训类型 |
CREATE TABLE "public"."personal_training" ( |
||||
topic VARCHAR ( 255 ) NOT NULL,-- 课程主题 |
"id" int4 NOT NULL DEFAULT nextval('personal_training_id_seq'::regclass), |
||||
trainer VARCHAR ( 255 ) NOT NULL,-- 培训讲师 |
"personalname" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, |
||||
trainDate TIMESTAMP NOT NULL,-- 培训时间 |
"departmentname" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, |
||||
trainTime VARCHAR ( 255 ) NOT NULL,-- 培训时长 |
"trainingtype" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, |
||||
trainMethod VARCHAR ( 255 ) NOT NULL,-- 培训方式 |
"topic" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, |
||||
attendanceScore VARCHAR ( 255 ),-- 考勤分数 |
"trainer" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, |
||||
appraisalMethod VARCHAR ( 255 ) NOT NULL,-- 考核形式 |
"traindate" timestamp(6) NOT NULL, |
||||
appraisalScore VARCHAR ( 255 ),-- 考核分数 |
"traintime" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, |
||||
totalScore VARCHAR ( 255 ),-- 总分 |
"trainmethod" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, |
||||
origin VARCHAR ( 255 ) --来源 |
"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…
Reference in new issue