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