杭州市委办项管
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 1 година
123456789101112131415161718192021222324252627
  1. DROP TABLE IF EXISTS wflow_departments;
  2. CREATE TABLE wflow_departments (
  3. id bigserial NOT NULL,
  4. dept_name varchar(255),
  5. leader varchar(255),
  6. parent_id int8,
  7. created timestamp,
  8. updated timestamp,
  9. CONSTRAINT "wflow_departments_pri" PRIMARY KEY ("id")
  10. )
  11. CREATE INDEX parent_idx ON wflow_departments(parent_id);
  12. CREATE INDEX leader_idx ON wflow_departments(leader);
  13. comment ON TABLE wflow_departments IS '部门表';
  14. comment ON column wflow_departments.id IS '主键';
  15. comment ON column wflow_departments.dept_name IS '部门名';
  16. comment ON column wflow_departments.leader IS '部门主管';
  17. comment ON column wflow_departments.parent_id IS '父部门id';
  18. -- ----------------------------
  19. -- Records of wflow_departments
  20. -- ----------------------------
  21. INSERT INTO wflow_departments VALUES (35453, '业务部', '3286432', 4319868, '2020-09-16 13:30:37', '2022-09-25 17:49:29');
  22. INSERT INTO wflow_departments VALUES (231535, '生产管理部', NULL, 1486186, '2020-09-16 13:30:39', '2020-09-16 13:30:42');
  23. INSERT INTO wflow_departments VALUES (264868, '行政人事部', NULL, 1486186, '2020-09-16 13:30:42', '2020-09-16 13:30:44');
  24. INSERT INTO wflow_departments VALUES (689698, '客服部', '489564', 4319868, '2020-09-16 13:30:34', '2022-09-04 18:26:20');
  25. INSERT INTO wflow_departments VALUES (1486186, 'xx科技有限公司', '381496', 0, '2020-09-16 13:26:25', '2022-09-04 18:25:12');
  26. INSERT INTO wflow_departments VALUES (4319868, '销售服务部', '927438', 1486186, '2020-09-16 13:30:44', '2022-09-04 18:26:07');
  27. INSERT INTO wflow_departments VALUES (6179678, '研发部', '6418616', 1486186, '2020-09-16 13:26:56', '2022-09-04 18:25:49');