杭州市委办项管
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.

20 lines
1.2KB

  1. DROP TABLE IF EXISTS wflow_user_departments;
  2. CREATE TABLE wflow_user_departments (
  3. id bigserial,
  4. user_id varchar(20) NOT NULL,
  5. dept_id varchar(20) NOT NULL,
  6. created timestamp,
  7. CONSTRAINT "wflow_user_departments_pri" PRIMARY KEY ("id")
  8. )
  9. CREATE UNIQUE INDEX user_uk ON wflow_user_departments(user_id,dept_id);
  10. INSERT INTO wflow_user_departments VALUES (1, '381496', '1486186', '2022-07-05 17:42:17');
  11. INSERT INTO wflow_user_departments VALUES (2, '489564', '689698', '2022-07-05 17:42:34');
  12. INSERT INTO wflow_user_departments VALUES (3, '568898', '4319868', '2022-07-05 17:42:52');
  13. INSERT INTO wflow_user_departments VALUES (4, '6418616', '6179678', '2022-07-05 17:43:09');
  14. INSERT INTO wflow_user_departments VALUES (5, '61769798', '231535', '2022-07-05 17:43:24');
  15. INSERT INTO wflow_user_departments VALUES (6, '327382', '6179678', '2022-09-04 18:17:55');
  16. INSERT INTO wflow_user_departments VALUES (7, '8902743', '689698', '2022-09-04 18:19:12');
  17. INSERT INTO wflow_user_departments VALUES (8, '927438', '4319868', '2022-09-04 18:21:08');
  18. INSERT INTO wflow_user_departments VALUES (9, '3286432', '35453', '2022-09-25 17:49:19');
  19. INSERT INTO wflow_user_departments VALUES (10, '3243678', '35453', '2022-09-25 17:50:58');