-- ----------------------------
-- 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");
