Archer_cdm
2 years ago
2 changed files with 34 additions and 70 deletions
@ -1,32 +1,18 @@ |
|||
-- ---------------------------- |
|||
-- 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"); |
|||
CREATE TABLE PUBLIC.dept_training ( |
|||
ID serial NOT NULL CONSTRAINT dept_training_pkey PRIMARY KEY, |
|||
departmentname VARCHAR ( 255 ) NOT NULL, |
|||
trainingtype VARCHAR ( 255 ) NOT NULL, |
|||
traindate TIMESTAMP NOT NULL, |
|||
traincontent VARCHAR ( 255 ) NOT NULL, |
|||
trainwho VARCHAR ( 255 ), |
|||
trainer VARCHAR ( 255 ), |
|||
trainmethod VARCHAR ( 255 ) NOT NULL, |
|||
appraisalmethod VARCHAR ( 255 ) NOT NULL, |
|||
traintime VARCHAR ( 255 ) NOT NULL, |
|||
attachpath VARCHAR ( 255 ), |
|||
origin VARCHAR ( 255 ), |
|||
filesize VARCHAR ( 255 ), |
|||
filename VARCHAR ( 255 ), |
|||
filetype VARCHAR ( 255 ), |
|||
updatedate TIMESTAMP WITH TIME ZONE |
|||
); |
@ -1,39 +1,17 @@ |
|||
-- ---------------------------- |
|||
-- 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 '来源'; |
|||
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 ) --来源 |
|||
|
|||
-- ---------------------------- |
|||
-- 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