-- Data for Name: iclock_transactionproofcmd; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.iclock_transactionproofcmd (id, action_time, start_time, end_time, terminal_count, server_count, flag, reserved_init, reserved_float, reserved_char, terminal_id) FROM stdin;
\.


--
-- Data for Name: meeting_meetingentity; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.meeting_meetingentity (workflowinstance_ptr_id, code, alias, content, meeting_date, start_time, end_time, duration, in_required, in_start, in_end, out_required, out_start, out_end, apply_reason, apply_time, calculation_time, sync_time, room_id, auto_recording, enable_virtual, enable_waiting_room, host_video, jbh_anytime, link_data, mute_upon_entry, participant_video, preferences, time_zone, view_date, virutal_uuid) FROM stdin;
\.


--
-- Data for Name: meeting_meetingentity_attender; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.meeting_meetingentity_attender (id, meetingentity_id, employee_id) FROM stdin;
\.


--
-- Data for Name: meeting_meetingmanuallog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.meeting_meetingmanuallog (workflowinstance_ptr_id, punch_time, punch_state, apply_reason, apply_time, meeting_id) FROM stdin;
\.


--
-- Data for Name: meeting_meetingpayloadbase; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.meeting_meetingpayloadbase (id, start_time, end_time, duration, meeting_date, clock_in, clock_out, attended_duration, late_in, early_out, absent, emp_id, meeting_id) FROM stdin;
\.


--
-- Data for Name: meeting_meetingroom; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.meeting_meetingroom (id, create_time, create_user, change_time, change_user, status, code, alias, capacity, location, remark, state, enable_room) FROM stdin;
\.


--
-- Data for Name: meeting_meetingroomdevice; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.meeting_meetingroomdevice (id, device_id, room_id) FROM stdin;
\.


--
-- Data for Name: meeting_meetingtransaction; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.meeting_meetingtransaction (id, emp_code, punch_datetime, punch_date, punch_time, punch_state, source, upload_time, emp_id, meeting_id, terminal_id) FROM stdin;
\.


--
-- Data for Name: mobile_announcement; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.mobile_announcement (id, subject, content, category, sender, system_sender, create_time, admin_id, init_sender_id, receiver_id) FROM stdin;
\.


--
-- Data for Name: mobile_appactionlog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.mobile_appactionlog (id, "user", client, action, params, describe, request_status, action_time, remote_ip) FROM stdin;
\.


--
-- Data for Name: mobile_applist; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.mobile_applist (id, username, login_time, last_active, token, device_token, client_id, client_category, active, enable) FROM stdin;
\.


--
-- Data for Name: mobile_appnotification; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.mobile_appnotification (id, sender, system_sender, category, sub_category, content, payload, source, notification_time, read_status, read_time, admin_id, init_sender_id, receiver_id) FROM stdin;
\.


--
-- Data for Name: mobile_gpsfordepartment; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.mobile_gpsfordepartment (id, create_time, create_user, change_time, change_user, status, distance, start_date, end_date, department_id) FROM stdin;
\.


--
-- Data for Name: mobile_gpsfordepartment_location; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.mobile_gpsfordepartment_location (id, gpsfordepartment_id, gpslocation_id) FROM stdin;
\.


--
-- Data for Name: mobile_gpsforemployee; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.mobile_gpsforemployee (id, create_time, create_user, change_time, change_user, status, distance, start_date, end_date, employee_id) FROM stdin;
\.


--
-- Data for Name: mobile_gpsforemployee_location; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.mobile_gpsforemployee_location (id, gpsforemployee_id, gpslocation_id) FROM stdin;
\.


--
-- Data for Name: mobile_gpslocation; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.mobile_gpslocation (id, create_time, create_user, change_time, change_user, status, alias, location, longitude, latitude) FROM stdin;
\.


--
-- Data for Name: mobile_mobileapirequestlog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.mobile_mobileapirequestlog (id, username_persistent, requested_at, response_ms, path, view, view_method, remote_addr, host, method, query_params, data, response, errors, status_code, user_id) FROM stdin;
\.


--
-- Data for Name: payroll_deductionformula; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_deductionformula (id, name, formula, remark) FROM stdin;
\.


--
-- Data for Name: payroll_emploan; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_emploan (id, create_time, create_user, change_time, change_user, status, loan_amount, loan_time, refund_cycle, per_cycle_refund, loan_clean_time, remark, employee_id) FROM stdin;
\.


--
-- Data for Name: payroll_emppayrollprofile; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_emppayrollprofile (id, payment_mode, payment_type, bank_name, bank_account, personnel_id, agent_id, agent_account, employee_id) FROM stdin;
1	1	1						1
32	1	1						32
33	1	1						33
49	1	1						49
5	1	1						5
9	1	1						9
8	1	1						8
51	1	1						51
4	1	1						4
56	1	1						56
55	1	1						55
53	1	1						53
52	1	1						52
27	1	1						27
28	1	1						28
29	1	1						29
31	1	1						31
34	1	1						34
35	1	1						35
36	1	1						36
37	1	1						37
38	1	1						38
40	1	1						40
41	1	1						41
42	1	1						42
43	1	1						43
45	1	1						45
46	1	1						46
47	1	1						47
50	1	1						50
6	1	1						6
10	1	1						10
11	1	1						11
12	1	1						12
13	1	1						13
14	1	1						14
16	1	1						16
15	1	1						15
18	1	1						18
17	1	1						17
19	1	1						19
2	1	1						2
20	1	1						20
22	1	1						22
21	1	1						21
23	1	1						23
24	1	1						24
26	1	1						26
25	1	1						25
3	1	1						3
30	1	1						30
\.


--
-- Data for Name: payroll_exceptionformula; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_exceptionformula (id, name, formula, remark, pay_code_id) FROM stdin;
\.


--
-- Data for Name: payroll_extradeduction; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_extradeduction (id, create_time, create_user, change_time, change_user, status, amount, issued_time, remark, employee_id) FROM stdin;
\.


--
-- Data for Name: payroll_extraincrease; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_extraincrease (id, create_time, create_user, change_time, change_user, status, amount, issued_time, remark, employee_id) FROM stdin;
\.


--
-- Data for Name: payroll_increasementformula; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_increasementformula (id, name, formula, remark) FROM stdin;
\.


--
-- Data for Name: payroll_leaveformula; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_leaveformula (id, name, formula, remark, pay_code_id) FROM stdin;
\.


--
-- Data for Name: payroll_overtimeformula; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_overtimeformula (id, name, formula, remark, pay_code_id) FROM stdin;
\.


--
-- Data for Name: payroll_payrollpayload; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_payrollpayload (id, calc_time, basic_salary, effective_date, format_dict, payment_mode, increase, deduction, increase_formula, deduction_formula, increase_formula_name, deduction_formula_name, extra_increase, extra_deduction, total_loan_amount, refund_loan_amount, unrefund_loan_amount, loan_deduction, loan_increase, advance_increase, advance_deduction, reimbursement, total_increase_formula, total_increase_formula_name, total_increase_expression, total_increase, total_deduction_formula, total_deduction_formula_name, total_deduction_expression, total_deduction, total_salary_expression, total_salary, employee_id) FROM stdin;
\.


--
-- Data for Name: payroll_payrollpayloadpaycode; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_payrollpayloadpaycode (id, amount, formula, formula_name, pay_code_id, payload_id) FROM stdin;
\.


--
-- Data for Name: payroll_reimbursement; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_reimbursement (id, rmb_amount, rmb_time, rmb_file, rmb_remark, employee_id) FROM stdin;
\.


--
-- Data for Name: payroll_salaryadvance; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_salaryadvance (id, advance_amount, advance_time, advance_remark, employee_id) FROM stdin;
\.


--
-- Data for Name: payroll_salarystructure; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_salarystructure (id, create_time, create_user, change_time, change_user, status, salary_amount, effective_date, salary_remark, employee_id) FROM stdin;
\.


--
-- Data for Name: payroll_salarystructure_deductionformula; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_salarystructure_deductionformula (id, salarystructure_id, deductionformula_id) FROM stdin;
\.


--
-- Data for Name: payroll_salarystructure_exceptionformula; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_salarystructure_exceptionformula (id, salarystructure_id, exceptionformula_id) FROM stdin;
\.


--
-- Data for Name: payroll_salarystructure_increasementformula; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_salarystructure_increasementformula (id, salarystructure_id, increasementformula_id) FROM stdin;
\.


--
-- Data for Name: payroll_salarystructure_leaveformula; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_salarystructure_leaveformula (id, salarystructure_id, leaveformula_id) FROM stdin;
\.


--
-- Data for Name: payroll_salarystructure_overtimeformula; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payroll_salarystructure_overtimeformula (id, salarystructure_id, overtimeformula_id) FROM stdin;
\.


--
-- Data for Name: personnel_area; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.personnel_area (id, area_code, area_name, is_default, parent_area_id, company_id, device_count, employee_count) FROM stdin;
1	1	No autorizado	t	\N	1	0	0
34	2	LATINMARKET S.A.	f	\N	1	2	51
\.


--
-- Data for Name: personnel_assignareaemployee; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.personnel_assignareaemployee (id, assigned_time, area_id, employee_id) FROM stdin;
\.


--
-- Data for Name: personnel_certification; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.personnel_certification (id, cert_code, cert_name) FROM stdin;
\.


--
-- Data for Name: personnel_company; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.personnel_company (id, company_code, company_name, is_default) FROM stdin;
1	1	company.default	t
\.


--
-- Data for Name: personnel_department; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.personnel_department (id, dept_code, dept_name, is_default, parent_dept_id, dept_manager_id, company_id) FROM stdin;
1	1	Departamento	t	\N	\N	1
34	2	LATINMARKET S.A.	f	1	\N	1
35	3	Servicio Técnico	f	34	5	1
36	4	Logística	f	34	23	1
37	5	Atención al Cliente	f	34	18	1
38	6	Administración y Finanzas	f	34	19	1
39	7	Laboratorio y Fresado	f	34	15	1
40	8	Comercial	f	34	3	1
\.


--
-- Data for Name: personnel_employee; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.personnel_employee (id, create_time, create_user, change_time, change_user, status, emp_code, first_name, last_name, nickname, passport, driver_license_automobile, driver_license_motorcycle, photo, self_password, device_password, dev_privilege, card_no, acc_group, acc_timezone, gender, birthday, address, postcode, office_tel, contact_tel, mobile, "national", religion, title, enroll_sn, ssn, update_time, hire_date, verify_mode, city, emp_type, enable_payroll, app_status, app_role, email, last_login, is_active, session_key, login_ip, department_id, position_id, leave_group, emp_code_digit, superior_id, company_id) FROM stdin;
10	2024-08-23 00:37:50.821054+08	\N	2024-09-18 02:37:32.678946+08	\N	0	10	Lucas	Montenegro		\N	\N	\N		pbkdf2_sha256$36000$N6eHGBfhnYsq$ucIfyFM+HjVzWz8Y13HayIasMGEoRpyUngr+9SlQnKs=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-18 02:37:32.663322+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	35	\N	\N	10	5	1
1	2024-08-23 00:37:48.66472+08	\N	2024-08-23 20:03:20.85417+08	\N	0	1	PRUEBA	\N		\N	\N	\N		pbkdf2_sha256$36000$lEelpR75r1tn$vmIxY8EVu2kXEJABK1TUgtnC8+rpBr3c8U53n/8YBwk=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:03:20.838545+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	1	\N	1
11	2024-08-23 00:37:51.071046+08	\N	2024-09-18 02:38:28.461005+08	\N	0	11	Cristian	Vargas		\N	\N	\N		pbkdf2_sha256$36000$MsECqCOyLNiX$ft2fBT+vd6Zmo5tNi+TpS+sBCBYITNgp6kfTnn7DkUc=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-18 02:38:28.429754+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	35	\N	\N	11	5	1
12	2024-08-23 00:37:51.289804+08	\N	2024-09-18 02:39:27.024358+08	\N	0	12	Fabrizio	Brunoro		\N	\N	\N		pbkdf2_sha256$36000$E0tFCBGQ4krh$n1tu+BKFdAdoH52wNJwXSLUW0s1z7lxY66co6GnIfFI=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-18 02:39:27.008736+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	35	\N	\N	12	5	1
3	2024-08-23 00:37:49.227848+08	\N	2024-09-20 04:05:53.468904+08	\N	0	3	Marcela	Ortiz		\N	\N	\N		pbkdf2_sha256$36000$atet6qCgSNuK$25E7diQllc2iAapdLMjuOAAQu0mO2Yl4zjTIw5miwzw=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 04:05:53.453283+08	\N	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	3	\N	1
14	2024-08-23 00:37:51.711692+08	\N	2024-09-18 22:23:40.852353+08	\N	0	14	Kevin	Matulich		\N	\N	\N		pbkdf2_sha256$36000$ENrkldkfhHNP$pEFpGR08YW58n8IC3qABfHtdkm+XNOlOvW94emFy0xQ=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-18 22:23:40.82111+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	35	\N	\N	14	\N	1
4	2024-08-23 00:37:49.477228+08	\N	2024-09-20 04:21:50.457156+08	\N	0	4	Maria Pía	Descals		\N	\N	\N		pbkdf2_sha256$36000$DI4KZHQiDQx9$Ge8xEJNYS4T7oypJUIydgzuwYKPonArgSYoJFYGiMaA=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 04:21:50.425891+08	\N	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	4	\N	1
5	2024-08-23 00:37:49.664735+08	\N	2024-09-20 04:16:02.834906+08	\N	0	5	Gonzalo	Cartas		\N	\N	\N		pbkdf2_sha256$36000$aUkKoqD2F87Y$WgjgS5u02jB6k4YtAiCcOXTPRTH0/HAa/B1rI32fFQU=	20152022	14	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 04:16:02.819283+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	35	\N	\N	5	3	1
13	2024-08-23 00:37:51.508559+08	\N	2024-09-18 02:40:34.41625+08	\N	0	13	Carlos	Gonzalez		\N	\N	\N		pbkdf2_sha256$36000$CgBqpbBqfUD7$CEouL96q99D7hIe/xEYK5+u59N1WZbyUmHcV3JlCauY=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-18 02:40:34.384521+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	35	\N	\N	13	5	1
21	2024-08-23 00:37:53.321247+08	\N	2024-09-20 03:40:55.519066+08	\N	0	21	Pamela	Fleitas		\N	\N	\N		pbkdf2_sha256$36000$cB5AkeexLghG$fY2anHFteigg7l2bW6K81q0kU693ZK3L61kCMu122mg=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 03:40:55.50456+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	38	\N	\N	21	19	1
6	2024-08-23 00:37:49.867871+08	\N	2024-08-23 20:10:50.252881+08	\N	0	6	Mariano	\N		\N	\N	\N		pbkdf2_sha256$36000$MRTEJykm7HSi$6TGibnb0D2B1VdpgMjTWqqrxxlSouNOzmUeWKGdmga8=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:10:50.237258+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	6	\N	1
15	2024-08-23 00:37:51.946079+08	\N	2024-09-18 22:31:43.649367+08	\N	0	15	Alicia	Corvalán		\N	\N	\N		pbkdf2_sha256$36000$Luu1kM4SSKLB$ge9yffQ4peYwfqvYMRtsSE0xqNHtWR/TNw/caNTXulA=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-18 22:31:43.618963+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	39	\N	\N	15	3	1
17	2024-08-23 00:37:52.399223+08	\N	2024-09-20 03:09:14.450414+08	\N	0	17	Gisela	Martinuccio		\N	\N	\N		pbkdf2_sha256$36000$J7n7JNy0tJG6$/UYTtuwaFPvu7F1g8GuowLyZmBOz9VxfVspVd2VKQoM=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 03:09:14.419213+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	37	\N	\N	17	18	1
9	2024-08-23 00:37:50.586655+08	\N	2024-09-20 04:17:12.718518+08	\N	0	9	Adrian	Vega Cantero		\N	\N	\N		pbkdf2_sha256$36000$5HjSN2Sj2190$5RLCFx94rrbJE6bRv6Qr3d2pXnC4B7CTvp9EQrCF0Fc=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 04:17:12.702888+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	35	\N	\N	9	5	1
18	2024-08-23 00:37:52.617976+08	\N	2024-09-20 03:08:54.324724+08	\N	0	18	Soledad	Llanes		\N	\N	\N		pbkdf2_sha256$36000$vUb27Io3HYbJ$eAK9TGNC3S9so6eWBqpTduMS5Sv6rAR6rmWDzM+r0MI=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 03:08:54.293477+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	37	\N	\N	18	4	1
19	2024-08-23 00:37:52.867991+08	\N	2024-09-20 03:10:26.841106+08	\N	0	19	Claudia	Monzón		\N	\N	\N		pbkdf2_sha256$36000$rX9Y33CM8IQH$pt3LC75vpzJt1vRub4bIVKDzb1qcxzPjUKAyjtLTAlA=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 03:10:26.825893+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	38	\N	\N	19	3	1
2	2024-08-23 00:37:49.03972+08	\N	2024-09-20 03:13:03.089734+08	\N	0	2	Juan Carlos	Descals		\N	\N	\N		pbkdf2_sha256$36000$r23vCbyHbDJr$OoZrvTgDhJ0P9ilb1LlhLHGEHEka/1QGqdnb0wGnw6A=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 03:13:03.074076+08	\N	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	2	\N	1
20	2024-08-23 00:37:53.055494+08	\N	2024-09-20 03:14:01.043152+08	\N	0	20	Cecilia	Taranto		\N	\N	\N		pbkdf2_sha256$36000$9eBGnRc9Z1Wy$6bK8xICmrWoMexIVeMybRHazGPKgqwkTFZotvp0j00g=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 03:14:01.027528+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	38	\N	\N	20	19	1
22	2024-08-23 00:37:53.524258+08	\N	2024-09-20 03:40:35.206619+08	\N	0	22	Ariel	Pereda		\N	\N	\N		pbkdf2_sha256$36000$OkvRAU8gWZsd$yOm1hTNHnBmCbjVWweAbwXxbHrBR8+I4fyN8yWMJMAo=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 03:40:35.206619+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	38	\N	\N	22	19	1
23	2024-08-23 00:37:53.727388+08	\N	2024-09-20 03:43:05.1944+08	\N	0	23	Nicolas	Cequeira		\N	\N	\N		pbkdf2_sha256$36000$W8D62b5gTBVo$00rMt5B49MX76Esn5ZWHEZx8CxKWQx1RABA7hTOTGgM=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 03:43:05.178775+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	36	\N	\N	23	4	1
24	2024-08-23 00:37:53.977397+08	\N	2024-09-20 03:47:58.577465+08	\N	0	24	Jorge	Gonzalez		\N	\N	\N		pbkdf2_sha256$36000$04a4Ytq4Cc0s$EZ/qwFpxfOTNENCsLtnXKZMUEhh+POi9gIJ3tCbBz7s=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 03:47:58.561842+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	36	\N	\N	24	23	1
25	2024-08-23 00:37:54.180529+08	\N	2024-09-20 03:58:26.618659+08	\N	0	25	Maximiliano	Zulli		\N	\N	\N		pbkdf2_sha256$36000$QrjtF9ya3vfc$MeSBmBly3htLazcRJeFw/Ha7n1bjmz21qeDK4qkeQ8I=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 03:58:26.604027+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	36	\N	\N	25	23	1
26	2024-08-23 00:37:54.461884+08	\N	2024-09-20 03:58:14.729584+08	\N	0	26	Romina	Andrenacci		\N	\N	\N		pbkdf2_sha256$36000$GLmhl3f3MSOj$NGDGpSv2y0twp+0SHpBoUWa2qWIb9j9npRD89C8GaKE=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 03:58:14.729584+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	40	\N	\N	26	3	1
30	2024-08-23 00:37:55.430562+08	\N	2024-09-20 04:08:03.396176+08	\N	0	30	Lara	Ayala		\N	\N	\N		pbkdf2_sha256$36000$6Del8qTD2gpO$GAsbM1a5cwXNhHQ5iOSVVeyNRvcMbO9TdCvSsuWFubA=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 04:08:03.38055+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	38	\N	\N	30	19	1
32	2024-08-23 00:37:55.85245+08	\N	2024-09-20 04:09:17.048011+08	\N	0	32	Antonella	Villella		\N	\N	\N		pbkdf2_sha256$36000$OCZmJ0cPRDNg$/9/Po4Srxn9CzF1IC2NTvbT6KgVLBNb6KLdOMwR8Ojc=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 04:09:17.032453+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	37	\N	\N	32	18	1
33	2024-08-23 00:37:56.118078+08	\N	2024-09-20 04:10:09.51476+08	\N	0	33	Sandra	Estigarribia		\N	\N	\N		pbkdf2_sha256$36000$njeN8mrhyyLa$vQu2b6ktSpgrznQmXRMGY6f2vGcRibaQxwoYBB1xnbM=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 04:10:09.499097+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	34	\N	\N	33	4	1
29	2024-08-23 00:37:55.164931+08	\N	2024-08-23 20:07:53.523954+08	\N	0	29	Nestor	\N		\N	\N	\N		pbkdf2_sha256$36000$ULc6AZ1TMFPJ$W2nkvsNAR0ySVCfmgavxoSAKNsEE50OfD1dIxt7pTJg=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:07:53.508331+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	29	\N	1
27	2024-08-23 00:37:54.743044+08	\N	2024-08-23 20:07:42.914555+08	\N	0	27	Jorge	\N		\N	\N	\N		pbkdf2_sha256$36000$hskIPkn8KNmn$F89vaPiC4LzBeJbuPP97IaAyS2ir8FFOGfIJanvWCQ0=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:07:42.898931+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	27	\N	1
28	2024-08-23 00:37:54.930547+08	\N	2024-08-23 20:07:48.539555+08	\N	0	28	Fernando	\N		\N	\N	\N		pbkdf2_sha256$36000$a1JF7vj43Czg$pTvtvv7BFvw4mSx4yQNL5sxXxI1kB9oHKqA/WLHWgac=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:07:48.52399+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	28	\N	1
31	2024-08-23 00:37:55.633692+08	\N	2024-08-23 20:08:11.398925+08	\N	0	31	Leandro	\N		\N	\N	\N		pbkdf2_sha256$36000$LDmla0AEpxwG$61TxC1HZHjvlfFMmQ2CaqVa0/6TilLrHj9gZgd0GPI8=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:08:11.383299+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	31	\N	1
34	2024-08-23 00:37:56.352464+08	\N	2024-08-23 20:08:27.149063+08	\N	0	34	Sandra	\N		\N	\N	\N		pbkdf2_sha256$36000$cvueK6ByK8Kf$3US71k0Z66I1r/GDDoep11WkX1Z1AWjLCbqTumxopAM=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:08:27.133512+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	34	\N	1
35	2024-08-23 00:37:56.586842+08	\N	2024-08-23 20:08:32.71162+08	\N	0	35	Cecilia	\N		\N	\N	\N		pbkdf2_sha256$36000$KhfaXvf7J2I3$IMYURJOhithj5+3OWBUcbNPFHGLDPtz7qdpTQAcJO88=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:08:32.696021+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	35	\N	1
46	2024-08-23 00:37:59.211928+08	\N	2024-08-23 20:09:42.375436+08	\N	0	46	Silvana	\N		\N	\N	\N		pbkdf2_sha256$36000$JuKNvanqRtLM$ibUDObOADbsXb0JpjzlnPMpvPFR1IGuRvwwTkE+0X6E=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:09:42.359871+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	46	\N	1
16	2024-08-23 00:37:52.180463+08	\N	2024-09-18 22:31:24.053342+08	\N	0	16	Facundo	Lombardi		\N	\N	\N		pbkdf2_sha256$36000$nu5dLGEcBfE5$7enqwy4unQEWBatn2SiItlHYTAQqzDjOSLIAwzx1/BQ=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-18 22:31:24.037718+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	36	\N	\N	16	23	1
49	2024-08-23 00:37:59.946279+08	\N	2024-09-20 04:15:24.161164+08	\N	0	49	Ariel	Arpires		\N	\N	\N		pbkdf2_sha256$36000$ScfDClUFtmE0$5x3lnCIw52TbO0xMxmhY6Yw0TE02koYvlDricP+bieI=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 04:15:24.145542+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	39	\N	\N	49	15	1
55	2024-08-23 00:38:01.430683+08	\N	2024-09-20 04:24:08.195218+08	\N	0	55	Lucas	Valentino		\N	\N	\N		pbkdf2_sha256$36000$7TI90bQ5SG3k$Yw9z+VHyvmCGEZT+0Ipbh1aHcpx72dGxhq4AbZyPSeI=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 04:24:08.163971+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	36	\N	\N	55	23	1
8	2024-08-23 00:37:50.352266+08	\N	2024-09-20 04:18:17.312413+08	\N	0	8	Juan Martin	González		\N	\N	\N		pbkdf2_sha256$36000$4oFZtuUUEb9L$7deWYaj9AHTS2gt1jl0ztO1mU9nJdesGEqQJAKly2Rw=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 04:18:17.281163+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	35	\N	\N	8	5	1
51	2024-08-23 00:38:00.477542+08	\N	2024-09-20 04:20:39.286697+08	\N	0	51	Chris	Ocaña		\N	\N	\N		pbkdf2_sha256$36000$w1HCaYmROMMF$AGEWOL0U4cLea3Q9JDr7OXysP/OB/a1vmRBdWV1cLxs=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 04:20:39.255446+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	39	\N	\N	51	15	1
56	2024-08-23 00:38:01.680683+08	\N	2024-09-20 04:23:18.563186+08	\N	0	56	Brian	Reynoso		\N	\N	\N		pbkdf2_sha256$36000$27SyG2Uw61gM$xU1hKdNgWvKr15jPFL3sNHeAQva2/a1AJAotfCZ0TrE=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 04:23:18.547558+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	36	\N	\N	56	23	1
53	2024-08-23 00:38:00.915049+08	\N	2024-09-20 04:25:09.727325+08	\N	0	53	Daniela	Gonzalez		\N	\N	\N		pbkdf2_sha256$36000$nEOVryaSn8Rd$nVP622KOu+JdpLnhi4cxIEgxZrdfGtx4X7zB8c6gsto=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 04:25:09.696073+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	39	\N	\N	53	15	1
52	2024-08-23 00:38:00.680673+08	\N	2024-09-20 04:25:48.918893+08	\N	0	52	Falon	Hernandez		\N	\N	\N		pbkdf2_sha256$36000$JaT5fzVPfBka$a742q+5auocg62Y5DPhS7VK27eUH1/t2n3XNZfYE/dY=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-09-20 04:25:48.903265+08	\N	0		1	t	0	1	\N	\N	t	\N	\N	39	\N	\N	52	15	1
36	2024-08-23 00:37:56.789973+08	\N	2024-08-23 20:08:38.492914+08	\N	0	36	Maximiliano	\N		\N	\N	\N		pbkdf2_sha256$36000$paGJBJhoXwo4$QG4XcvGZUKRXKasQcl+zagfxn54RosN7sCbB1rrL/sY=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:08:38.477301+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	36	\N	1
37	2024-08-23 00:37:57.133817+08	\N	2024-08-23 20:08:44.164848+08	\N	0	37	Judith	\N		\N	\N	\N		pbkdf2_sha256$36000$k2JFFXG7Eg6U$K2jos6/fdXj3J44XhdFw6iDPESzBMlANTcG8/t8yzTc=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:08:44.149224+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	37	\N	1
38	2024-08-23 00:37:57.336855+08	\N	2024-08-23 20:08:49.623727+08	\N	0	38	Alejandro	\N		\N	\N	\N		pbkdf2_sha256$36000$VKx80jlyztsn$cqwRmXgvE3m3xjSFaPB5QfhsoG9mstC94JTLXByGCkM=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:08:49.608098+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	38	\N	1
41	2024-08-23 00:37:58.055622+08	\N	2024-08-23 20:09:12.842638+08	\N	0	41	Silvia	\N		\N	\N	\N		pbkdf2_sha256$36000$HPQT3L1OVnt3$1EkZbHbl+JKev3sj/5OjPqDfi34d7JnG/jlPRoLfhD8=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:09:12.842638+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	41	\N	1
40	2024-08-23 00:37:57.836866+08	\N	2024-08-23 20:09:07.373854+08	\N	0	40	Jose	\N		\N	\N	\N		pbkdf2_sha256$36000$I2Fh0yVflkVm$/A1yVtnff5QMlYSmAWTv6svd7+6AAq1Yj7YVkUXXAYM=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:09:07.35826+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	40	\N	1
42	2024-08-23 00:37:58.290214+08	\N	2024-08-23 20:09:18.373938+08	\N	0	42	Leila	\N		\N	\N	\N		pbkdf2_sha256$36000$NpS1xQ7hvOwz$+t80+tVNrAtG4yelOUa/pv50nKEVjl6fq16ovJ06KqM=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:09:18.358311+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	42	\N	1
47	2024-08-23 00:37:59.430647+08	\N	2024-08-23 20:09:47.906705+08	\N	0	47	Daniel	\N		\N	\N	\N		pbkdf2_sha256$36000$hyYzCYcXA52z$LJ5nbmrw38c8WynZGLXmZ4yb/nbJDdxArx5szw8uVLs=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:09:47.891369+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	47	\N	1
43	2024-08-23 00:37:58.524386+08	\N	2024-08-23 20:09:23.718453+08	\N	0	43	Catalina	\N		\N	\N	\N		pbkdf2_sha256$36000$Eb4c1R4TKQZp$XDW90j7m2/4zrZ7gPQDeXpgUNuc6WrqWeaZjMfZ1OzE=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:09:23.702833+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	43	\N	1
45	2024-08-23 00:37:58.993144+08	\N	2024-08-23 20:09:37.562869+08	\N	0	45	Carina	\N		\N	\N	\N		pbkdf2_sha256$36000$2zl0v36HFqEH$m9eEe4aU9Rki31iFq2x+N/BsKXQkflLaJMJ84O1TKkU=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:09:37.547249+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	45	\N	1
50	2024-08-23 00:38:00.211914+08	\N	2024-08-23 20:10:17.98512+08	\N	0	50	Diego	\N		\N	\N	\N		pbkdf2_sha256$36000$XnvDtA0Z0iqD$FgcF1wnmA9uKKcO34eAp2TO7yY7frBaCQpGSBWioEkM=	\N	0	\N	1	\N	\N	\N			\N					\N		\N	2024-08-23 20:10:17.98512+08	2024-08-22	0		\N	t	0	1	\N	\N	t	\N	\N	34	\N	\N	50	\N	1
\.


--
-- Data for Name: personnel_employee_area; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.personnel_employee_area (id, employee_id, area_id) FROM stdin;
1	1	34
2	2	34
3	3	34
4	4	34
5	5	34
6	6	34
8	8	34
9	9	34
10	10	34
11	11	34
12	12	34
13	13	34
14	14	34
15	15	34
16	16	34
17	17	34
18	18	34
19	19	34
20	20	34
21	21	34
22	22	34
23	23	34
24	24	34
25	25	34
26	26	34
27	27	34
28	28	34
29	29	34
30	30	34
31	31	34
32	32	34
33	33	34
34	34	34
35	35	34
36	36	34
37	37	34
38	38	34
40	40	34
41	41	34
42	42	34
43	43	34
45	45	34
46	46	34
47	47	34
49	49	34
50	50	34
51	51	34
52	52	34
53	53	34
55	55	34
56	56	34
\.


--
-- Data for Name: personnel_employee_flow_role; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.personnel_employee_flow_role (id, employee_id, workflowrole_id) FROM stdin;
\.


--
-- Data for Name: personnel_employeecalendar; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.personnel_employeecalendar (id, create_time, create_user, change_time, change_user, status, calendar, employee_id) FROM stdin;
\.


--
-- Data for Name: personnel_employeecertification; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.personnel_employeecertification (id, expire_on, email_alert, before, certification_id, employee_id, certification_code, file, file_name) FROM stdin;
\.


--
-- Data for Name: personnel_employeecustomattribute; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.personnel_employeecustomattribute (id, attr_name, attr_type, attr_value, enable, is_unique) FROM stdin;
\.


--
-- Data for Name: personnel_employeeextrainfo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.personnel_employeeextrainfo (id, value, employee_id) FROM stdin;
\.


--
-- Data for Name: personnel_employeeprofile; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.personnel_employeeprofile (id, column_order, preferences, pwd_update_time, emp_id, disabled_fields) FROM stdin;
1			\N	1	
2			\N	2	
3			\N	3	
4			\N	4	
5			\N	5	
6			\N	6	
8			\N	8	
9			\N	9	
10			\N	10	
11			\N	11	
12			\N	12	
13			\N	13	
14			\N	14	
15			\N	15	
16			\N	16	
17			\N	17	
18			\N	18	
19			\N	19	
20			\N	20	
21			\N	21	
22			\N	22	
23			\N	23	
24			\N	24	
25			\N	25	
26			\N	26	
27			\N	27	
28			\N	28	
29			\N	29	
30			\N	30	
31			\N	31	
32			\N	32	
33			\N	33	
34			\N	34	
35			\N	35	
36			\N	36	
37			\N	37	
38			\N	38	
40			\N	40	
41			\N	41	
42			\N	42	
43			\N	43	
45			\N	45	
46			\N	46	
47			\N	47	
49			\N	49	
50			\N	50	
51			\N	51	
52			\N	52	
53			\N	53	
55			\N	55	
56			\N	56	
\.


--
-- Data for Name: personnel_employment; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.personnel_employment (id, employment_type, start_date, end_date, active_time, inactive_time, employee_id) FROM stdin;
\.


--
-- Data for Name: personnel_position; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.personnel_position (id, position_code, position_name, is_default, parent_position_id, company_id) FROM stdin;
1	1	Cargo	t	\N	1
\.


--
-- Data for Name: personnel_resign; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.personnel_resign (id, resign_date, resign_type, disableatt, reason, employee_id) FROM stdin;
\.


--
-- Data for Name: rest_framework_tracking_apirequestlog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.rest_framework_tracking_apirequestlog (id, requested_at, response_ms, path, remote_addr, host, method, query_params, data, response, status_code, user_id, view, view_method, errors, username_persistent) FROM stdin;
\.


--
-- Data for Name: staff_stafftoken; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.staff_stafftoken (key, created, user_id) FROM stdin;
\.


--
-- Data for Name: sync_area; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.sync_area (id, post_time, flag, update_time, sync_ret, area_code, area_name) FROM stdin;
\.


--
-- Data for Name: sync_department; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.sync_department (id, post_time, flag, update_time, sync_ret, dept_code, dept_name) FROM stdin;
\.


--
-- Data for Name: sync_employee; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.sync_employee (id, post_time, flag, update_time, sync_ret, emp_code, first_name, last_name, dept_code, dept_name, job_code, job_name, area_code, area_name, card_no, multi_area, hire_date, gender, birthday, email, active_status) FROM stdin;
\.


--
-- Data for Name: sync_job; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.sync_job (id, post_time, flag, update_time, sync_ret, job_code, job_name) FROM stdin;
\.


--
-- Data for Name: visitor_reason; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.visitor_reason (id, create_time, create_user, change_time, change_user, status, visit_reason) FROM stdin;
\.


--
-- Data for Name: visitor_reservation; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.visitor_reservation (workflowinstance_ptr_id, vis_first_name, vis_last_name, cert_no, gender, company, update_time, visit_quantity, visit_date, apply_time, apply_reason, cert_type_id, visit_department_id, visit_reason_id, email) FROM stdin;
\.


--
-- Data for Name: visitor_visitor; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.visitor_visitor (id, create_time, create_user, change_time, change_user, status, visitor_code, first_name, last_name, cert_no, photo, password, card_no, gender, company, ssn, update_time, email, mobile, visit_quantity, entry_carrying_goods, start_time, end_time, exit_time, exit_carrying_goods, remark, cert_type_id, visit_department_id, visit_reason_id, visited_id) FROM stdin;
\.


--
-- Data for Name: visitor_visitor_acc_groups; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.visitor_visitor_acc_groups (id, visitor_id, accgroups_id) FROM stdin;
\.


--
-- Data for Name: visitor_visitor_area; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.visitor_visitor_area (id, visitor_id, area_id) FROM stdin;
\.


--
-- Data for Name: visitor_visitorbiodata; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.visitor_visitorbiodata (id, create_time, create_user, change_time, change_user, status, bio_tmp, bio_no, bio_index, bio_type, major_ver, minor_ver, bio_format, valid, duress, update_time, sn, visitor_id) FROM stdin;
\.


--
-- Data for Name: visitor_visitorbiophoto; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.visitor_visitorbiophoto (id, create_time, create_user, change_time, change_user, status, first_name, last_name, email, enroll_sn, register_photo, register_time, approval_photo, approval_state, approval_time, remark, visitor_id) FROM stdin;
\.


--
-- Data for Name: visitor_visitorconfig; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.visitor_visitorconfig (id, create_time, create_user, change_time, change_user, status, qr_code_policy, code_prefix, code_width, code_start, access_limited, auto_delete_data, data_retention) FROM stdin;
1	2024-08-22 23:23:01.974394+08	\N	2024-08-22 23:23:01.974394+08	\N	0	1	V	8	1	\N	0	9999
\.


--
-- Data for Name: visitor_visitorlog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.visitor_visitorlog (id, create_time, create_user, change_time, change_user, status, visitor_status, visitor_id) FROM stdin;
\.


--
-- Data for Name: visitor_visitortransaction; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.visitor_visitortransaction (id, create_time, create_user, change_time, change_user, status, visitor_code, area, punch_time, punch_state, verify_type, temperature, is_mask, upload_time, source, terminal_sn, terminal_alias, terminal_id, visitor_id) FROM stdin;
\.


--
-- Data for Name: workflow_nodeinstance; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.workflow_nodeinstance (id, node_name, order_id, approval_status, approval_time, approval_remark, active, targeted, approver_employee_id, workflow_instance_id, workflow_node_id) FROM stdin;
\.


--
-- Data for Name: workflow_workflowengine; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.workflow_workflowengine (id, workflow_code, workflow_name, start_date, end_date, description, workflow_type, applicant_position_id, content_type_id, departments_id) FROM stdin;
\.


--
-- Data for Name: workflow_workflowengine_employee; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.workflow_workflowengine_employee (id, workflowengine_id, employee_id) FROM stdin;
\.


--
-- Data for Name: workflow_workflowinstance; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.workflow_workflowinstance (id, approval_time, approval_status, approval_remark, approver, approver_instance, employee_id, workflow_engine_id) FROM stdin;
\.


--
-- Data for Name: workflow_workflownode; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.workflow_workflownode (id, node_name, order_id, approver_by_overall, notify_by_overall, workflow_engine_id) FROM stdin;
\.


--
-- Data for Name: workflow_workflownode_approver; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.workflow_workflownode_approver (id, workflownode_id, workflowrole_id) FROM stdin;
\.


--
-- Data for Name: workflow_workflownode_notifier; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.workflow_workflownode_notifier (id, workflownode_id, workflowrole_id) FROM stdin;
\.


--
-- Data for Name: workflow_workflowrole; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.workflow_workflowrole (id, role_code, role_name, description) FROM stdin;
\.


--
-- Name: acc_acccombination_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.acc_acccombination_id_seq', 10, true);


--
-- Name: acc_accgroups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.acc_accgroups_id_seq', 1, true);


--
-- Name: acc_accholiday_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.acc_accholiday_id_seq', 1, false);


--
-- Name: acc_accprivilege_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.acc_accprivilege_id_seq', 56, true);


--
-- Name: acc_accterminal_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.acc_accterminal_id_seq', 1, false);


--
-- Name: acc_acctimezone_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.acc_acctimezone_id_seq', 1, true);


--
-- Name: accounts_adminbiodata_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.accounts_adminbiodata_id_seq', 1, false);


--
-- Name: accounts_usernotification_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.accounts_usernotification_id_seq', 6516, true);


--
-- Name: att_attcalclog_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_attcalclog_id_seq', 1, false);


--
-- Name: att_attcode_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_attcode_id_seq', 33, true);


--
-- Name: att_attemployee_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_attemployee_id_seq', 56, true);


--
-- Name: att_attgroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_attgroup_id_seq', 33, true);


--
-- Name: att_attpolicy_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_attpolicy_id_seq', 33, true);


--
-- Name: att_attreportsetting_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_attreportsetting_id_seq', 33, true);


--
-- Name: att_attschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_attschedule_id_seq', 1, false);


--
-- Name: att_attshift_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_attshift_id_seq', 1, true);


--
-- Name: att_breaktime_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_breaktime_id_seq', 1, true);


--
-- Name: att_calculatelastdate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_calculatelastdate_id_seq', 1, true);


--
-- Name: att_calculatetask_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_calculatetask_id_seq', 1, false);


--
-- Name: att_departmentpolicy_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_departmentpolicy_id_seq', 1, true);


--
-- Name: att_departmentschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_departmentschedule_id_seq', 2, true);


--
-- Name: att_deptattrule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_deptattrule_id_seq', 1, false);


--
-- Name: att_grouppolicy_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_grouppolicy_id_seq', 1, false);


--
-- Name: att_groupschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_groupschedule_id_seq', 1, false);


--
-- Name: att_holiday_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_holiday_id_seq', 1, false);


--
-- Name: att_leavegroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_leavegroup_id_seq', 1, false);


--
-- Name: att_leavegroupdetail_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_leavegroupdetail_id_seq', 1, false);


--
-- Name: att_leaveyearbalance_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_leaveyearbalance_id_seq', 1, false);


--
-- Name: att_overtimepolicy_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_overtimepolicy_id_seq', 32, true);


--
-- Name: att_paycode_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_paycode_id_seq', 33, true);


--
-- Name: att_payloadmulpunchset_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_payloadmulpunchset_id_seq', 1, false);


--
-- Name: att_reporttemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_reporttemplate_id_seq', 1, true);


--
-- Name: att_shiftdetail_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_shiftdetail_id_seq', 5, true);


--
-- Name: att_temporaryschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_temporaryschedule_id_seq', 1, false);


--
-- Name: att_tempschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_tempschedule_id_seq', 1, false);


--
-- Name: att_timeinterval_break_time_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_timeinterval_break_time_id_seq', 1, true);


--
-- Name: att_timeinterval_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.att_timeinterval_id_seq', 1, true);


--
-- Name: attparam_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.attparam_id_seq', 33, true);


--
-- Name: auth_group_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.auth_group_id_seq', 1, false);


--
-- Name: auth_group_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.auth_group_permissions_id_seq', 1, false);


--
-- Name: auth_permission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.auth_permission_id_seq', 957, true);


--
-- Name: auth_user_auth_area_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.auth_user_auth_area_id_seq', 3, true);


--
-- Name: auth_user_auth_dept_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.auth_user_auth_dept_id_seq', 6, true);


--
-- Name: auth_user_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.auth_user_groups_id_seq', 1, false);


--
-- Name: auth_user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.auth_user_id_seq', 4, true);


--
-- Name: auth_user_profile_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.auth_user_profile_id_seq', 4, true);


--
-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.auth_user_user_permissions_id_seq', 1, false);


--
-- Name: base_adminlog_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_adminlog_id_seq', 232, true);


--
-- Name: base_attparamdepts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_attparamdepts_id_seq', 1, false);


--
-- Name: base_autoattexporttask_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_autoattexporttask_id_seq', 1, false);


--
-- Name: base_autoexporttask_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_autoexporttask_id_seq', 1, false);


--
-- Name: base_autoimporttask_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_autoimporttask_id_seq', 1, false);


--
-- Name: base_bookmark_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_bookmark_id_seq', 1, false);


--
-- Name: base_dbbackuplog_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_dbbackuplog_id_seq', 1, false);


--
-- Name: base_emailtemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_emailtemplate_id_seq', 99, true);


--
-- Name: base_eventalertsetting_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_eventalertsetting_id_seq', 33, true);


--
-- Name: base_linenotifysetting_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_linenotifysetting_id_seq', 1, false);


--
-- Name: base_securitypolicy_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_securitypolicy_id_seq', 33, true);


--
-- Name: base_sendemail_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_sendemail_id_seq', 1, false);


--
-- Name: base_sftpsetting_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_sftpsetting_id_seq', 1, false);


--
-- Name: base_sysparam_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_sysparam_id_seq', 36, true);


--
-- Name: base_sysparamdept_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_sysparamdept_id_seq', 1, false);


--
-- Name: base_systemlog_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_systemlog_id_seq', 168, true);


--
-- Name: base_systemsetting_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.base_systemsetting_id_seq', 1, true);


--
-- Name: django_admin_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.django_admin_log_id_seq', 128, true);


--
-- Name: django_celery_beat_clockedschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.django_celery_beat_clockedschedule_id_seq', 1, false);


--
-- Name: django_celery_beat_crontabschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.django_celery_beat_crontabschedule_id_seq', 11, true);


--
-- Name: django_celery_beat_intervalschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.django_celery_beat_intervalschedule_id_seq', 3, true);


--
-- Name: django_celery_beat_periodictask_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.django_celery_beat_periodictask_id_seq', 16, true);


--
-- Name: django_celery_beat_solarschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.django_celery_beat_solarschedule_id_seq', 1, false);


--
-- Name: django_content_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.django_content_type_id_seq', 231, true);


--
-- Name: django_migrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.django_migrations_id_seq', 132, true);


--
-- Name: ep_epsetup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.ep_epsetup_id_seq', 33, true);


--
-- Name: ep_eptransaction_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.ep_eptransaction_id_seq', 1, false);


--
-- Name: guardian_groupobjectpermission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.guardian_groupobjectpermission_id_seq', 1, false);


--
-- Name: guardian_userobjectpermission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.guardian_userobjectpermission_id_seq', 1, false);


--
-- Name: iclock_biodata_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_biodata_id_seq', 31, true);


--
-- Name: iclock_biophoto_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_biophoto_id_seq', 31, true);


--
-- Name: iclock_devicemoduleconfig_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_devicemoduleconfig_id_seq', 33, true);


--
-- Name: iclock_errorcommandlog_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_errorcommandlog_id_seq', 1, false);


--
-- Name: iclock_privatemessage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_privatemessage_id_seq', 1, false);


--
-- Name: iclock_publicmessage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_publicmessage_id_seq', 1, false);


--
-- Name: iclock_shortmessage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_shortmessage_id_seq', 1, false);


--
-- Name: iclock_terminal_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_terminal_id_seq', 2, true);


--
-- Name: iclock_terminalcommand_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_terminalcommand_id_seq', 453, true);


--
-- Name: iclock_terminalcommandlog_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_terminalcommandlog_id_seq', 275, true);


--
-- Name: iclock_terminalemployee_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_terminalemployee_id_seq', 1, false);


--
-- Name: iclock_terminallog_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_terminallog_id_seq', 41, true);


--
-- Name: iclock_terminalparameter_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_terminalparameter_id_seq', 140, true);


--
-- Name: iclock_terminaluploadlog_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_terminaluploadlog_id_seq', 240, true);


--
-- Name: iclock_terminalworkcode_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_terminalworkcode_id_seq', 1, false);


--
-- Name: iclock_transaction_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_transaction_id_seq', 12236, true);


--
-- Name: iclock_transactionproofcmd_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.iclock_transactionproofcmd_id_seq', 1, false);


--
-- Name: meeting_meetingentity_attender_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.meeting_meetingentity_attender_id_seq', 1, false);


--
-- Name: meeting_meetingroom_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.meeting_meetingroom_id_seq', 1, false);


--
-- Name: meeting_meetingroomdevice_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.meeting_meetingroomdevice_id_seq', 1, false);


--
-- Name: meeting_meetingtransaction_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.meeting_meetingtransaction_id_seq', 1, false);


--
-- Name: mobile_announcement_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.mobile_announcement_id_seq', 1, false);


--
-- Name: mobile_appactionlog_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.mobile_appactionlog_id_seq', 1, false);


--
-- Name: mobile_applist_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.mobile_applist_id_seq', 1, false);


--
-- Name: mobile_appnotification_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.mobile_appnotification_id_seq', 1, false);


--
-- Name: mobile_gpsfordepartment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.mobile_gpsfordepartment_id_seq', 1, false);


--
-- Name: mobile_gpsfordepartment_location_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.mobile_gpsfordepartment_location_id_seq', 1, false);


--
-- Name: mobile_gpsforemployee_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.mobile_gpsforemployee_id_seq', 1, false);


--
-- Name: mobile_gpsforemployee_location_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.mobile_gpsforemployee_location_id_seq', 1, false);


--
-- Name: mobile_gpslocation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.mobile_gpslocation_id_seq', 1, false);


--
-- Name: mobile_mobileapirequestlog_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.mobile_mobileapirequestlog_id_seq', 1, false);


--
-- Name: payroll_deductionformula_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_deductionformula_id_seq', 1, false);


--
-- Name: payroll_emploan_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_emploan_id_seq', 1, false);


--
-- Name: payroll_emppayrollprofile_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_emppayrollprofile_id_seq', 56, true);


--
-- Name: payroll_exceptionformula_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_exceptionformula_id_seq', 1, false);


--
-- Name: payroll_extradeduction_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_extradeduction_id_seq', 1, false);


--
-- Name: payroll_extraincrease_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_extraincrease_id_seq', 1, false);


--
-- Name: payroll_increasementformula_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_increasementformula_id_seq', 1, false);


--
-- Name: payroll_leaveformula_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_leaveformula_id_seq', 1, false);


--
-- Name: payroll_overtimeformula_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_overtimeformula_id_seq', 1, false);


--
-- Name: payroll_payrollpayload_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_payrollpayload_id_seq', 1, false);


--
-- Name: payroll_payrollpayloadpaycode_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_payrollpayloadpaycode_id_seq', 1, false);


--
-- Name: payroll_reimbursement_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_reimbursement_id_seq', 1, false);


--
-- Name: payroll_salaryadvance_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_salaryadvance_id_seq', 1, false);


--
-- Name: payroll_salarystructure_deductionformula_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_salarystructure_deductionformula_id_seq', 1, false);


--
-- Name: payroll_salarystructure_exceptionformula_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_salarystructure_exceptionformula_id_seq', 1, false);


--
-- Name: payroll_salarystructure_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_salarystructure_id_seq', 1, false);


--
-- Name: payroll_salarystructure_increasementformula_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_salarystructure_increasementformula_id_seq', 1, false);


--
-- Name: payroll_salarystructure_leaveformula_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_salarystructure_leaveformula_id_seq', 1, false);


--
-- Name: payroll_salarystructure_overtimeformula_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.payroll_salarystructure_overtimeformula_id_seq', 1, false);


--
-- Name: personnel_area_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.personnel_area_id_seq', 34, true);


--
-- Name: personnel_assignareaemployee_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.personnel_assignareaemployee_id_seq', 1, false);


--
-- Name: personnel_certification_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.personnel_certification_id_seq', 1, false);


--
-- Name: personnel_company_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.personnel_company_id_seq', 1, false);


--
-- Name: personnel_department_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.personnel_department_id_seq', 40, true);


--
-- Name: personnel_employee_area_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.personnel_employee_area_id_seq', 56, true);


--
-- Name: personnel_employee_flow_role_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.personnel_employee_flow_role_id_seq', 1, false);


--
-- Name: personnel_employee_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.personnel_employee_id_seq', 56, true);


--
-- Name: personnel_employeecalendar_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.personnel_employeecalendar_id_seq', 1, false);


--
-- Name: personnel_employeecertification_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.personnel_employeecertification_id_seq', 1, false);


--
-- Name: personnel_employeecustomattribute_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.personnel_employeecustomattribute_id_seq', 1, false);


--
-- Name: personnel_employeeextrainfo_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.personnel_employeeextrainfo_id_seq', 1, false);


--
-- Name: personnel_employeeprofile_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.personnel_employeeprofile_id_seq', 56, true);


--
-- Name: personnel_employment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.personnel_employment_id_seq', 1, false);


--
-- Name: personnel_position_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.personnel_position_id_seq', 33, true);


--
-- Name: personnel_resign_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.personnel_resign_id_seq', 1, false);


--
-- Name: rest_framework_tracking_apirequestlog_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.rest_framework_tracking_apirequestlog_id_seq', 1, false);


--
-- Name: sync_area_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.sync_area_id_seq', 1, false);


--
-- Name: sync_department_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.sync_department_id_seq', 1, false);


--
-- Name: sync_employee_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.sync_employee_id_seq', 1, false);


--
-- Name: sync_job_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.sync_job_id_seq', 1, false);


--
-- Name: visitor_reason_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.visitor_reason_id_seq', 1, false);


--
-- Name: visitor_visitor_acc_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.visitor_visitor_acc_groups_id_seq', 1, false);


--
-- Name: visitor_visitor_area_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.visitor_visitor_area_id_seq', 1, false);


--
-- Name: visitor_visitor_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.visitor_visitor_id_seq', 1, false);


--
-- Name: visitor_visitorbiodata_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.visitor_visitorbiodata_id_seq', 1, false);


--
-- Name: visitor_visitorbiophoto_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.visitor_visitorbiophoto_id_seq', 1, false);


--
-- Name: visitor_visitorconfig_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.visitor_visitorconfig_id_seq', 33, true);


--
-- Name: visitor_visitorlog_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.visitor_visitorlog_id_seq', 1, false);


--
-- Name: visitor_visitortransaction_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.visitor_visitortransaction_id_seq', 1, false);


--
-- Name: workflow_nodeinstance_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.workflow_nodeinstance_id_seq', 1, false);


--
-- Name: workflow_workflowengine_employee_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.workflow_workflowengine_employee_id_seq', 1, false);


--
-- Name: workflow_workflowengine_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.workflow_workflowengine_id_seq', 1, false);


--
-- Name: workflow_workflowinstance_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.workflow_workflowinstance_id_seq', 1, false);


--
-- Name: workflow_workflownode_approver_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.workflow_workflownode_approver_id_seq', 1, false);


--
-- Name: workflow_workflownode_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.workflow_workflownode_id_seq', 1, false);


--
-- Name: workflow_workflownode_notifier_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.workflow_workflownode_notifier_id_seq', 1, false);


--
-- Name: workflow_workflowrole_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.workflow_workflowrole_id_seq', 1, false);


--
-- Name: acc_acccombination acc_acccombination_area_id_combination_no_619eb4f5_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_acccombination
    ADD CONSTRAINT acc_acccombination_area_id_combination_no_619eb4f5_uniq UNIQUE (area_id, combination_no);


--
-- Name: acc_acccombination acc_acccombination_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_acccombination
    ADD CONSTRAINT acc_acccombination_pkey PRIMARY KEY (id);


--
-- Name: acc_accgroups acc_accgroups_area_id_group_no_5130a89c_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_accgroups
    ADD CONSTRAINT acc_accgroups_area_id_group_no_5130a89c_uniq UNIQUE (area_id, group_no);


--
-- Name: acc_accgroups acc_accgroups_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_accgroups
    ADD CONSTRAINT acc_accgroups_pkey PRIMARY KEY (id);


--
-- Name: acc_accholiday acc_accholiday_area_id_holiday_id_6630c2eb_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_accholiday
    ADD CONSTRAINT acc_accholiday_area_id_holiday_id_6630c2eb_uniq UNIQUE (area_id, holiday_id);


--
-- Name: acc_accholiday acc_accholiday_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_accholiday
    ADD CONSTRAINT acc_accholiday_pkey PRIMARY KEY (id);


--
-- Name: acc_accprivilege acc_accprivilege_area_id_employee_id_group_id_f3b297d8_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_accprivilege
    ADD CONSTRAINT acc_accprivilege_area_id_employee_id_group_id_f3b297d8_uniq UNIQUE (area_id, employee_id, group_id);


--
-- Name: acc_accprivilege acc_accprivilege_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_accprivilege
    ADD CONSTRAINT acc_accprivilege_pkey PRIMARY KEY (id);


--
-- Name: acc_accterminal acc_accterminal_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_accterminal
    ADD CONSTRAINT acc_accterminal_pkey PRIMARY KEY (id);


--
-- Name: acc_acctimezone acc_acctimezone_area_id_timezone_no_0cb8250f_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_acctimezone
    ADD CONSTRAINT acc_acctimezone_area_id_timezone_no_0cb8250f_uniq UNIQUE (area_id, timezone_no);


--
-- Name: acc_acctimezone acc_acctimezone_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_acctimezone
    ADD CONSTRAINT acc_acctimezone_pkey PRIMARY KEY (id);


--
-- Name: accounts_adminbiodata accounts_adminbiodata_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.accounts_adminbiodata
    ADD CONSTRAINT accounts_adminbiodata_pkey PRIMARY KEY (id);


--
-- Name: accounts_usernotification accounts_usernotification_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.accounts_usernotification
    ADD CONSTRAINT accounts_usernotification_pkey PRIMARY KEY (id);


--
-- Name: att_attcalclog att_attcalclog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attcalclog
    ADD CONSTRAINT att_attcalclog_pkey PRIMARY KEY (id);


--
-- Name: att_attcode att_attcode_alias_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attcode
    ADD CONSTRAINT att_attcode_alias_key UNIQUE (alias);


--
-- Name: att_attcode att_attcode_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attcode
    ADD CONSTRAINT att_attcode_code_key UNIQUE (code);


--
-- Name: att_attcode att_attcode_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attcode
    ADD CONSTRAINT att_attcode_pkey PRIMARY KEY (id);


--
-- Name: att_attemployee att_attemployee_emp_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attemployee
    ADD CONSTRAINT att_attemployee_emp_id_key UNIQUE (emp_id);


--
-- Name: att_attemployee att_attemployee_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attemployee
    ADD CONSTRAINT att_attemployee_pkey PRIMARY KEY (id);


--
-- Name: att_attgroup att_attgroup_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attgroup
    ADD CONSTRAINT att_attgroup_code_key UNIQUE (code);


--
-- Name: att_attgroup att_attgroup_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attgroup
    ADD CONSTRAINT att_attgroup_name_key UNIQUE (name);


--
-- Name: att_attgroup att_attgroup_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attgroup
    ADD CONSTRAINT att_attgroup_pkey PRIMARY KEY (id);


--
-- Name: att_attpolicy att_attpolicy_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attpolicy
    ADD CONSTRAINT att_attpolicy_pkey PRIMARY KEY (id);


--
-- Name: att_attreportsetting att_attreportsetting_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attreportsetting
    ADD CONSTRAINT att_attreportsetting_pkey PRIMARY KEY (id);


--
-- Name: att_attrule att_attrule_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attrule
    ADD CONSTRAINT att_attrule_pkey PRIMARY KEY (param_name);


--
-- Name: att_attschedule att_attschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attschedule
    ADD CONSTRAINT att_attschedule_pkey PRIMARY KEY (id);


--
-- Name: att_attshift att_attshift_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attshift
    ADD CONSTRAINT att_attshift_pkey PRIMARY KEY (id);


--
-- Name: att_breaktime att_breaktime_alias_6212d9cf_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_breaktime
    ADD CONSTRAINT att_breaktime_alias_6212d9cf_uniq UNIQUE (alias);


--
-- Name: att_breaktime att_breaktime_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_breaktime
    ADD CONSTRAINT att_breaktime_pkey PRIMARY KEY (id);


--
-- Name: att_calculatelastdate att_calculatelastdate_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_calculatelastdate
    ADD CONSTRAINT att_calculatelastdate_pkey PRIMARY KEY (id);


--
-- Name: att_calculatetask att_calculatetask_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_calculatetask
    ADD CONSTRAINT att_calculatetask_pkey PRIMARY KEY (id);


--
-- Name: att_changeschedule att_changeschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_changeschedule
    ADD CONSTRAINT att_changeschedule_pkey PRIMARY KEY (workflowinstance_ptr_id);


--
-- Name: att_departmentpolicy att_departmentpolicy_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_departmentpolicy
    ADD CONSTRAINT att_departmentpolicy_pkey PRIMARY KEY (id);


--
-- Name: att_departmentschedule att_departmentschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_departmentschedule
    ADD CONSTRAINT att_departmentschedule_pkey PRIMARY KEY (id);


--
-- Name: att_deptattrule att_deptattrule_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_deptattrule
    ADD CONSTRAINT att_deptattrule_pkey PRIMARY KEY (id);


--
-- Name: att_grouppolicy att_grouppolicy_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_grouppolicy
    ADD CONSTRAINT att_grouppolicy_pkey PRIMARY KEY (id);


--
-- Name: att_groupschedule att_groupschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_groupschedule
    ADD CONSTRAINT att_groupschedule_pkey PRIMARY KEY (id);


--
-- Name: att_holiday att_holiday_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_holiday
    ADD CONSTRAINT att_holiday_pkey PRIMARY KEY (id);


--
-- Name: att_leave att_leave_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_leave
    ADD CONSTRAINT att_leave_pkey PRIMARY KEY (workflowinstance_ptr_id);


--
-- Name: att_leavegroup att_leavegroup_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_leavegroup
    ADD CONSTRAINT att_leavegroup_code_key UNIQUE (code);


--
-- Name: att_leavegroup att_leavegroup_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_leavegroup
    ADD CONSTRAINT att_leavegroup_name_key UNIQUE (name);


--
-- Name: att_leavegroup att_leavegroup_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_leavegroup
    ADD CONSTRAINT att_leavegroup_pkey PRIMARY KEY (id);


--
-- Name: att_leavegroupdetail att_leavegroupdetail_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_leavegroupdetail
    ADD CONSTRAINT att_leavegroupdetail_pkey PRIMARY KEY (id);


--
-- Name: att_leaveyearbalance att_leaveyearbalance_employee_id_year_pay_code_id_2ec71517_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_leaveyearbalance
    ADD CONSTRAINT att_leaveyearbalance_employee_id_year_pay_code_id_2ec71517_uniq UNIQUE (employee_id, year, pay_code_id);


--
-- Name: att_leaveyearbalance att_leaveyearbalance_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_leaveyearbalance
    ADD CONSTRAINT att_leaveyearbalance_pkey PRIMARY KEY (id);


--
-- Name: att_manuallog att_manuallog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_manuallog
    ADD CONSTRAINT att_manuallog_pkey PRIMARY KEY (workflowinstance_ptr_id);


--
-- Name: att_overtime att_overtime_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_overtime
    ADD CONSTRAINT att_overtime_pkey PRIMARY KEY (workflowinstance_ptr_id);


--
-- Name: att_overtimepolicy att_overtimepolicy_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_overtimepolicy
    ADD CONSTRAINT att_overtimepolicy_pkey PRIMARY KEY (id);


--
-- Name: att_paycode att_paycode_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_paycode
    ADD CONSTRAINT att_paycode_code_key UNIQUE (code);


--
-- Name: att_paycode att_paycode_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_paycode
    ADD CONSTRAINT att_paycode_name_key UNIQUE (name);


--
-- Name: att_paycode att_paycode_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_paycode
    ADD CONSTRAINT att_paycode_pkey PRIMARY KEY (id);


--
-- Name: att_payloadattcode att_payloadattcode_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadattcode
    ADD CONSTRAINT att_payloadattcode_pkey PRIMARY KEY (id);


--
-- Name: att_payloadbase att_payloadbase_break_time_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadbase
    ADD CONSTRAINT att_payloadbase_break_time_id_key UNIQUE (break_time_id);


--
-- Name: att_payloadbase att_payloadbase_overtime_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadbase
    ADD CONSTRAINT att_payloadbase_overtime_id_key UNIQUE (overtime_id);


--
-- Name: att_payloadbase att_payloadbase_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadbase
    ADD CONSTRAINT att_payloadbase_pkey PRIMARY KEY (uuid);


--
-- Name: att_payloadbreak att_payloadbreak_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadbreak
    ADD CONSTRAINT att_payloadbreak_pkey PRIMARY KEY (uuid);


--
-- Name: att_payloadeffectpunch att_payloadeffectpunch_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadeffectpunch
    ADD CONSTRAINT att_payloadeffectpunch_pkey PRIMARY KEY (id);


--
-- Name: att_payloadexception att_payloadexception_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadexception
    ADD CONSTRAINT att_payloadexception_pkey PRIMARY KEY (uuid);


--
-- Name: att_payloadmulpunchset att_payloadmulpunchset_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadmulpunchset
    ADD CONSTRAINT att_payloadmulpunchset_pkey PRIMARY KEY (id);


--
-- Name: att_payloadovertime att_payloadovertime_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadovertime
    ADD CONSTRAINT att_payloadovertime_pkey PRIMARY KEY (uuid);


--
-- Name: att_payloadparing att_payloadparing_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadparing
    ADD CONSTRAINT att_payloadparing_pkey PRIMARY KEY (id);


--
-- Name: att_payloadpaycode att_payloadpaycode_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadpaycode
    ADD CONSTRAINT att_payloadpaycode_pkey PRIMARY KEY (id);


--
-- Name: att_payloadpunch att_payloadpunch_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadpunch
    ADD CONSTRAINT att_payloadpunch_pkey PRIMARY KEY (uuid);


--
-- Name: att_payloadtimecard att_payloadtimecard_emp_id_att_date_time_table_id_9df16bc5_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadtimecard
    ADD CONSTRAINT att_payloadtimecard_emp_id_att_date_time_table_id_9df16bc5_uniq UNIQUE (emp_id, att_date, time_table_id);


--
-- Name: att_payloadtimecard att_payloadtimecard_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadtimecard
    ADD CONSTRAINT att_payloadtimecard_pkey PRIMARY KEY (id);


--
-- Name: att_reportparam att_reportparam_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_reportparam
    ADD CONSTRAINT att_reportparam_pkey PRIMARY KEY (param_name);


--
-- Name: att_reporttemplate att_reporttemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_reporttemplate
    ADD CONSTRAINT att_reporttemplate_pkey PRIMARY KEY (id);


--
-- Name: att_shiftdetail att_shiftdetail_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_shiftdetail
    ADD CONSTRAINT att_shiftdetail_pkey PRIMARY KEY (id);


--
-- Name: att_temporaryschedule att_temporaryschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_temporaryschedule
    ADD CONSTRAINT att_temporaryschedule_pkey PRIMARY KEY (id);


--
-- Name: att_tempschedule att_tempschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_tempschedule
    ADD CONSTRAINT att_tempschedule_pkey PRIMARY KEY (id);


--
-- Name: att_timeinterval att_timeinterval_alias_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_timeinterval
    ADD CONSTRAINT att_timeinterval_alias_key UNIQUE (alias);


--
-- Name: att_timeinterval_break_time att_timeinterval_break_t_timeinterval_id_breaktim_6e1bfb4e_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_timeinterval_break_time
    ADD CONSTRAINT att_timeinterval_break_t_timeinterval_id_breaktim_6e1bfb4e_uniq UNIQUE (timeinterval_id, breaktime_id);


--
-- Name: att_timeinterval_break_time att_timeinterval_break_time_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_timeinterval_break_time
    ADD CONSTRAINT att_timeinterval_break_time_pkey PRIMARY KEY (id);


--
-- Name: att_timeinterval att_timeinterval_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_timeinterval
    ADD CONSTRAINT att_timeinterval_pkey PRIMARY KEY (id);


--
-- Name: att_training att_training_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_training
    ADD CONSTRAINT att_training_pkey PRIMARY KEY (workflowinstance_ptr_id);


--
-- Name: att_webpunch att_webpunch_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_webpunch
    ADD CONSTRAINT att_webpunch_pkey PRIMARY KEY (workflowinstance_ptr_id);


--
-- Name: attparam attparam_paraname_paratype_6f176d25_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.attparam
    ADD CONSTRAINT attparam_paraname_paratype_6f176d25_uniq UNIQUE (paraname, paratype);


--
-- Name: attparam attparam_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.attparam
    ADD CONSTRAINT attparam_pkey PRIMARY KEY (id);


--
-- Name: auth_group auth_group_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_group
    ADD CONSTRAINT auth_group_name_key UNIQUE (name);


--
-- Name: auth_group_permissions auth_group_permissions_group_id_permission_id_0cd325b0_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_group_permissions
    ADD CONSTRAINT auth_group_permissions_group_id_permission_id_0cd325b0_uniq UNIQUE (group_id, permission_id);


--
-- Name: auth_group_permissions auth_group_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_group_permissions
    ADD CONSTRAINT auth_group_permissions_pkey PRIMARY KEY (id);


--
-- Name: auth_group auth_group_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_group
    ADD CONSTRAINT auth_group_pkey PRIMARY KEY (id);


--
-- Name: auth_permission auth_permission_content_type_id_codename_01ab375a_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_permission
    ADD CONSTRAINT auth_permission_content_type_id_codename_01ab375a_uniq UNIQUE (content_type_id, codename);


--
-- Name: auth_permission auth_permission_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_permission
    ADD CONSTRAINT auth_permission_pkey PRIMARY KEY (id);


--
-- Name: auth_user_auth_area auth_user_auth_area_myuser_id_area_id_02a19d63_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_auth_area
    ADD CONSTRAINT auth_user_auth_area_myuser_id_area_id_02a19d63_uniq UNIQUE (myuser_id, area_id);


--
-- Name: auth_user_auth_area auth_user_auth_area_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_auth_area
    ADD CONSTRAINT auth_user_auth_area_pkey PRIMARY KEY (id);


--
-- Name: auth_user_auth_dept auth_user_auth_dept_myuser_id_department_id_61d83386_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_auth_dept
    ADD CONSTRAINT auth_user_auth_dept_myuser_id_department_id_61d83386_uniq UNIQUE (myuser_id, department_id);


--
-- Name: auth_user_auth_dept auth_user_auth_dept_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_auth_dept
    ADD CONSTRAINT auth_user_auth_dept_pkey PRIMARY KEY (id);


--
-- Name: auth_user_groups auth_user_groups_myuser_id_group_id_664bdfc3_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_groups
    ADD CONSTRAINT auth_user_groups_myuser_id_group_id_664bdfc3_uniq UNIQUE (myuser_id, group_id);


--
-- Name: auth_user_groups auth_user_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_groups
    ADD CONSTRAINT auth_user_groups_pkey PRIMARY KEY (id);


--
-- Name: auth_user auth_user_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user
    ADD CONSTRAINT auth_user_pkey PRIMARY KEY (id);


--
-- Name: auth_user_profile auth_user_profile_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_profile
    ADD CONSTRAINT auth_user_profile_pkey PRIMARY KEY (id);


--
-- Name: auth_user_profile auth_user_profile_user_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_profile
    ADD CONSTRAINT auth_user_profile_user_id_key UNIQUE (user_id);


--
-- Name: auth_user_user_permissions auth_user_user_permissio_myuser_id_permission_id_a558717f_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_user_permissions
    ADD CONSTRAINT auth_user_user_permissio_myuser_id_permission_id_a558717f_uniq UNIQUE (myuser_id, permission_id);


--
-- Name: auth_user_user_permissions auth_user_user_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_user_permissions
    ADD CONSTRAINT auth_user_user_permissions_pkey PRIMARY KEY (id);


--
-- Name: auth_user auth_user_username_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user
    ADD CONSTRAINT auth_user_username_key UNIQUE (username);


--
-- Name: authtoken_token authtoken_token_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.authtoken_token
    ADD CONSTRAINT authtoken_token_pkey PRIMARY KEY (key);


--
-- Name: authtoken_token authtoken_token_user_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.authtoken_token
    ADD CONSTRAINT authtoken_token_user_id_key UNIQUE (user_id);


--
-- Name: base_adminlog base_adminlog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_adminlog
    ADD CONSTRAINT base_adminlog_pkey PRIMARY KEY (id);


--
-- Name: base_attparamdepts base_attparamdepts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_attparamdepts
    ADD CONSTRAINT base_attparamdepts_pkey PRIMARY KEY (id);


--
-- Name: base_attparamdepts base_attparamdepts_rulename_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_attparamdepts
    ADD CONSTRAINT base_attparamdepts_rulename_key UNIQUE (rulename);


--
-- Name: base_autoattexporttask base_autoattexporttask_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_autoattexporttask
    ADD CONSTRAINT base_autoattexporttask_pkey PRIMARY KEY (id);


--
-- Name: base_autoattexporttask base_autoattexporttask_task_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_autoattexporttask
    ADD CONSTRAINT base_autoattexporttask_task_code_key UNIQUE (task_code);


--
-- Name: base_autoexporttask base_autoexporttask_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_autoexporttask
    ADD CONSTRAINT base_autoexporttask_pkey PRIMARY KEY (id);


--
-- Name: base_autoexporttask base_autoexporttask_task_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_autoexporttask
    ADD CONSTRAINT base_autoexporttask_task_code_key UNIQUE (task_code);


--
-- Name: base_autoimporttask base_autoimporttask_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_autoimporttask
    ADD CONSTRAINT base_autoimporttask_pkey PRIMARY KEY (id);


--
-- Name: base_autoimporttask base_autoimporttask_task_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_autoimporttask
    ADD CONSTRAINT base_autoimporttask_task_code_key UNIQUE (task_code);


--
-- Name: base_bookmark base_bookmark_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_bookmark
    ADD CONSTRAINT base_bookmark_pkey PRIMARY KEY (id);


--
-- Name: base_dbbackuplog base_dbbackuplog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_dbbackuplog
    ADD CONSTRAINT base_dbbackuplog_pkey PRIMARY KEY (id);


--
-- Name: base_emailtemplate base_emailtemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_emailtemplate
    ADD CONSTRAINT base_emailtemplate_pkey PRIMARY KEY (id);


--
-- Name: base_eventalertsetting base_eventalertsetting_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_eventalertsetting
    ADD CONSTRAINT base_eventalertsetting_pkey PRIMARY KEY (id);


--
-- Name: base_linenotifysetting base_linenotifysetting_line_notify_dept_id_line_dd79374f_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_linenotifysetting
    ADD CONSTRAINT base_linenotifysetting_line_notify_dept_id_line_dd79374f_uniq UNIQUE (line_notify_dept_id, line_notify_token, message_type);


--
-- Name: base_linenotifysetting base_linenotifysetting_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_linenotifysetting
    ADD CONSTRAINT base_linenotifysetting_pkey PRIMARY KEY (id);


--
-- Name: base_securitypolicy base_securitypolicy_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_securitypolicy
    ADD CONSTRAINT base_securitypolicy_pkey PRIMARY KEY (id);


--
-- Name: base_sendemail base_sendemail_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_sendemail
    ADD CONSTRAINT base_sendemail_pkey PRIMARY KEY (id);


--
-- Name: base_sftpsetting base_sftpsetting_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_sftpsetting
    ADD CONSTRAINT base_sftpsetting_pkey PRIMARY KEY (id);


--
-- Name: base_sysparam base_sysparam_para_name_para_type_3086789a_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_sysparam
    ADD CONSTRAINT base_sysparam_para_name_para_type_3086789a_uniq UNIQUE (para_name, para_type);


--
-- Name: base_sysparam base_sysparam_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_sysparam
    ADD CONSTRAINT base_sysparam_pkey PRIMARY KEY (id);


--
-- Name: base_sysparamdept base_sysparamdept_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_sysparamdept
    ADD CONSTRAINT base_sysparamdept_pkey PRIMARY KEY (id);


--
-- Name: base_sysparamdept base_sysparamdept_rule_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_sysparamdept
    ADD CONSTRAINT base_sysparamdept_rule_name_key UNIQUE (rule_name);


--
-- Name: base_systemlog base_systemlog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_systemlog
    ADD CONSTRAINT base_systemlog_pkey PRIMARY KEY (id);


--
-- Name: base_systemsetting base_systemsetting_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_systemsetting
    ADD CONSTRAINT base_systemsetting_pkey PRIMARY KEY (id);


--
-- Name: django_admin_log django_admin_log_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_admin_log
    ADD CONSTRAINT django_admin_log_pkey PRIMARY KEY (id);


--
-- Name: django_celery_beat_clockedschedule django_celery_beat_clockedschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_celery_beat_clockedschedule
    ADD CONSTRAINT django_celery_beat_clockedschedule_pkey PRIMARY KEY (id);


--
-- Name: django_celery_beat_crontabschedule django_celery_beat_crontabschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_celery_beat_crontabschedule
    ADD CONSTRAINT django_celery_beat_crontabschedule_pkey PRIMARY KEY (id);


--
-- Name: django_celery_beat_intervalschedule django_celery_beat_intervalschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_celery_beat_intervalschedule
    ADD CONSTRAINT django_celery_beat_intervalschedule_pkey PRIMARY KEY (id);


--
-- Name: django_celery_beat_periodictask django_celery_beat_periodictask_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_celery_beat_periodictask
    ADD CONSTRAINT django_celery_beat_periodictask_name_key UNIQUE (name);


--
-- Name: django_celery_beat_periodictask django_celery_beat_periodictask_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_celery_beat_periodictask
    ADD CONSTRAINT django_celery_beat_periodictask_pkey PRIMARY KEY (id);


--
-- Name: django_celery_beat_periodictasks django_celery_beat_periodictasks_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_celery_beat_periodictasks
    ADD CONSTRAINT django_celery_beat_periodictasks_pkey PRIMARY KEY (ident);


--
-- Name: django_celery_beat_solarschedule django_celery_beat_solar_event_latitude_longitude_ba64999a_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_celery_beat_solarschedule
    ADD CONSTRAINT django_celery_beat_solar_event_latitude_longitude_ba64999a_uniq UNIQUE (event, latitude, longitude);


--
-- Name: django_celery_beat_solarschedule django_celery_beat_solarschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_celery_beat_solarschedule
    ADD CONSTRAINT django_celery_beat_solarschedule_pkey PRIMARY KEY (id);


--
-- Name: django_content_type django_content_type_app_label_model_76bd3d3b_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_content_type
    ADD CONSTRAINT django_content_type_app_label_model_76bd3d3b_uniq UNIQUE (app_label, model);


--
-- Name: django_content_type django_content_type_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_content_type
    ADD CONSTRAINT django_content_type_pkey PRIMARY KEY (id);


--
-- Name: django_migrations django_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_migrations
    ADD CONSTRAINT django_migrations_pkey PRIMARY KEY (id);


--
-- Name: django_session django_session_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_session
    ADD CONSTRAINT django_session_pkey PRIMARY KEY (session_key);


--
-- Name: ep_epsetup ep_epsetup_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ep_epsetup
    ADD CONSTRAINT ep_epsetup_pkey PRIMARY KEY (id);


--
-- Name: ep_eptransaction ep_eptransaction_emp_id_check_datetime_57cec995_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ep_eptransaction
    ADD CONSTRAINT ep_eptransaction_emp_id_check_datetime_57cec995_uniq UNIQUE (emp_id, check_datetime);


--
-- Name: ep_eptransaction ep_eptransaction_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ep_eptransaction
    ADD CONSTRAINT ep_eptransaction_pkey PRIMARY KEY (id);


--
-- Name: guardian_groupobjectpermission guardian_groupobjectperm_group_id_permission_id_o_3f189f7c_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.guardian_groupobjectpermission
    ADD CONSTRAINT guardian_groupobjectperm_group_id_permission_id_o_3f189f7c_uniq UNIQUE (group_id, permission_id, object_pk);


--
-- Name: guardian_groupobjectpermission guardian_groupobjectpermission_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.guardian_groupobjectpermission
    ADD CONSTRAINT guardian_groupobjectpermission_pkey PRIMARY KEY (id);


--
-- Name: guardian_userobjectpermission guardian_userobjectpermi_user_id_permission_id_ob_b0b3d2fc_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.guardian_userobjectpermission
    ADD CONSTRAINT guardian_userobjectpermi_user_id_permission_id_ob_b0b3d2fc_uniq UNIQUE (user_id, permission_id, object_pk);


--
-- Name: guardian_userobjectpermission guardian_userobjectpermission_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.guardian_userobjectpermission
    ADD CONSTRAINT guardian_userobjectpermission_pkey PRIMARY KEY (id);


--
-- Name: iclock_biodata iclock_biodata_employee_id_bio_no_bio_i_b71b2ca9_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_biodata
    ADD CONSTRAINT iclock_biodata_employee_id_bio_no_bio_i_b71b2ca9_uniq UNIQUE (employee_id, bio_no, bio_index, bio_type, bio_format, major_ver);


--
-- Name: iclock_biodata iclock_biodata_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_biodata
    ADD CONSTRAINT iclock_biodata_pkey PRIMARY KEY (id);


--
-- Name: iclock_biophoto iclock_biophoto_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_biophoto
    ADD CONSTRAINT iclock_biophoto_pkey PRIMARY KEY (id);


--
-- Name: iclock_devicemoduleconfig iclock_devicemoduleconfig_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_devicemoduleconfig
    ADD CONSTRAINT iclock_devicemoduleconfig_pkey PRIMARY KEY (id);


--
-- Name: iclock_errorcommandlog iclock_errorcommandlog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_errorcommandlog
    ADD CONSTRAINT iclock_errorcommandlog_pkey PRIMARY KEY (id);


--
-- Name: iclock_privatemessage iclock_privatemessage_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_privatemessage
    ADD CONSTRAINT iclock_privatemessage_pkey PRIMARY KEY (id);


--
-- Name: iclock_publicmessage iclock_publicmessage_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_publicmessage
    ADD CONSTRAINT iclock_publicmessage_pkey PRIMARY KEY (id);


--
-- Name: iclock_shortmessage iclock_shortmessage_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_shortmessage
    ADD CONSTRAINT iclock_shortmessage_pkey PRIMARY KEY (id);


--
-- Name: iclock_terminal iclock_terminal_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminal
    ADD CONSTRAINT iclock_terminal_pkey PRIMARY KEY (id);


--
-- Name: iclock_terminal iclock_terminal_sn_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminal
    ADD CONSTRAINT iclock_terminal_sn_key UNIQUE (sn);


--
-- Name: iclock_terminalcommand iclock_terminalcommand_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminalcommand
    ADD CONSTRAINT iclock_terminalcommand_pkey PRIMARY KEY (id);


--
-- Name: iclock_terminalcommandlog iclock_terminalcommandlog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminalcommandlog
    ADD CONSTRAINT iclock_terminalcommandlog_pkey PRIMARY KEY (id);


--
-- Name: iclock_terminalemployee iclock_terminalemployee_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminalemployee
    ADD CONSTRAINT iclock_terminalemployee_pkey PRIMARY KEY (id);


--
-- Name: iclock_terminallog iclock_terminallog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminallog
    ADD CONSTRAINT iclock_terminallog_pkey PRIMARY KEY (id);


--
-- Name: iclock_terminalparameter iclock_terminalparameter_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminalparameter
    ADD CONSTRAINT iclock_terminalparameter_pkey PRIMARY KEY (id);


--
-- Name: iclock_terminalparameter iclock_terminalparameter_terminal_id_param_name_8abbb5c0_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminalparameter
    ADD CONSTRAINT iclock_terminalparameter_terminal_id_param_name_8abbb5c0_uniq UNIQUE (terminal_id, param_name);


--
-- Name: iclock_terminaluploadlog iclock_terminaluploadlog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminaluploadlog
    ADD CONSTRAINT iclock_terminaluploadlog_pkey PRIMARY KEY (id);


--
-- Name: iclock_terminalworkcode iclock_terminalworkcode_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminalworkcode
    ADD CONSTRAINT iclock_terminalworkcode_code_key UNIQUE (code);


--
-- Name: iclock_terminalworkcode iclock_terminalworkcode_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminalworkcode
    ADD CONSTRAINT iclock_terminalworkcode_pkey PRIMARY KEY (id);


--
-- Name: iclock_transaction iclock_transaction_company_code_emp_code_pu_2665c3d7_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_transaction
    ADD CONSTRAINT iclock_transaction_company_code_emp_code_pu_2665c3d7_uniq UNIQUE (company_code, emp_code, punch_time);


--
-- Name: iclock_transaction iclock_transaction_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_transaction
    ADD CONSTRAINT iclock_transaction_pkey PRIMARY KEY (id);


--
-- Name: iclock_transactionproofcmd iclock_transactionproofcmd_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_transactionproofcmd
    ADD CONSTRAINT iclock_transactionproofcmd_pkey PRIMARY KEY (id);


--
-- Name: meeting_meetingentity_attender meeting_meetingentity_at_meetingentity_id_employe_b556fc2d_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingentity_attender
    ADD CONSTRAINT meeting_meetingentity_at_meetingentity_id_employe_b556fc2d_uniq UNIQUE (meetingentity_id, employee_id);


--
-- Name: meeting_meetingentity_attender meeting_meetingentity_attender_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingentity_attender
    ADD CONSTRAINT meeting_meetingentity_attender_pkey PRIMARY KEY (id);


--
-- Name: meeting_meetingentity meeting_meetingentity_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingentity
    ADD CONSTRAINT meeting_meetingentity_code_key UNIQUE (code);


--
-- Name: meeting_meetingentity meeting_meetingentity_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingentity
    ADD CONSTRAINT meeting_meetingentity_pkey PRIMARY KEY (workflowinstance_ptr_id);


--
-- Name: meeting_meetingmanuallog meeting_meetingmanuallog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingmanuallog
    ADD CONSTRAINT meeting_meetingmanuallog_pkey PRIMARY KEY (workflowinstance_ptr_id);


--
-- Name: meeting_meetingpayloadbase meeting_meetingpayloadbase_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingpayloadbase
    ADD CONSTRAINT meeting_meetingpayloadbase_pkey PRIMARY KEY (id);


--
-- Name: meeting_meetingroom meeting_meetingroom_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingroom
    ADD CONSTRAINT meeting_meetingroom_code_key UNIQUE (code);


--
-- Name: meeting_meetingroom meeting_meetingroom_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingroom
    ADD CONSTRAINT meeting_meetingroom_pkey PRIMARY KEY (id);


--
-- Name: meeting_meetingroomdevice meeting_meetingroomdevice_device_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingroomdevice
    ADD CONSTRAINT meeting_meetingroomdevice_device_id_key UNIQUE (device_id);


--
-- Name: meeting_meetingroomdevice meeting_meetingroomdevice_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingroomdevice
    ADD CONSTRAINT meeting_meetingroomdevice_pkey PRIMARY KEY (id);


--
-- Name: meeting_meetingtransaction meeting_meetingtransaction_emp_id_punch_datetime_65665dce_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingtransaction
    ADD CONSTRAINT meeting_meetingtransaction_emp_id_punch_datetime_65665dce_uniq UNIQUE (emp_id, punch_datetime);


--
-- Name: meeting_meetingtransaction meeting_meetingtransaction_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingtransaction
    ADD CONSTRAINT meeting_meetingtransaction_pkey PRIMARY KEY (id);


--
-- Name: mobile_announcement mobile_announcement_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_announcement
    ADD CONSTRAINT mobile_announcement_pkey PRIMARY KEY (id);


--
-- Name: mobile_appactionlog mobile_appactionlog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_appactionlog
    ADD CONSTRAINT mobile_appactionlog_pkey PRIMARY KEY (id);


--
-- Name: mobile_applist mobile_applist_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_applist
    ADD CONSTRAINT mobile_applist_pkey PRIMARY KEY (id);


--
-- Name: mobile_appnotification mobile_appnotification_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_appnotification
    ADD CONSTRAINT mobile_appnotification_pkey PRIMARY KEY (id);


--
-- Name: mobile_gpsfordepartment_location mobile_gpsfordepartment__gpsfordepartment_id_gpsl_58226033_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_gpsfordepartment_location
    ADD CONSTRAINT mobile_gpsfordepartment__gpsfordepartment_id_gpsl_58226033_uniq UNIQUE (gpsfordepartment_id, gpslocation_id);


--
-- Name: mobile_gpsfordepartment_location mobile_gpsfordepartment_location_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_gpsfordepartment_location
    ADD CONSTRAINT mobile_gpsfordepartment_location_pkey PRIMARY KEY (id);


--
-- Name: mobile_gpsfordepartment mobile_gpsfordepartment_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_gpsfordepartment
    ADD CONSTRAINT mobile_gpsfordepartment_pkey PRIMARY KEY (id);


--
-- Name: mobile_gpsforemployee_location mobile_gpsforemployee_lo_gpsforemployee_id_gpsloc_9ceb93bf_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_gpsforemployee_location
    ADD CONSTRAINT mobile_gpsforemployee_lo_gpsforemployee_id_gpsloc_9ceb93bf_uniq UNIQUE (gpsforemployee_id, gpslocation_id);


--
-- Name: mobile_gpsforemployee_location mobile_gpsforemployee_location_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_gpsforemployee_location
    ADD CONSTRAINT mobile_gpsforemployee_location_pkey PRIMARY KEY (id);


--
-- Name: mobile_gpsforemployee mobile_gpsforemployee_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_gpsforemployee
    ADD CONSTRAINT mobile_gpsforemployee_pkey PRIMARY KEY (id);


--
-- Name: mobile_gpslocation mobile_gpslocation_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_gpslocation
    ADD CONSTRAINT mobile_gpslocation_pkey PRIMARY KEY (id);


--
-- Name: mobile_mobileapirequestlog mobile_mobileapirequestlog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_mobileapirequestlog
    ADD CONSTRAINT mobile_mobileapirequestlog_pkey PRIMARY KEY (id);


--
-- Name: payroll_deductionformula payroll_deductionformula_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_deductionformula
    ADD CONSTRAINT payroll_deductionformula_name_key UNIQUE (name);


--
-- Name: payroll_deductionformula payroll_deductionformula_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_deductionformula
    ADD CONSTRAINT payroll_deductionformula_pkey PRIMARY KEY (id);


--
-- Name: payroll_emploan payroll_emploan_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_emploan
    ADD CONSTRAINT payroll_emploan_pkey PRIMARY KEY (id);


--
-- Name: payroll_emppayrollprofile payroll_emppayrollprofile_employee_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_emppayrollprofile
    ADD CONSTRAINT payroll_emppayrollprofile_employee_id_key UNIQUE (employee_id);


--
-- Name: payroll_emppayrollprofile payroll_emppayrollprofile_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_emppayrollprofile
    ADD CONSTRAINT payroll_emppayrollprofile_pkey PRIMARY KEY (id);


--
-- Name: payroll_exceptionformula payroll_exceptionformula_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_exceptionformula
    ADD CONSTRAINT payroll_exceptionformula_name_key UNIQUE (name);


--
-- Name: payroll_exceptionformula payroll_exceptionformula_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_exceptionformula
    ADD CONSTRAINT payroll_exceptionformula_pkey PRIMARY KEY (id);


--
-- Name: payroll_extradeduction payroll_extradeduction_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_extradeduction
    ADD CONSTRAINT payroll_extradeduction_pkey PRIMARY KEY (id);


--
-- Name: payroll_extraincrease payroll_extraincrease_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_extraincrease
    ADD CONSTRAINT payroll_extraincrease_pkey PRIMARY KEY (id);


--
-- Name: payroll_increasementformula payroll_increasementformula_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_increasementformula
    ADD CONSTRAINT payroll_increasementformula_name_key UNIQUE (name);


--
-- Name: payroll_increasementformula payroll_increasementformula_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_increasementformula
    ADD CONSTRAINT payroll_increasementformula_pkey PRIMARY KEY (id);


--
-- Name: payroll_leaveformula payroll_leaveformula_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_leaveformula
    ADD CONSTRAINT payroll_leaveformula_name_key UNIQUE (name);


--
-- Name: payroll_leaveformula payroll_leaveformula_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_leaveformula
    ADD CONSTRAINT payroll_leaveformula_pkey PRIMARY KEY (id);


--
-- Name: payroll_overtimeformula payroll_overtimeformula_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_overtimeformula
    ADD CONSTRAINT payroll_overtimeformula_name_key UNIQUE (name);


--
-- Name: payroll_overtimeformula payroll_overtimeformula_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_overtimeformula
    ADD CONSTRAINT payroll_overtimeformula_pkey PRIMARY KEY (id);


--
-- Name: payroll_payrollpayload payroll_payrollpayload_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_payrollpayload
    ADD CONSTRAINT payroll_payrollpayload_pkey PRIMARY KEY (id);


--
-- Name: payroll_payrollpayloadpaycode payroll_payrollpayloadpaycode_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_payrollpayloadpaycode
    ADD CONSTRAINT payroll_payrollpayloadpaycode_pkey PRIMARY KEY (id);


--
-- Name: payroll_reimbursement payroll_reimbursement_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_reimbursement
    ADD CONSTRAINT payroll_reimbursement_pkey PRIMARY KEY (id);


--
-- Name: payroll_salaryadvance payroll_salaryadvance_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salaryadvance
    ADD CONSTRAINT payroll_salaryadvance_pkey PRIMARY KEY (id);


--
-- Name: payroll_salarystructure_deductionformula payroll_salarystructure__salarystructure_id_deduc_794e8449_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_deductionformula
    ADD CONSTRAINT payroll_salarystructure__salarystructure_id_deduc_794e8449_uniq UNIQUE (salarystructure_id, deductionformula_id);


--
-- Name: payroll_salarystructure_exceptionformula payroll_salarystructure__salarystructure_id_excep_a5e869ff_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_exceptionformula
    ADD CONSTRAINT payroll_salarystructure__salarystructure_id_excep_a5e869ff_uniq UNIQUE (salarystructure_id, exceptionformula_id);


--
-- Name: payroll_salarystructure_increasementformula payroll_salarystructure__salarystructure_id_incre_749132b3_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_increasementformula
    ADD CONSTRAINT payroll_salarystructure__salarystructure_id_incre_749132b3_uniq UNIQUE (salarystructure_id, increasementformula_id);


--
-- Name: payroll_salarystructure_leaveformula payroll_salarystructure__salarystructure_id_leave_4efdce30_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_leaveformula
    ADD CONSTRAINT payroll_salarystructure__salarystructure_id_leave_4efdce30_uniq UNIQUE (salarystructure_id, leaveformula_id);


--
-- Name: payroll_salarystructure_overtimeformula payroll_salarystructure__salarystructure_id_overt_0d0a0e81_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_overtimeformula
    ADD CONSTRAINT payroll_salarystructure__salarystructure_id_overt_0d0a0e81_uniq UNIQUE (salarystructure_id, overtimeformula_id);


--
-- Name: payroll_salarystructure_deductionformula payroll_salarystructure_deductionformula_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_deductionformula
    ADD CONSTRAINT payroll_salarystructure_deductionformula_pkey PRIMARY KEY (id);


--
-- Name: payroll_salarystructure_exceptionformula payroll_salarystructure_exceptionformula_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_exceptionformula
    ADD CONSTRAINT payroll_salarystructure_exceptionformula_pkey PRIMARY KEY (id);


--
-- Name: payroll_salarystructure_increasementformula payroll_salarystructure_increasementformula_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_increasementformula
    ADD CONSTRAINT payroll_salarystructure_increasementformula_pkey PRIMARY KEY (id);


--
-- Name: payroll_salarystructure_leaveformula payroll_salarystructure_leaveformula_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_leaveformula
    ADD CONSTRAINT payroll_salarystructure_leaveformula_pkey PRIMARY KEY (id);


--
-- Name: payroll_salarystructure_overtimeformula payroll_salarystructure_overtimeformula_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_overtimeformula
    ADD CONSTRAINT payroll_salarystructure_overtimeformula_pkey PRIMARY KEY (id);


--
-- Name: payroll_salarystructure payroll_salarystructure_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure
    ADD CONSTRAINT payroll_salarystructure_pkey PRIMARY KEY (id);


--
-- Name: personnel_area personnel_area_company_id_area_code_aa39c55c_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_area
    ADD CONSTRAINT personnel_area_company_id_area_code_aa39c55c_uniq UNIQUE (company_id, area_code);


--
-- Name: personnel_area personnel_area_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_area
    ADD CONSTRAINT personnel_area_pkey PRIMARY KEY (id);


--
-- Name: personnel_assignareaemployee personnel_assignareaemployee_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_assignareaemployee
    ADD CONSTRAINT personnel_assignareaemployee_pkey PRIMARY KEY (id);


--
-- Name: personnel_certification personnel_certification_cert_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_certification
    ADD CONSTRAINT personnel_certification_cert_code_key UNIQUE (cert_code);


--
-- Name: personnel_certification personnel_certification_cert_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_certification
    ADD CONSTRAINT personnel_certification_cert_name_key UNIQUE (cert_name);


--
-- Name: personnel_certification personnel_certification_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_certification
    ADD CONSTRAINT personnel_certification_pkey PRIMARY KEY (id);


--
-- Name: personnel_company personnel_company_company_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_company
    ADD CONSTRAINT personnel_company_company_code_key UNIQUE (company_code);


--
-- Name: personnel_company personnel_company_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_company
    ADD CONSTRAINT personnel_company_pkey PRIMARY KEY (id);


--
-- Name: personnel_department personnel_department_company_id_dept_code_dfa8fff7_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_department
    ADD CONSTRAINT personnel_department_company_id_dept_code_dfa8fff7_uniq UNIQUE (company_id, dept_code);


--
-- Name: personnel_department personnel_department_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_department
    ADD CONSTRAINT personnel_department_pkey PRIMARY KEY (id);


--
-- Name: personnel_employee_area personnel_employee_area_employee_id_area_id_00b3d777_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employee_area
    ADD CONSTRAINT personnel_employee_area_employee_id_area_id_00b3d777_uniq UNIQUE (employee_id, area_id);


--
-- Name: personnel_employee_area personnel_employee_area_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employee_area
    ADD CONSTRAINT personnel_employee_area_pkey PRIMARY KEY (id);


--
-- Name: personnel_employee personnel_employee_company_id_emp_code_81daa575_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employee
    ADD CONSTRAINT personnel_employee_company_id_emp_code_81daa575_uniq UNIQUE (company_id, emp_code);


--
-- Name: personnel_employee_flow_role personnel_employee_flow__employee_id_workflowrole_46b0e5e0_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employee_flow_role
    ADD CONSTRAINT personnel_employee_flow__employee_id_workflowrole_46b0e5e0_uniq UNIQUE (employee_id, workflowrole_id);


--
-- Name: personnel_employee_flow_role personnel_employee_flow_role_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employee_flow_role
    ADD CONSTRAINT personnel_employee_flow_role_pkey PRIMARY KEY (id);


--
-- Name: personnel_employee personnel_employee_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employee
    ADD CONSTRAINT personnel_employee_pkey PRIMARY KEY (id);


--
-- Name: personnel_employeecalendar personnel_employeecalendar_employee_id_calendar_10f7278d_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employeecalendar
    ADD CONSTRAINT personnel_employeecalendar_employee_id_calendar_10f7278d_uniq UNIQUE (employee_id, calendar);


--
-- Name: personnel_employeecalendar personnel_employeecalendar_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employeecalendar
    ADD CONSTRAINT personnel_employeecalendar_pkey PRIMARY KEY (id);


--
-- Name: personnel_employeecertification personnel_employeecertif_employee_id_certificatio_7bcf4c7d_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employeecertification
    ADD CONSTRAINT personnel_employeecertif_employee_id_certificatio_7bcf4c7d_uniq UNIQUE (employee_id, certification_id);


--
-- Name: personnel_employeecertification personnel_employeecertification_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employeecertification
    ADD CONSTRAINT personnel_employeecertification_pkey PRIMARY KEY (id);


--
-- Name: personnel_employeecustomattribute personnel_employeecustomattribute_attr_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employeecustomattribute
    ADD CONSTRAINT personnel_employeecustomattribute_attr_name_key UNIQUE (attr_name);


--
-- Name: personnel_employeecustomattribute personnel_employeecustomattribute_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employeecustomattribute
    ADD CONSTRAINT personnel_employeecustomattribute_pkey PRIMARY KEY (id);


--
-- Name: personnel_employeeextrainfo personnel_employeeextrainfo_employee_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employeeextrainfo
    ADD CONSTRAINT personnel_employeeextrainfo_employee_id_key UNIQUE (employee_id);


--
-- Name: personnel_employeeextrainfo personnel_employeeextrainfo_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employeeextrainfo
    ADD CONSTRAINT personnel_employeeextrainfo_pkey PRIMARY KEY (id);


--
-- Name: personnel_employeeprofile personnel_employeeprofile_emp_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employeeprofile
    ADD CONSTRAINT personnel_employeeprofile_emp_id_key UNIQUE (emp_id);


--
-- Name: personnel_employeeprofile personnel_employeeprofile_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employeeprofile
    ADD CONSTRAINT personnel_employeeprofile_pkey PRIMARY KEY (id);


--
-- Name: personnel_employment personnel_employment_employee_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employment
    ADD CONSTRAINT personnel_employment_employee_id_key UNIQUE (employee_id);


--
-- Name: personnel_employment personnel_employment_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employment
    ADD CONSTRAINT personnel_employment_pkey PRIMARY KEY (id);


--
-- Name: personnel_position personnel_position_company_id_position_code_4708726e_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_position
    ADD CONSTRAINT personnel_position_company_id_position_code_4708726e_uniq UNIQUE (company_id, position_code);


--
-- Name: personnel_position personnel_position_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_position
    ADD CONSTRAINT personnel_position_pkey PRIMARY KEY (id);


--
-- Name: personnel_resign personnel_resign_employee_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_resign
    ADD CONSTRAINT personnel_resign_employee_id_key UNIQUE (employee_id);


--
-- Name: personnel_resign personnel_resign_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_resign
    ADD CONSTRAINT personnel_resign_pkey PRIMARY KEY (id);


--
-- Name: rest_framework_tracking_apirequestlog rest_framework_tracking_apirequestlog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.rest_framework_tracking_apirequestlog
    ADD CONSTRAINT rest_framework_tracking_apirequestlog_pkey PRIMARY KEY (id);


--
-- Name: staff_stafftoken staff_stafftoken_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.staff_stafftoken
    ADD CONSTRAINT staff_stafftoken_pkey PRIMARY KEY (key);


--
-- Name: staff_stafftoken staff_stafftoken_user_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.staff_stafftoken
    ADD CONSTRAINT staff_stafftoken_user_id_key UNIQUE (user_id);


--
-- Name: sync_area sync_area_area_code_area_name_200046d1_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sync_area
    ADD CONSTRAINT sync_area_area_code_area_name_200046d1_uniq UNIQUE (area_code, area_name);


--
-- Name: sync_area sync_area_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sync_area
    ADD CONSTRAINT sync_area_pkey PRIMARY KEY (id);


--
-- Name: sync_department sync_department_dept_code_dept_name_93923213_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sync_department
    ADD CONSTRAINT sync_department_dept_code_dept_name_93923213_uniq UNIQUE (dept_code, dept_name);


--
-- Name: sync_department sync_department_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sync_department
    ADD CONSTRAINT sync_department_pkey PRIMARY KEY (id);


--
-- Name: sync_employee sync_employee_emp_code_521bf06d_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sync_employee
    ADD CONSTRAINT sync_employee_emp_code_521bf06d_uniq UNIQUE (emp_code);


--
-- Name: sync_employee sync_employee_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sync_employee
    ADD CONSTRAINT sync_employee_pkey PRIMARY KEY (id);


--
-- Name: sync_job sync_job_job_code_job_name_4ec5619e_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sync_job
    ADD CONSTRAINT sync_job_job_code_job_name_4ec5619e_uniq UNIQUE (job_code, job_name);


--
-- Name: sync_job sync_job_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sync_job
    ADD CONSTRAINT sync_job_pkey PRIMARY KEY (id);


--
-- Name: visitor_reason visitor_reason_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_reason
    ADD CONSTRAINT visitor_reason_pkey PRIMARY KEY (id);


--
-- Name: visitor_reservation visitor_reservation_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_reservation
    ADD CONSTRAINT visitor_reservation_pkey PRIMARY KEY (workflowinstance_ptr_id);


--
-- Name: visitor_visitor_acc_groups visitor_visitor_acc_grou_visitor_id_accgroups_id_bb522609_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitor_acc_groups
    ADD CONSTRAINT visitor_visitor_acc_grou_visitor_id_accgroups_id_bb522609_uniq UNIQUE (visitor_id, accgroups_id);


--
-- Name: visitor_visitor_acc_groups visitor_visitor_acc_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitor_acc_groups
    ADD CONSTRAINT visitor_visitor_acc_groups_pkey PRIMARY KEY (id);


--
-- Name: visitor_visitor_area visitor_visitor_area_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitor_area
    ADD CONSTRAINT visitor_visitor_area_pkey PRIMARY KEY (id);


--
-- Name: visitor_visitor_area visitor_visitor_area_visitor_id_area_id_27d158cc_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitor_area
    ADD CONSTRAINT visitor_visitor_area_visitor_id_area_id_27d158cc_uniq UNIQUE (visitor_id, area_id);


--
-- Name: visitor_visitor visitor_visitor_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitor
    ADD CONSTRAINT visitor_visitor_pkey PRIMARY KEY (id);


--
-- Name: visitor_visitor visitor_visitor_visitor_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitor
    ADD CONSTRAINT visitor_visitor_visitor_code_key UNIQUE (visitor_code);


--
-- Name: visitor_visitorbiodata visitor_visitorbiodata_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitorbiodata
    ADD CONSTRAINT visitor_visitorbiodata_pkey PRIMARY KEY (id);


--
-- Name: visitor_visitorbiodata visitor_visitorbiodata_visitor_id_bio_no_bio_in_e5d598fb_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitorbiodata
    ADD CONSTRAINT visitor_visitorbiodata_visitor_id_bio_no_bio_in_e5d598fb_uniq UNIQUE (visitor_id, bio_no, bio_index, bio_type, bio_format, major_ver);


--
-- Name: visitor_visitorbiophoto visitor_visitorbiophoto_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitorbiophoto
    ADD CONSTRAINT visitor_visitorbiophoto_pkey PRIMARY KEY (id);


--
-- Name: visitor_visitorconfig visitor_visitorconfig_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitorconfig
    ADD CONSTRAINT visitor_visitorconfig_pkey PRIMARY KEY (id);


--
-- Name: visitor_visitorlog visitor_visitorlog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitorlog
    ADD CONSTRAINT visitor_visitorlog_pkey PRIMARY KEY (id);


--
-- Name: visitor_visitortransaction visitor_visitortransaction_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitortransaction
    ADD CONSTRAINT visitor_visitortransaction_pkey PRIMARY KEY (id);


--
-- Name: visitor_visitortransaction visitor_visitortransaction_visitor_id_punch_time_836abbcf_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitortransaction
    ADD CONSTRAINT visitor_visitortransaction_visitor_id_punch_time_836abbcf_uniq UNIQUE (visitor_id, punch_time);


--
-- Name: workflow_nodeinstance workflow_nodeinstance_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_nodeinstance
    ADD CONSTRAINT workflow_nodeinstance_pkey PRIMARY KEY (id);


--
-- Name: workflow_workflowengine_employee workflow_workflowengine__workflowengine_id_employ_8128deb2_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflowengine_employee
    ADD CONSTRAINT workflow_workflowengine__workflowengine_id_employ_8128deb2_uniq UNIQUE (workflowengine_id, employee_id);


--
-- Name: workflow_workflowengine_employee workflow_workflowengine_employee_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflowengine_employee
    ADD CONSTRAINT workflow_workflowengine_employee_pkey PRIMARY KEY (id);


--
-- Name: workflow_workflowengine workflow_workflowengine_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflowengine
    ADD CONSTRAINT workflow_workflowengine_pkey PRIMARY KEY (id);


--
-- Name: workflow_workflowengine workflow_workflowengine_workflow_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflowengine
    ADD CONSTRAINT workflow_workflowengine_workflow_code_key UNIQUE (workflow_code);


--
-- Name: workflow_workflowinstance workflow_workflowinstance_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflowinstance
    ADD CONSTRAINT workflow_workflowinstance_pkey PRIMARY KEY (id);


--
-- Name: workflow_workflownode_approver workflow_workflownode_ap_workflownode_id_workflow_7543ba37_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflownode_approver
    ADD CONSTRAINT workflow_workflownode_ap_workflownode_id_workflow_7543ba37_uniq UNIQUE (workflownode_id, workflowrole_id);


--
-- Name: workflow_workflownode_approver workflow_workflownode_approver_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflownode_approver
    ADD CONSTRAINT workflow_workflownode_approver_pkey PRIMARY KEY (id);


--
-- Name: workflow_workflownode_notifier workflow_workflownode_no_workflownode_id_workflow_cac02b37_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflownode_notifier
    ADD CONSTRAINT workflow_workflownode_no_workflownode_id_workflow_cac02b37_uniq UNIQUE (workflownode_id, workflowrole_id);


--
-- Name: workflow_workflownode_notifier workflow_workflownode_notifier_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflownode_notifier
    ADD CONSTRAINT workflow_workflownode_notifier_pkey PRIMARY KEY (id);


--
-- Name: workflow_workflownode workflow_workflownode_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflownode
    ADD CONSTRAINT workflow_workflownode_pkey PRIMARY KEY (id);


--
-- Name: workflow_workflowrole workflow_workflowrole_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflowrole
    ADD CONSTRAINT workflow_workflowrole_pkey PRIMARY KEY (id);


--
-- Name: workflow_workflowrole workflow_workflowrole_role_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflowrole
    ADD CONSTRAINT workflow_workflowrole_role_code_key UNIQUE (role_code);


--
-- Name: workflow_workflowrole workflow_workflowrole_role_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflowrole
    ADD CONSTRAINT workflow_workflowrole_role_name_key UNIQUE (role_name);


--
-- Name: acc_acccombination_area_id_0d22c34e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acc_acccombination_area_id_0d22c34e ON public.acc_acccombination USING btree (area_id);


--
-- Name: acc_accgroups_area_id_b83745c3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acc_accgroups_area_id_b83745c3 ON public.acc_accgroups USING btree (area_id);


--
-- Name: acc_accholiday_area_id_d15c19da; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acc_accholiday_area_id_d15c19da ON public.acc_accholiday USING btree (area_id);


--
-- Name: acc_accholiday_holiday_id_a9efe924; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acc_accholiday_holiday_id_a9efe924 ON public.acc_accholiday USING btree (holiday_id);


--
-- Name: acc_accholiday_timezone_id_450d2d1e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acc_accholiday_timezone_id_450d2d1e ON public.acc_accholiday USING btree (timezone_id);


--
-- Name: acc_accprivilege_area_id_2123ff6f; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acc_accprivilege_area_id_2123ff6f ON public.acc_accprivilege USING btree (area_id);


--
-- Name: acc_accprivilege_employee_id_5fc55f95; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acc_accprivilege_employee_id_5fc55f95 ON public.acc_accprivilege USING btree (employee_id);


--
-- Name: acc_accprivilege_group_id_c5ed7003; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acc_accprivilege_group_id_c5ed7003 ON public.acc_accprivilege USING btree (group_id);


--
-- Name: acc_accterminal_terminal_id_fc92cce2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acc_accterminal_terminal_id_fc92cce2 ON public.acc_accterminal USING btree (terminal_id);


--
-- Name: acc_acctimezone_area_id_e9ce7a7a; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acc_acctimezone_area_id_e9ce7a7a ON public.acc_acctimezone USING btree (area_id);


--
-- Name: accounts_adminbiodata_admin_id_1e6d2d45; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX accounts_adminbiodata_admin_id_1e6d2d45 ON public.accounts_adminbiodata USING btree (admin_id);


--
-- Name: accounts_usernotification_user_id_b86755b3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX accounts_usernotification_user_id_b86755b3 ON public.accounts_usernotification USING btree (user_id);


--
-- Name: att_attcode_alias_51209102_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_attcode_alias_51209102_like ON public.att_attcode USING btree (alias varchar_pattern_ops);


--
-- Name: att_attcode_code_2744cfec_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_attcode_code_2744cfec_like ON public.att_attcode USING btree (code varchar_pattern_ops);


--
-- Name: att_attemployee_group_id_18d3954d; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_attemployee_group_id_18d3954d ON public.att_attemployee USING btree (group_id);


--
-- Name: att_attgroup_code_e12309ae_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_attgroup_code_e12309ae_like ON public.att_attgroup USING btree (code varchar_pattern_ops);


--
-- Name: att_attgroup_name_7dd662e2_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_attgroup_name_7dd662e2_like ON public.att_attgroup USING btree (name varchar_pattern_ops);


--
-- Name: att_attpolicy_ot_pay_code_id_b189b952; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_attpolicy_ot_pay_code_id_b189b952 ON public.att_attpolicy USING btree (ot_pay_code_id);


--
-- Name: att_attrule_param_name_406bcfb6_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_attrule_param_name_406bcfb6_like ON public.att_attrule USING btree (param_name varchar_pattern_ops);


--
-- Name: att_attschedule_employee_id_caa61686; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_attschedule_employee_id_caa61686 ON public.att_attschedule USING btree (employee_id);


--
-- Name: att_attschedule_shift_id_13d2db9a; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_attschedule_shift_id_13d2db9a ON public.att_attschedule USING btree (shift_id);


--
-- Name: att_breaktime_loss_code_id_2ffb5432; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_breaktime_loss_code_id_2ffb5432 ON public.att_breaktime USING btree (loss_code_id);


--
-- Name: att_breaktime_profit_code_id_63cdbbcc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_breaktime_profit_code_id_63cdbbcc ON public.att_breaktime USING btree (profit_code_id);


--
-- Name: att_calculatelastdate_last_date_1441abdc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_calculatelastdate_last_date_1441abdc ON public.att_calculatelastdate USING btree (last_date);


--
-- Name: att_calculatetask_end_date_75d1d6d2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_calculatetask_end_date_75d1d6d2 ON public.att_calculatetask USING btree (end_date);


--
-- Name: att_calculatetask_start_date_7bbaa889; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_calculatetask_start_date_7bbaa889 ON public.att_calculatetask USING btree (start_date);


--
-- Name: att_changeschedule_timeinterval_id_d41ac077; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_changeschedule_timeinterval_id_d41ac077 ON public.att_changeschedule USING btree (timeinterval_id);


--
-- Name: att_departmentpolicy_department_id_77059a9d; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_departmentpolicy_department_id_77059a9d ON public.att_departmentpolicy USING btree (department_id);


--
-- Name: att_departmentpolicy_ot_pay_code_id_390411dd; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_departmentpolicy_ot_pay_code_id_390411dd ON public.att_departmentpolicy USING btree (ot_pay_code_id);


--
-- Name: att_departmentschedule_department_id_c68fca3d; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_departmentschedule_department_id_c68fca3d ON public.att_departmentschedule USING btree (department_id);


--
-- Name: att_departmentschedule_shift_id_c37d5ade; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_departmentschedule_shift_id_c37d5ade ON public.att_departmentschedule USING btree (shift_id);


--
-- Name: att_deptattrule_department_id_f333c8f0; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_deptattrule_department_id_f333c8f0 ON public.att_deptattrule USING btree (department_id);


--
-- Name: att_grouppolicy_group_id_b2e4dfe8; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_grouppolicy_group_id_b2e4dfe8 ON public.att_grouppolicy USING btree (group_id);


--
-- Name: att_grouppolicy_ot_pay_code_id_1ec83080; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_grouppolicy_ot_pay_code_id_1ec83080 ON public.att_grouppolicy USING btree (ot_pay_code_id);


--
-- Name: att_groupschedule_group_id_c341493f; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_groupschedule_group_id_c341493f ON public.att_groupschedule USING btree (group_id);


--
-- Name: att_groupschedule_shift_id_287e7fc0; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_groupschedule_shift_id_287e7fc0 ON public.att_groupschedule USING btree (shift_id);


--
-- Name: att_groupschedule_start_date_638b6d85; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_groupschedule_start_date_638b6d85 ON public.att_groupschedule USING btree (start_date);


--
-- Name: att_holiday_att_group_id_9ddf13ba; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_holiday_att_group_id_9ddf13ba ON public.att_holiday USING btree (att_group_id);


--
-- Name: att_holiday_department_id_fbbbd185; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_holiday_department_id_fbbbd185 ON public.att_holiday USING btree (department_id);


--
-- Name: att_leave_pay_code_id_2fadf493; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_leave_pay_code_id_2fadf493 ON public.att_leave USING btree (pay_code_id);


--
-- Name: att_leavegroup_code_2043ad21_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_leavegroup_code_2043ad21_like ON public.att_leavegroup USING btree (code varchar_pattern_ops);


--
-- Name: att_leavegroup_name_ea482c9a_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_leavegroup_name_ea482c9a_like ON public.att_leavegroup USING btree (name varchar_pattern_ops);


--
-- Name: att_leavegroupdetail_leave_group_id_28f69ada; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_leavegroupdetail_leave_group_id_28f69ada ON public.att_leavegroupdetail USING btree (leave_group_id);


--
-- Name: att_leavegroupdetail_pay_code_id_5013b373; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_leavegroupdetail_pay_code_id_5013b373 ON public.att_leavegroupdetail USING btree (pay_code_id);


--
-- Name: att_leaveyearbalance_employee_id_14febdb3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_leaveyearbalance_employee_id_14febdb3 ON public.att_leaveyearbalance USING btree (employee_id);


--
-- Name: att_leaveyearbalance_pay_code_id_82632aca; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_leaveyearbalance_pay_code_id_82632aca ON public.att_leaveyearbalance USING btree (pay_code_id);


--
-- Name: att_overtime_pay_code_id_05600ee0; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_overtime_pay_code_id_05600ee0 ON public.att_overtime USING btree (pay_code_id);


--
-- Name: att_overtimepolicy_overnight_pay_code_id_274ce1b0; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_overtimepolicy_overnight_pay_code_id_274ce1b0 ON public.att_overtimepolicy USING btree (overnight_pay_code_id);


--
-- Name: att_overtimepolicy_pay_code_id_285b0a61; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_overtimepolicy_pay_code_id_285b0a61 ON public.att_overtimepolicy USING btree (pay_code_id);


--
-- Name: att_paycode_code_2865d89c_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_paycode_code_2865d89c_like ON public.att_paycode USING btree (code varchar_pattern_ops);


--
-- Name: att_paycode_name_6098e40c_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_paycode_name_6098e40c_like ON public.att_paycode USING btree (name varchar_pattern_ops);


--
-- Name: att_payloadattcode_att_code_id_0d635efd; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadattcode_att_code_id_0d635efd ON public.att_payloadattcode USING btree (att_code_id);


--
-- Name: att_payloadattcode_att_date_19b2621e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadattcode_att_date_19b2621e ON public.att_payloadattcode USING btree (att_date);


--
-- Name: att_payloadattcode_emp_id_36569f54; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadattcode_emp_id_36569f54 ON public.att_payloadattcode USING btree (emp_id);


--
-- Name: att_payloadattcode_shift_id_731faddf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadattcode_shift_id_731faddf ON public.att_payloadattcode USING btree (shift_id);


--
-- Name: att_payloadattcode_time_card_id_e8a37c7a; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadattcode_time_card_id_e8a37c7a ON public.att_payloadattcode USING btree (time_card_id);


--
-- Name: att_payloadbase_break_time_id_022d6fac_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadbase_break_time_id_022d6fac_like ON public.att_payloadbase USING btree (break_time_id varchar_pattern_ops);


--
-- Name: att_payloadbase_emp_id_2c0f6a7b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadbase_emp_id_2c0f6a7b ON public.att_payloadbase USING btree (emp_id);


--
-- Name: att_payloadbase_overtime_id_0e7be795_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadbase_overtime_id_0e7be795_like ON public.att_payloadbase USING btree (overtime_id varchar_pattern_ops);


--
-- Name: att_payloadbase_timetable_id_a389e3d8; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadbase_timetable_id_a389e3d8 ON public.att_payloadbase USING btree (timetable_id);


--
-- Name: att_payloadbase_uuid_60250467_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadbase_uuid_60250467_like ON public.att_payloadbase USING btree (uuid varchar_pattern_ops);


--
-- Name: att_payloadbreak_uuid_533ea5e2_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadbreak_uuid_533ea5e2_like ON public.att_payloadbreak USING btree (uuid varchar_pattern_ops);


--
-- Name: att_payloadeffectpunch_att_date_1e3de2d4; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadeffectpunch_att_date_1e3de2d4 ON public.att_payloadeffectpunch USING btree (att_date);


--
-- Name: att_payloadeffectpunch_emp_id_67e28e01; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadeffectpunch_emp_id_67e28e01 ON public.att_payloadeffectpunch USING btree (emp_id);


--
-- Name: att_payloadeffectpunch_time_card_id_52f69aaf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadeffectpunch_time_card_id_52f69aaf ON public.att_payloadeffectpunch USING btree (time_card_id);


--
-- Name: att_payloadeffectpunch_trans_id_94affbe6; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadeffectpunch_trans_id_94affbe6 ON public.att_payloadeffectpunch USING btree (trans_id);


--
-- Name: att_payloadexception_item_id_a08bfe48; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadexception_item_id_a08bfe48 ON public.att_payloadexception USING btree (item_id);


--
-- Name: att_payloadexception_skd_id_b2e9ecaa; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadexception_skd_id_b2e9ecaa ON public.att_payloadexception USING btree (skd_id);


--
-- Name: att_payloadexception_skd_id_b2e9ecaa_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadexception_skd_id_b2e9ecaa_like ON public.att_payloadexception USING btree (skd_id varchar_pattern_ops);


--
-- Name: att_payloadexception_uuid_517a81e8_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadexception_uuid_517a81e8_like ON public.att_payloadexception USING btree (uuid varchar_pattern_ops);


--
-- Name: att_payloadmulpunchset_emp_id_f47610c8; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadmulpunchset_emp_id_f47610c8 ON public.att_payloadmulpunchset USING btree (emp_id);


--
-- Name: att_payloadmulpunchset_timetable_id_9a439a09; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadmulpunchset_timetable_id_9a439a09 ON public.att_payloadmulpunchset USING btree (timetable_id);


--
-- Name: att_payloadovertime_uuid_15d7782f_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadovertime_uuid_15d7782f_like ON public.att_payloadovertime USING btree (uuid varchar_pattern_ops);


--
-- Name: att_payloadparing_att_date_5daaa45d; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadparing_att_date_5daaa45d ON public.att_payloadparing USING btree (att_date);


--
-- Name: att_payloadparing_emp_id_c5daac4f; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadparing_emp_id_c5daac4f ON public.att_payloadparing USING btree (emp_id);


--
-- Name: att_payloadparing_in_trans_id_50a8040e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadparing_in_trans_id_50a8040e ON public.att_payloadparing USING btree (in_trans_id);


--
-- Name: att_payloadparing_out_trans_id_8b2375b9; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadparing_out_trans_id_8b2375b9 ON public.att_payloadparing USING btree (out_trans_id);


--
-- Name: att_payloadparing_pay_code_id_aa241cca; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadparing_pay_code_id_aa241cca ON public.att_payloadparing USING btree (pay_code_id);


--
-- Name: att_payloadparing_time_card_id_3adc3517; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadparing_time_card_id_3adc3517 ON public.att_payloadparing USING btree (time_card_id);


--
-- Name: att_payloadpaycode_att_date_aa048d7b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadpaycode_att_date_aa048d7b ON public.att_payloadpaycode USING btree (att_date);


--
-- Name: att_payloadpaycode_emp_id_78e75279; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadpaycode_emp_id_78e75279 ON public.att_payloadpaycode USING btree (emp_id);


--
-- Name: att_payloadpaycode_pay_code_id_4a096cc7; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadpaycode_pay_code_id_4a096cc7 ON public.att_payloadpaycode USING btree (pay_code_id);


--
-- Name: att_payloadpaycode_shift_id_79a0901e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadpaycode_shift_id_79a0901e ON public.att_payloadpaycode USING btree (shift_id);


--
-- Name: att_payloadpaycode_time_card_id_1696b969; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadpaycode_time_card_id_1696b969 ON public.att_payloadpaycode USING btree (time_card_id);


--
-- Name: att_payloadpunch_emp_id_053da2f0; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadpunch_emp_id_053da2f0 ON public.att_payloadpunch USING btree (emp_id);


--
-- Name: att_payloadpunch_orig_id_16b26416; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadpunch_orig_id_16b26416 ON public.att_payloadpunch USING btree (orig_id);


--
-- Name: att_payloadpunch_skd_id_17596d82; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadpunch_skd_id_17596d82 ON public.att_payloadpunch USING btree (skd_id);


--
-- Name: att_payloadpunch_skd_id_17596d82_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadpunch_skd_id_17596d82_like ON public.att_payloadpunch USING btree (skd_id varchar_pattern_ops);


--
-- Name: att_payloadpunch_uuid_91e722f4_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadpunch_uuid_91e722f4_like ON public.att_payloadpunch USING btree (uuid varchar_pattern_ops);


--
-- Name: att_payloadtimecard_att_date_48c1dc00; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadtimecard_att_date_48c1dc00 ON public.att_payloadtimecard USING btree (att_date);


--
-- Name: att_payloadtimecard_emp_id_47caeab4; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadtimecard_emp_id_47caeab4 ON public.att_payloadtimecard USING btree (emp_id);


--
-- Name: att_payloadtimecard_time_table_id_6e0b0137; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_payloadtimecard_time_table_id_6e0b0137 ON public.att_payloadtimecard USING btree (time_table_id);


--
-- Name: att_reportparam_param_name_23bdf026_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_reportparam_param_name_23bdf026_like ON public.att_reportparam USING btree (param_name varchar_pattern_ops);


--
-- Name: att_reporttemplate_builder_id_e1bb15c6; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_reporttemplate_builder_id_e1bb15c6 ON public.att_reporttemplate USING btree (builder_id);


--
-- Name: att_reporttemplate_employee_id_4f80d866; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_reporttemplate_employee_id_4f80d866 ON public.att_reporttemplate USING btree (employee_id);


--
-- Name: att_shiftdetail_shift_id_7d694501; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_shiftdetail_shift_id_7d694501 ON public.att_shiftdetail USING btree (shift_id);


--
-- Name: att_shiftdetail_time_interval_id_777dde8f; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_shiftdetail_time_interval_id_777dde8f ON public.att_shiftdetail USING btree (time_interval_id);


--
-- Name: att_temporaryschedule_att_date_8aed8916; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_temporaryschedule_att_date_8aed8916 ON public.att_temporaryschedule USING btree (att_date);


--
-- Name: att_temporaryschedule_employee_id_2b2b94c2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_temporaryschedule_employee_id_2b2b94c2 ON public.att_temporaryschedule USING btree (employee_id);


--
-- Name: att_temporaryschedule_time_interval_id_2be60ee4; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_temporaryschedule_time_interval_id_2be60ee4 ON public.att_temporaryschedule USING btree (time_interval_id);


--
-- Name: att_tempschedule_employee_id_b89c7e54; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_tempschedule_employee_id_b89c7e54 ON public.att_tempschedule USING btree (employee_id);


--
-- Name: att_tempschedule_time_interval_id_08dd8eb3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_tempschedule_time_interval_id_08dd8eb3 ON public.att_tempschedule USING btree (time_interval_id);


--
-- Name: att_timeinterval_alias_0cc89610_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_timeinterval_alias_0cc89610_like ON public.att_timeinterval USING btree (alias varchar_pattern_ops);


--
-- Name: att_timeinterval_break_time_breaktime_id_08462308; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_timeinterval_break_time_breaktime_id_08462308 ON public.att_timeinterval_break_time USING btree (breaktime_id);


--
-- Name: att_timeinterval_break_time_timeinterval_id_2287017e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_timeinterval_break_time_timeinterval_id_2287017e ON public.att_timeinterval_break_time USING btree (timeinterval_id);


--
-- Name: att_timeinterval_ot_pay_code_id_17438af8; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_timeinterval_ot_pay_code_id_17438af8 ON public.att_timeinterval USING btree (ot_pay_code_id);


--
-- Name: att_training_pay_code_id_5790afdd; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX att_training_pay_code_id_5790afdd ON public.att_training USING btree (pay_code_id);


--
-- Name: auth_group_name_a6ea08ec_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_group_name_a6ea08ec_like ON public.auth_group USING btree (name varchar_pattern_ops);


--
-- Name: auth_group_permissions_group_id_b120cbf9; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_group_permissions_group_id_b120cbf9 ON public.auth_group_permissions USING btree (group_id);


--
-- Name: auth_group_permissions_permission_id_84c5c92e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_group_permissions_permission_id_84c5c92e ON public.auth_group_permissions USING btree (permission_id);


--
-- Name: auth_permission_content_type_id_2f476e4b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_permission_content_type_id_2f476e4b ON public.auth_permission USING btree (content_type_id);


--
-- Name: auth_user_auth_area_area_id_d1e54c70; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_auth_area_area_id_d1e54c70 ON public.auth_user_auth_area USING btree (area_id);


--
-- Name: auth_user_auth_area_myuser_id_5fb9a803; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_auth_area_myuser_id_5fb9a803 ON public.auth_user_auth_area USING btree (myuser_id);


--
-- Name: auth_user_auth_dept_department_id_5866c514; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_auth_dept_department_id_5866c514 ON public.auth_user_auth_dept USING btree (department_id);


--
-- Name: auth_user_auth_dept_myuser_id_18a51b27; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_auth_dept_myuser_id_18a51b27 ON public.auth_user_auth_dept USING btree (myuser_id);


--
-- Name: auth_user_groups_group_id_97559544; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_groups_group_id_97559544 ON public.auth_user_groups USING btree (group_id);


--
-- Name: auth_user_groups_myuser_id_d03e8dcc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_groups_myuser_id_d03e8dcc ON public.auth_user_groups USING btree (myuser_id);


--
-- Name: auth_user_user_permissions_myuser_id_679b1527; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_user_permissions_myuser_id_679b1527 ON public.auth_user_user_permissions USING btree (myuser_id);


--
-- Name: auth_user_user_permissions_permission_id_1fbb5f2c; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_user_permissions_permission_id_1fbb5f2c ON public.auth_user_user_permissions USING btree (permission_id);


--
-- Name: auth_user_username_6821ab7c_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_username_6821ab7c_like ON public.auth_user USING btree (username varchar_pattern_ops);


--
-- Name: authtoken_token_key_10f0b77e_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX authtoken_token_key_10f0b77e_like ON public.authtoken_token USING btree (key varchar_pattern_ops);


--
-- Name: base_adminlog_content_type_id_3e553c30; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX base_adminlog_content_type_id_3e553c30 ON public.base_adminlog USING btree (content_type_id);


--
-- Name: base_adminlog_user_id_ecf659f8; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX base_adminlog_user_id_ecf659f8 ON public.base_adminlog USING btree (user_id);


--
-- Name: base_attparamdepts_rulename_922e6bf3_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX base_attparamdepts_rulename_922e6bf3_like ON public.base_attparamdepts USING btree (rulename varchar_pattern_ops);


--
-- Name: base_autoattexporttask_task_code_88f19bac_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX base_autoattexporttask_task_code_88f19bac_like ON public.base_autoattexporttask USING btree (task_code varchar_pattern_ops);


--
-- Name: base_autoexporttask_task_code_b7fa7d4e_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX base_autoexporttask_task_code_b7fa7d4e_like ON public.base_autoexporttask USING btree (task_code varchar_pattern_ops);


--
-- Name: base_autoimporttask_company_id_d18431a1; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX base_autoimporttask_company_id_d18431a1 ON public.base_autoimporttask USING btree (company_id);


--
-- Name: base_autoimporttask_task_code_b2760302_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX base_autoimporttask_task_code_b2760302_like ON public.base_autoimporttask USING btree (task_code varchar_pattern_ops);


--
-- Name: base_bookmark_content_type_id_b6a0e799; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX base_bookmark_content_type_id_b6a0e799 ON public.base_bookmark USING btree (content_type_id);


--
-- Name: base_bookmark_user_id_5f2d5ca2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX base_bookmark_user_id_5f2d5ca2 ON public.base_bookmark USING btree (user_id);


--
-- Name: base_linenotifysetting_line_notify_dept_id_0643a5ed; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX base_linenotifysetting_line_notify_dept_id_0643a5ed ON public.base_linenotifysetting USING btree (line_notify_dept_id);


--
-- Name: base_sysparamdept_rule_name_bb46d5af_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX base_sysparamdept_rule_name_bb46d5af_like ON public.base_sysparamdept USING btree (rule_name varchar_pattern_ops);


--
-- Name: django_admin_log_content_type_id_c4bce8eb; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX django_admin_log_content_type_id_c4bce8eb ON public.django_admin_log USING btree (content_type_id);


--
-- Name: django_admin_log_user_id_c564eba6; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX django_admin_log_user_id_c564eba6 ON public.django_admin_log USING btree (user_id);


--
-- Name: django_celery_beat_periodictask_clocked_id_47a69f82; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX django_celery_beat_periodictask_clocked_id_47a69f82 ON public.django_celery_beat_periodictask USING btree (clocked_id);


--
-- Name: django_celery_beat_periodictask_crontab_id_d3cba168; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX django_celery_beat_periodictask_crontab_id_d3cba168 ON public.django_celery_beat_periodictask USING btree (crontab_id);


--
-- Name: django_celery_beat_periodictask_interval_id_a8ca27da; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX django_celery_beat_periodictask_interval_id_a8ca27da ON public.django_celery_beat_periodictask USING btree (interval_id);


--
-- Name: django_celery_beat_periodictask_name_265a36b7_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX django_celery_beat_periodictask_name_265a36b7_like ON public.django_celery_beat_periodictask USING btree (name varchar_pattern_ops);


--
-- Name: django_celery_beat_periodictask_solar_id_a87ce72c; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX django_celery_beat_periodictask_solar_id_a87ce72c ON public.django_celery_beat_periodictask USING btree (solar_id);


--
-- Name: django_session_expire_date_a5c62663; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX django_session_expire_date_a5c62663 ON public.django_session USING btree (expire_date);


--
-- Name: django_session_session_key_c0390e0f_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX django_session_session_key_c0390e0f_like ON public.django_session USING btree (session_key varchar_pattern_ops);


--
-- Name: ep_eptransaction_emp_id_1006883f; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ep_eptransaction_emp_id_1006883f ON public.ep_eptransaction USING btree (emp_id);


--
-- Name: ep_eptransaction_terminal_id_4490b209; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ep_eptransaction_terminal_id_4490b209 ON public.ep_eptransaction USING btree (terminal_id);


--
-- Name: guardian_groupobjectpermission_content_type_id_7ade36b8; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX guardian_groupobjectpermission_content_type_id_7ade36b8 ON public.guardian_groupobjectpermission USING btree (content_type_id);


--
-- Name: guardian_groupobjectpermission_group_id_4bbbfb62; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX guardian_groupobjectpermission_group_id_4bbbfb62 ON public.guardian_groupobjectpermission USING btree (group_id);


--
-- Name: guardian_groupobjectpermission_permission_id_36572738; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX guardian_groupobjectpermission_permission_id_36572738 ON public.guardian_groupobjectpermission USING btree (permission_id);


--
-- Name: guardian_userobjectpermission_content_type_id_2e892405; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX guardian_userobjectpermission_content_type_id_2e892405 ON public.guardian_userobjectpermission USING btree (content_type_id);


--
-- Name: guardian_userobjectpermission_permission_id_71807bfc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX guardian_userobjectpermission_permission_id_71807bfc ON public.guardian_userobjectpermission USING btree (permission_id);


--
-- Name: guardian_userobjectpermission_user_id_d5c1e964; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX guardian_userobjectpermission_user_id_d5c1e964 ON public.guardian_userobjectpermission USING btree (user_id);


--
-- Name: iclock_biodata_employee_id_ff748ea7; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_biodata_employee_id_ff748ea7 ON public.iclock_biodata USING btree (employee_id);


--
-- Name: iclock_biophoto_employee_id_3dba5819; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_biophoto_employee_id_3dba5819 ON public.iclock_biophoto USING btree (employee_id);


--
-- Name: iclock_errorcommandlog_terminal_id_3b2d7cbd; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_errorcommandlog_terminal_id_3b2d7cbd ON public.iclock_errorcommandlog USING btree (terminal_id);


--
-- Name: iclock_privatemessage_employee_id_e84a34c0; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_privatemessage_employee_id_e84a34c0 ON public.iclock_privatemessage USING btree (employee_id);


--
-- Name: iclock_privatemessage_message_id_e3145d3b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_privatemessage_message_id_e3145d3b ON public.iclock_privatemessage USING btree (message_id);


--
-- Name: iclock_publicmessage_message_id_7d125e28; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_publicmessage_message_id_7d125e28 ON public.iclock_publicmessage USING btree (message_id);


--
-- Name: iclock_publicmessage_terminal_id_c3b5e4cf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_publicmessage_terminal_id_c3b5e4cf ON public.iclock_publicmessage USING btree (terminal_id);


--
-- Name: iclock_terminal_area_id_c019c6f0; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_terminal_area_id_c019c6f0 ON public.iclock_terminal USING btree (area_id);


--
-- Name: iclock_terminal_sn_209168b1_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_terminal_sn_209168b1_like ON public.iclock_terminal USING btree (sn varchar_pattern_ops);


--
-- Name: iclock_terminalcommand_terminal_id_3dcf836f; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_terminalcommand_terminal_id_3dcf836f ON public.iclock_terminalcommand USING btree (terminal_id);


--
-- Name: iclock_terminalcommandlog_terminal_id_35ea8b2b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_terminalcommandlog_terminal_id_35ea8b2b ON public.iclock_terminalcommandlog USING btree (terminal_id);


--
-- Name: iclock_terminallog_terminal_id_667b3ea7; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_terminallog_terminal_id_667b3ea7 ON public.iclock_terminallog USING btree (terminal_id);


--
-- Name: iclock_terminalparameter_terminal_id_443872e3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_terminalparameter_terminal_id_443872e3 ON public.iclock_terminalparameter USING btree (terminal_id);


--
-- Name: iclock_terminaluploadlog_terminal_id_9c9a7664; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_terminaluploadlog_terminal_id_9c9a7664 ON public.iclock_terminaluploadlog USING btree (terminal_id);


--
-- Name: iclock_terminalworkcode_code_244e0245_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_terminalworkcode_code_244e0245_like ON public.iclock_terminalworkcode USING btree (code varchar_pattern_ops);


--
-- Name: iclock_terminalworkcode_company_id_77625f26; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_terminalworkcode_company_id_77625f26 ON public.iclock_terminalworkcode USING btree (company_id);


--
-- Name: iclock_transaction_emp_id_60fa3521; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_transaction_emp_id_60fa3521 ON public.iclock_transaction USING btree (emp_id);


--
-- Name: iclock_transaction_terminal_id_451c81c2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_transaction_terminal_id_451c81c2 ON public.iclock_transaction USING btree (terminal_id);


--
-- Name: iclock_transactionproofcmd_terminal_id_08b81e1e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iclock_transactionproofcmd_terminal_id_08b81e1e ON public.iclock_transactionproofcmd USING btree (terminal_id);


--
-- Name: meeting_meetingentity_attender_employee_id_ee898064; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX meeting_meetingentity_attender_employee_id_ee898064 ON public.meeting_meetingentity_attender USING btree (employee_id);


--
-- Name: meeting_meetingentity_attender_meetingentity_id_b96dbc7d; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX meeting_meetingentity_attender_meetingentity_id_b96dbc7d ON public.meeting_meetingentity_attender USING btree (meetingentity_id);


--
-- Name: meeting_meetingentity_code_2fe57c62_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX meeting_meetingentity_code_2fe57c62_like ON public.meeting_meetingentity USING btree (code varchar_pattern_ops);


--
-- Name: meeting_meetingentity_room_id_bc2c738e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX meeting_meetingentity_room_id_bc2c738e ON public.meeting_meetingentity USING btree (room_id);


--
-- Name: meeting_meetingmanuallog_meeting_id_a672eaaf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX meeting_meetingmanuallog_meeting_id_a672eaaf ON public.meeting_meetingmanuallog USING btree (meeting_id);


--
-- Name: meeting_meetingpayloadbase_emp_id_ed6ec148; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX meeting_meetingpayloadbase_emp_id_ed6ec148 ON public.meeting_meetingpayloadbase USING btree (emp_id);


--
-- Name: meeting_meetingpayloadbase_meeting_id_ca9d20cc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX meeting_meetingpayloadbase_meeting_id_ca9d20cc ON public.meeting_meetingpayloadbase USING btree (meeting_id);


--
-- Name: meeting_meetingroom_code_c3663606_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX meeting_meetingroom_code_c3663606_like ON public.meeting_meetingroom USING btree (code varchar_pattern_ops);


--
-- Name: meeting_meetingroomdevice_room_id_e000d78d; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX meeting_meetingroomdevice_room_id_e000d78d ON public.meeting_meetingroomdevice USING btree (room_id);


--
-- Name: meeting_meetingtransaction_emp_id_fbcdd686; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX meeting_meetingtransaction_emp_id_fbcdd686 ON public.meeting_meetingtransaction USING btree (emp_id);


--
-- Name: meeting_meetingtransaction_meeting_id_e4e505e5; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX meeting_meetingtransaction_meeting_id_e4e505e5 ON public.meeting_meetingtransaction USING btree (meeting_id);


--
-- Name: meeting_meetingtransaction_terminal_id_047426f2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX meeting_meetingtransaction_terminal_id_047426f2 ON public.meeting_meetingtransaction USING btree (terminal_id);


--
-- Name: mobile_announcement_admin_id_6af3868c; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_announcement_admin_id_6af3868c ON public.mobile_announcement USING btree (admin_id);


--
-- Name: mobile_announcement_init_sender_id_2f5e35bd; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_announcement_init_sender_id_2f5e35bd ON public.mobile_announcement USING btree (init_sender_id);


--
-- Name: mobile_announcement_receiver_id_ddf2a860; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_announcement_receiver_id_ddf2a860 ON public.mobile_announcement USING btree (receiver_id);


--
-- Name: mobile_appnotification_admin_id_29c27197; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_appnotification_admin_id_29c27197 ON public.mobile_appnotification USING btree (admin_id);


--
-- Name: mobile_appnotification_init_sender_id_d8aff845; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_appnotification_init_sender_id_d8aff845 ON public.mobile_appnotification USING btree (init_sender_id);


--
-- Name: mobile_appnotification_receiver_id_90c4a355; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_appnotification_receiver_id_90c4a355 ON public.mobile_appnotification USING btree (receiver_id);


--
-- Name: mobile_gpsfordepartment_department_id_988ccf22; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_gpsfordepartment_department_id_988ccf22 ON public.mobile_gpsfordepartment USING btree (department_id);


--
-- Name: mobile_gpsfordepartment_location_gpsfordepartment_id_23e9af3a; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_gpsfordepartment_location_gpsfordepartment_id_23e9af3a ON public.mobile_gpsfordepartment_location USING btree (gpsfordepartment_id);


--
-- Name: mobile_gpsfordepartment_location_gpslocation_id_48b82e9e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_gpsfordepartment_location_gpslocation_id_48b82e9e ON public.mobile_gpsfordepartment_location USING btree (gpslocation_id);


--
-- Name: mobile_gpsforemployee_employee_id_982b7cef; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_gpsforemployee_employee_id_982b7cef ON public.mobile_gpsforemployee USING btree (employee_id);


--
-- Name: mobile_gpsforemployee_location_gpsforemployee_id_a52023d5; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_gpsforemployee_location_gpsforemployee_id_a52023d5 ON public.mobile_gpsforemployee_location USING btree (gpsforemployee_id);


--
-- Name: mobile_gpsforemployee_location_gpslocation_id_497a214f; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_gpsforemployee_location_gpslocation_id_497a214f ON public.mobile_gpsforemployee_location USING btree (gpslocation_id);


--
-- Name: mobile_mobileapirequestlog_path_830043b5; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_mobileapirequestlog_path_830043b5 ON public.mobile_mobileapirequestlog USING btree (path);


--
-- Name: mobile_mobileapirequestlog_path_830043b5_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_mobileapirequestlog_path_830043b5_like ON public.mobile_mobileapirequestlog USING btree (path varchar_pattern_ops);


--
-- Name: mobile_mobileapirequestlog_requested_at_a8c85067; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_mobileapirequestlog_requested_at_a8c85067 ON public.mobile_mobileapirequestlog USING btree (requested_at);


--
-- Name: mobile_mobileapirequestlog_status_code_c2de0c48; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_mobileapirequestlog_status_code_c2de0c48 ON public.mobile_mobileapirequestlog USING btree (status_code);


--
-- Name: mobile_mobileapirequestlog_user_id_dfd3ded1; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_mobileapirequestlog_user_id_dfd3ded1 ON public.mobile_mobileapirequestlog USING btree (user_id);


--
-- Name: mobile_mobileapirequestlog_view_50dbf600; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_mobileapirequestlog_view_50dbf600 ON public.mobile_mobileapirequestlog USING btree (view);


--
-- Name: mobile_mobileapirequestlog_view_50dbf600_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_mobileapirequestlog_view_50dbf600_like ON public.mobile_mobileapirequestlog USING btree (view varchar_pattern_ops);


--
-- Name: mobile_mobileapirequestlog_view_method_2e13cf95; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_mobileapirequestlog_view_method_2e13cf95 ON public.mobile_mobileapirequestlog USING btree (view_method);


--
-- Name: mobile_mobileapirequestlog_view_method_2e13cf95_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mobile_mobileapirequestlog_view_method_2e13cf95_like ON public.mobile_mobileapirequestlog USING btree (view_method varchar_pattern_ops);


--
-- Name: payroll_deductionformula_name_735ae7f7_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_deductionformula_name_735ae7f7_like ON public.payroll_deductionformula USING btree (name varchar_pattern_ops);


--
-- Name: payroll_emploan_employee_id_97a251ef; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_emploan_employee_id_97a251ef ON public.payroll_emploan USING btree (employee_id);


--
-- Name: payroll_exceptionformula_name_e09c7463_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_exceptionformula_name_e09c7463_like ON public.payroll_exceptionformula USING btree (name varchar_pattern_ops);


--
-- Name: payroll_exceptionformula_pay_code_id_97609b51; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_exceptionformula_pay_code_id_97609b51 ON public.payroll_exceptionformula USING btree (pay_code_id);


--
-- Name: payroll_extradeduction_employee_id_53072441; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_extradeduction_employee_id_53072441 ON public.payroll_extradeduction USING btree (employee_id);


--
-- Name: payroll_extraincrease_employee_id_f902e6bb; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_extraincrease_employee_id_f902e6bb ON public.payroll_extraincrease USING btree (employee_id);


--
-- Name: payroll_increasementformula_name_ba17a9a3_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_increasementformula_name_ba17a9a3_like ON public.payroll_increasementformula USING btree (name varchar_pattern_ops);


--
-- Name: payroll_leaveformula_name_f0ab005b_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_leaveformula_name_f0ab005b_like ON public.payroll_leaveformula USING btree (name varchar_pattern_ops);


--
-- Name: payroll_leaveformula_pay_code_id_63c7b4bd; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_leaveformula_pay_code_id_63c7b4bd ON public.payroll_leaveformula USING btree (pay_code_id);


--
-- Name: payroll_overtimeformula_name_6f2f3ff3_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_overtimeformula_name_6f2f3ff3_like ON public.payroll_overtimeformula USING btree (name varchar_pattern_ops);


--
-- Name: payroll_overtimeformula_pay_code_id_36d2f10e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_overtimeformula_pay_code_id_36d2f10e ON public.payroll_overtimeformula USING btree (pay_code_id);


--
-- Name: payroll_payrollpayload_employee_id_bc868f2b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_payrollpayload_employee_id_bc868f2b ON public.payroll_payrollpayload USING btree (employee_id);


--
-- Name: payroll_payrollpayloadpaycode_pay_code_id_c057af1f; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_payrollpayloadpaycode_pay_code_id_c057af1f ON public.payroll_payrollpayloadpaycode USING btree (pay_code_id);


--
-- Name: payroll_payrollpayloadpaycode_payload_id_f085c4e8; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_payrollpayloadpaycode_payload_id_f085c4e8 ON public.payroll_payrollpayloadpaycode USING btree (payload_id);


--
-- Name: payroll_reimbursement_employee_id_c4bbde36; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_reimbursement_employee_id_c4bbde36 ON public.payroll_reimbursement USING btree (employee_id);


--
-- Name: payroll_salaryadvance_employee_id_2abd43e5; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_salaryadvance_employee_id_2abd43e5 ON public.payroll_salaryadvance USING btree (employee_id);


--
-- Name: payroll_salarystructure_de_deductionformula_id_b174d5b6; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_salarystructure_de_deductionformula_id_b174d5b6 ON public.payroll_salarystructure_deductionformula USING btree (deductionformula_id);


--
-- Name: payroll_salarystructure_de_salarystructure_id_5ca7cdb5; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_salarystructure_de_salarystructure_id_5ca7cdb5 ON public.payroll_salarystructure_deductionformula USING btree (salarystructure_id);


--
-- Name: payroll_salarystructure_employee_id_98996e15; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_salarystructure_employee_id_98996e15 ON public.payroll_salarystructure USING btree (employee_id);


--
-- Name: payroll_salarystructure_ex_exceptionformula_id_8f6dadb3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_salarystructure_ex_exceptionformula_id_8f6dadb3 ON public.payroll_salarystructure_exceptionformula USING btree (exceptionformula_id);


--
-- Name: payroll_salarystructure_ex_salarystructure_id_3c087208; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_salarystructure_ex_salarystructure_id_3c087208 ON public.payroll_salarystructure_exceptionformula USING btree (salarystructure_id);


--
-- Name: payroll_salarystructure_in_increasementformula_id_3cd77082; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_salarystructure_in_increasementformula_id_3cd77082 ON public.payroll_salarystructure_increasementformula USING btree (increasementformula_id);


--
-- Name: payroll_salarystructure_in_salarystructure_id_8752401c; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_salarystructure_in_salarystructure_id_8752401c ON public.payroll_salarystructure_increasementformula USING btree (salarystructure_id);


--
-- Name: payroll_salarystructure_le_salarystructure_id_cf98fdd7; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_salarystructure_le_salarystructure_id_cf98fdd7 ON public.payroll_salarystructure_leaveformula USING btree (salarystructure_id);


--
-- Name: payroll_salarystructure_leaveformula_leaveformula_id_049f9024; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_salarystructure_leaveformula_leaveformula_id_049f9024 ON public.payroll_salarystructure_leaveformula USING btree (leaveformula_id);


--
-- Name: payroll_salarystructure_ov_overtimeformula_id_40ad89ef; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_salarystructure_ov_overtimeformula_id_40ad89ef ON public.payroll_salarystructure_overtimeformula USING btree (overtimeformula_id);


--
-- Name: payroll_salarystructure_ov_salarystructure_id_64f75042; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX payroll_salarystructure_ov_salarystructure_id_64f75042 ON public.payroll_salarystructure_overtimeformula USING btree (salarystructure_id);


--
-- Name: personnel_area_company_id_59750eb5; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_area_company_id_59750eb5 ON public.personnel_area USING btree (company_id);


--
-- Name: personnel_area_parent_area_id_39028fda; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_area_parent_area_id_39028fda ON public.personnel_area USING btree (parent_area_id);


--
-- Name: personnel_assignareaemployee_area_id_6f049d6a; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_assignareaemployee_area_id_6f049d6a ON public.personnel_assignareaemployee USING btree (area_id);


--
-- Name: personnel_assignareaemployee_employee_id_a3d4dd25; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_assignareaemployee_employee_id_a3d4dd25 ON public.personnel_assignareaemployee USING btree (employee_id);


--
-- Name: personnel_certification_cert_code_8ba51387_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_certification_cert_code_8ba51387_like ON public.personnel_certification USING btree (cert_code varchar_pattern_ops);


--
-- Name: personnel_certification_cert_name_67dacd72_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_certification_cert_name_67dacd72_like ON public.personnel_certification USING btree (cert_name varchar_pattern_ops);


--
-- Name: personnel_company_company_code_537dca09_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_company_company_code_537dca09_like ON public.personnel_company USING btree (company_code varchar_pattern_ops);


--
-- Name: personnel_department_company_id_00867fd8; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_department_company_id_00867fd8 ON public.personnel_department USING btree (company_id);


--
-- Name: personnel_department_dept_manager_id_c5124a7d; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_department_dept_manager_id_c5124a7d ON public.personnel_department USING btree (dept_manager_id);


--
-- Name: personnel_department_parent_dept_id_d0b44024; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_department_parent_dept_id_d0b44024 ON public.personnel_department USING btree (parent_dept_id);


--
-- Name: personnel_employee_area_area_id_64c21925; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_employee_area_area_id_64c21925 ON public.personnel_employee_area USING btree (area_id);


--
-- Name: personnel_employee_area_employee_id_8e5cec21; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_employee_area_employee_id_8e5cec21 ON public.personnel_employee_area USING btree (employee_id);


--
-- Name: personnel_employee_company_id_95b3fd72; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_employee_company_id_95b3fd72 ON public.personnel_employee USING btree (company_id);


--
-- Name: personnel_employee_department_id_068bbd08; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_employee_department_id_068bbd08 ON public.personnel_employee USING btree (department_id);


--
-- Name: personnel_employee_flow_role_employee_id_c27f8a56; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_employee_flow_role_employee_id_c27f8a56 ON public.personnel_employee_flow_role USING btree (employee_id);


--
-- Name: personnel_employee_flow_role_workflowrole_id_4704db32; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_employee_flow_role_workflowrole_id_4704db32 ON public.personnel_employee_flow_role USING btree (workflowrole_id);


--
-- Name: personnel_employee_position_id_c9321343; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_employee_position_id_c9321343 ON public.personnel_employee USING btree (position_id);


--
-- Name: personnel_employee_superior_id_ad6e1c47; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_employee_superior_id_ad6e1c47 ON public.personnel_employee USING btree (superior_id);


--
-- Name: personnel_employeecalendar_employee_id_165e0779; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_employeecalendar_employee_id_165e0779 ON public.personnel_employeecalendar USING btree (employee_id);


--
-- Name: personnel_employeecertification_certification_id_faabed40; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_employeecertification_certification_id_faabed40 ON public.personnel_employeecertification USING btree (certification_id);


--
-- Name: personnel_employeecertification_employee_id_b7bd3867; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_employeecertification_employee_id_b7bd3867 ON public.personnel_employeecertification USING btree (employee_id);


--
-- Name: personnel_employeecustomattribute_attr_name_d286b7d5_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_employeecustomattribute_attr_name_d286b7d5_like ON public.personnel_employeecustomattribute USING btree (attr_name varchar_pattern_ops);


--
-- Name: personnel_position_company_id_f06c5d2a; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_position_company_id_f06c5d2a ON public.personnel_position USING btree (company_id);


--
-- Name: personnel_position_parent_position_id_a496a36b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX personnel_position_parent_position_id_a496a36b ON public.personnel_position USING btree (parent_position_id);


--
-- Name: rest_framework_tracking_apirequestlog_path_fe81f91b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rest_framework_tracking_apirequestlog_path_fe81f91b ON public.rest_framework_tracking_apirequestlog USING btree (path);


--
-- Name: rest_framework_tracking_apirequestlog_path_fe81f91b_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rest_framework_tracking_apirequestlog_path_fe81f91b_like ON public.rest_framework_tracking_apirequestlog USING btree (path varchar_pattern_ops);


--
-- Name: rest_framework_tracking_apirequestlog_requested_at_b6f1c2f2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rest_framework_tracking_apirequestlog_requested_at_b6f1c2f2 ON public.rest_framework_tracking_apirequestlog USING btree (requested_at);


--
-- Name: rest_framework_tracking_apirequestlog_status_code_3c9e2003; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rest_framework_tracking_apirequestlog_status_code_3c9e2003 ON public.rest_framework_tracking_apirequestlog USING btree (status_code);


--
-- Name: rest_framework_tracking_apirequestlog_user_id_671b70b7; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rest_framework_tracking_apirequestlog_user_id_671b70b7 ON public.rest_framework_tracking_apirequestlog USING btree (user_id);


--
-- Name: rest_framework_tracking_apirequestlog_view_5bd1e407; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rest_framework_tracking_apirequestlog_view_5bd1e407 ON public.rest_framework_tracking_apirequestlog USING btree (view);


--
-- Name: rest_framework_tracking_apirequestlog_view_5bd1e407_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rest_framework_tracking_apirequestlog_view_5bd1e407_like ON public.rest_framework_tracking_apirequestlog USING btree (view varchar_pattern_ops);


--
-- Name: rest_framework_tracking_apirequestlog_view_method_dd790881; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rest_framework_tracking_apirequestlog_view_method_dd790881 ON public.rest_framework_tracking_apirequestlog USING btree (view_method);


--
-- Name: rest_framework_tracking_apirequestlog_view_method_dd790881_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rest_framework_tracking_apirequestlog_view_method_dd790881_like ON public.rest_framework_tracking_apirequestlog USING btree (view_method varchar_pattern_ops);


--
-- Name: staff_stafftoken_key_af7789a4_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX staff_stafftoken_key_af7789a4_like ON public.staff_stafftoken USING btree (key varchar_pattern_ops);


--
-- Name: visitor_reservation_cert_type_id_4f047f2a; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_reservation_cert_type_id_4f047f2a ON public.visitor_reservation USING btree (cert_type_id);


--
-- Name: visitor_reservation_visit_department_id_2d293e10; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_reservation_visit_department_id_2d293e10 ON public.visitor_reservation USING btree (visit_department_id);


--
-- Name: visitor_reservation_visit_reason_id_c9ac83ac; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_reservation_visit_reason_id_c9ac83ac ON public.visitor_reservation USING btree (visit_reason_id);


--
-- Name: visitor_visitor_acc_groups_accgroups_id_b1487149; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_visitor_acc_groups_accgroups_id_b1487149 ON public.visitor_visitor_acc_groups USING btree (accgroups_id);


--
-- Name: visitor_visitor_acc_groups_visitor_id_8ce09562; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_visitor_acc_groups_visitor_id_8ce09562 ON public.visitor_visitor_acc_groups USING btree (visitor_id);


--
-- Name: visitor_visitor_area_area_id_b402c047; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_visitor_area_area_id_b402c047 ON public.visitor_visitor_area USING btree (area_id);


--
-- Name: visitor_visitor_area_visitor_id_98d7ed05; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_visitor_area_visitor_id_98d7ed05 ON public.visitor_visitor_area USING btree (visitor_id);


--
-- Name: visitor_visitor_cert_type_id_f62ea604; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_visitor_cert_type_id_f62ea604 ON public.visitor_visitor USING btree (cert_type_id);


--
-- Name: visitor_visitor_visit_department_id_f7dbdcb4; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_visitor_visit_department_id_f7dbdcb4 ON public.visitor_visitor USING btree (visit_department_id);


--
-- Name: visitor_visitor_visit_reason_id_4b9a2d23; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_visitor_visit_reason_id_4b9a2d23 ON public.visitor_visitor USING btree (visit_reason_id);


--
-- Name: visitor_visitor_visited_id_8043a7ea; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_visitor_visited_id_8043a7ea ON public.visitor_visitor USING btree (visited_id);


--
-- Name: visitor_visitor_visitor_code_5255ed7f_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_visitor_visitor_code_5255ed7f_like ON public.visitor_visitor USING btree (visitor_code varchar_pattern_ops);


--
-- Name: visitor_visitorbiodata_visitor_id_b944ed37; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_visitorbiodata_visitor_id_b944ed37 ON public.visitor_visitorbiodata USING btree (visitor_id);


--
-- Name: visitor_visitorbiophoto_visitor_id_9816daf7; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_visitorbiophoto_visitor_id_9816daf7 ON public.visitor_visitorbiophoto USING btree (visitor_id);


--
-- Name: visitor_visitorlog_visitor_id_ebaafde1; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_visitorlog_visitor_id_ebaafde1 ON public.visitor_visitorlog USING btree (visitor_id);


--
-- Name: visitor_visitortransaction_terminal_id_7527ef69; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_visitortransaction_terminal_id_7527ef69 ON public.visitor_visitortransaction USING btree (terminal_id);


--
-- Name: visitor_visitortransaction_visitor_id_0ee95624; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitor_visitortransaction_visitor_id_0ee95624 ON public.visitor_visitortransaction USING btree (visitor_id);


--
-- Name: workflow_nodeinstance_approver_employee_id_d36cd45d; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_nodeinstance_approver_employee_id_d36cd45d ON public.workflow_nodeinstance USING btree (approver_employee_id);


--
-- Name: workflow_nodeinstance_workflow_instance_id_afe84fe4; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_nodeinstance_workflow_instance_id_afe84fe4 ON public.workflow_nodeinstance USING btree (workflow_instance_id);


--
-- Name: workflow_nodeinstance_workflow_node_id_166f36c4; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_nodeinstance_workflow_node_id_166f36c4 ON public.workflow_nodeinstance USING btree (workflow_node_id);


--
-- Name: workflow_workflowengine_applicant_position_id_8a65e03a; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_workflowengine_applicant_position_id_8a65e03a ON public.workflow_workflowengine USING btree (applicant_position_id);


--
-- Name: workflow_workflowengine_content_type_id_f7345c20; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_workflowengine_content_type_id_f7345c20 ON public.workflow_workflowengine USING btree (content_type_id);


--
-- Name: workflow_workflowengine_departments_id_0f06d4c7; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_workflowengine_departments_id_0f06d4c7 ON public.workflow_workflowengine USING btree (departments_id);


--
-- Name: workflow_workflowengine_employee_employee_id_803a409e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_workflowengine_employee_employee_id_803a409e ON public.workflow_workflowengine_employee USING btree (employee_id);


--
-- Name: workflow_workflowengine_employee_workflowengine_id_6ebcc5f2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_workflowengine_employee_workflowengine_id_6ebcc5f2 ON public.workflow_workflowengine_employee USING btree (workflowengine_id);


--
-- Name: workflow_workflowengine_workflow_code_86134f98_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_workflowengine_workflow_code_86134f98_like ON public.workflow_workflowengine USING btree (workflow_code varchar_pattern_ops);


--
-- Name: workflow_workflowinstance_employee_id_c7cff08e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_workflowinstance_employee_id_c7cff08e ON public.workflow_workflowinstance USING btree (employee_id);


--
-- Name: workflow_workflowinstance_workflow_engine_id_1e6ac40f; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_workflowinstance_workflow_engine_id_1e6ac40f ON public.workflow_workflowinstance USING btree (workflow_engine_id);


--
-- Name: workflow_workflownode_approver_workflownode_id_d814c941; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_workflownode_approver_workflownode_id_d814c941 ON public.workflow_workflownode_approver USING btree (workflownode_id);


--
-- Name: workflow_workflownode_approver_workflowrole_id_c8e00d42; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_workflownode_approver_workflowrole_id_c8e00d42 ON public.workflow_workflownode_approver USING btree (workflowrole_id);


--
-- Name: workflow_workflownode_notifier_workflownode_id_57298016; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_workflownode_notifier_workflownode_id_57298016 ON public.workflow_workflownode_notifier USING btree (workflownode_id);


--
-- Name: workflow_workflownode_notifier_workflowrole_id_73de7fc2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_workflownode_notifier_workflowrole_id_73de7fc2 ON public.workflow_workflownode_notifier USING btree (workflowrole_id);


--
-- Name: workflow_workflownode_workflow_engine_id_04c8f470; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_workflownode_workflow_engine_id_04c8f470 ON public.workflow_workflownode USING btree (workflow_engine_id);


--
-- Name: workflow_workflowrole_role_code_e2e9edb9_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_workflowrole_role_code_e2e9edb9_like ON public.workflow_workflowrole USING btree (role_code varchar_pattern_ops);


--
-- Name: workflow_workflowrole_role_name_5e0a9215_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX workflow_workflowrole_role_name_5e0a9215_like ON public.workflow_workflowrole USING btree (role_name varchar_pattern_ops);


--
-- Name: acc_acccombination acc_acccombination_area_id_0d22c34e_fk_personnel_area_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_acccombination
    ADD CONSTRAINT acc_acccombination_area_id_0d22c34e_fk_personnel_area_id FOREIGN KEY (area_id) REFERENCES public.personnel_area(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: acc_accgroups acc_accgroups_area_id_b83745c3_fk_personnel_area_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_accgroups
    ADD CONSTRAINT acc_accgroups_area_id_b83745c3_fk_personnel_area_id FOREIGN KEY (area_id) REFERENCES public.personnel_area(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: acc_accholiday acc_accholiday_area_id_d15c19da_fk_personnel_area_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_accholiday
    ADD CONSTRAINT acc_accholiday_area_id_d15c19da_fk_personnel_area_id FOREIGN KEY (area_id) REFERENCES public.personnel_area(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: acc_accholiday acc_accholiday_holiday_id_a9efe924_fk_att_holiday_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_accholiday
    ADD CONSTRAINT acc_accholiday_holiday_id_a9efe924_fk_att_holiday_id FOREIGN KEY (holiday_id) REFERENCES public.att_holiday(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: acc_accholiday acc_accholiday_timezone_id_450d2d1e_fk_acc_acctimezone_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_accholiday
    ADD CONSTRAINT acc_accholiday_timezone_id_450d2d1e_fk_acc_acctimezone_id FOREIGN KEY (timezone_id) REFERENCES public.acc_acctimezone(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: acc_accprivilege acc_accprivilege_area_id_2123ff6f_fk_personnel_area_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_accprivilege
    ADD CONSTRAINT acc_accprivilege_area_id_2123ff6f_fk_personnel_area_id FOREIGN KEY (area_id) REFERENCES public.personnel_area(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: acc_accprivilege acc_accprivilege_employee_id_5fc55f95_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_accprivilege
    ADD CONSTRAINT acc_accprivilege_employee_id_5fc55f95_fk_personnel_employee_id FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: acc_accprivilege acc_accprivilege_group_id_c5ed7003_fk_acc_accgroups_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_accprivilege
    ADD CONSTRAINT acc_accprivilege_group_id_c5ed7003_fk_acc_accgroups_id FOREIGN KEY (group_id) REFERENCES public.acc_accgroups(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: acc_accterminal acc_accterminal_terminal_id_fc92cce2_fk_iclock_terminal_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_accterminal
    ADD CONSTRAINT acc_accterminal_terminal_id_fc92cce2_fk_iclock_terminal_id FOREIGN KEY (terminal_id) REFERENCES public.iclock_terminal(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: acc_acctimezone acc_acctimezone_area_id_e9ce7a7a_fk_personnel_area_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_acctimezone
    ADD CONSTRAINT acc_acctimezone_area_id_e9ce7a7a_fk_personnel_area_id FOREIGN KEY (area_id) REFERENCES public.personnel_area(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: accounts_adminbiodata accounts_adminbiodata_admin_id_1e6d2d45_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.accounts_adminbiodata
    ADD CONSTRAINT accounts_adminbiodata_admin_id_1e6d2d45_fk_auth_user_id FOREIGN KEY (admin_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: accounts_usernotification accounts_usernotification_user_id_b86755b3_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.accounts_usernotification
    ADD CONSTRAINT accounts_usernotification_user_id_b86755b3_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_attemployee att_attemployee_emp_id_52457e3c_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attemployee
    ADD CONSTRAINT att_attemployee_emp_id_52457e3c_fk_personnel_employee_id FOREIGN KEY (emp_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_attemployee att_attemployee_group_id_18d3954d_fk_att_attgroup_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attemployee
    ADD CONSTRAINT att_attemployee_group_id_18d3954d_fk_att_attgroup_id FOREIGN KEY (group_id) REFERENCES public.att_attgroup(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_attpolicy att_attpolicy_ot_pay_code_id_b189b952_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attpolicy
    ADD CONSTRAINT att_attpolicy_ot_pay_code_id_b189b952_fk_att_paycode_id FOREIGN KEY (ot_pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_attschedule att_attschedule_employee_id_caa61686_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attschedule
    ADD CONSTRAINT att_attschedule_employee_id_caa61686_fk_personnel_employee_id FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_attschedule att_attschedule_shift_id_13d2db9a_fk_att_attshift_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_attschedule
    ADD CONSTRAINT att_attschedule_shift_id_13d2db9a_fk_att_attshift_id FOREIGN KEY (shift_id) REFERENCES public.att_attshift(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_breaktime att_breaktime_loss_code_id_2ffb5432_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_breaktime
    ADD CONSTRAINT att_breaktime_loss_code_id_2ffb5432_fk_att_paycode_id FOREIGN KEY (loss_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_breaktime att_breaktime_profit_code_id_63cdbbcc_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_breaktime
    ADD CONSTRAINT att_breaktime_profit_code_id_63cdbbcc_fk_att_paycode_id FOREIGN KEY (profit_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_changeschedule att_changeschedule_timeinterval_id_d41ac077_fk_att_timei; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_changeschedule
    ADD CONSTRAINT att_changeschedule_timeinterval_id_d41ac077_fk_att_timei FOREIGN KEY (timeinterval_id) REFERENCES public.att_timeinterval(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_changeschedule att_changeschedule_workflowinstance_ptr_cee602bb_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_changeschedule
    ADD CONSTRAINT att_changeschedule_workflowinstance_ptr_cee602bb_fk_workflow_ FOREIGN KEY (workflowinstance_ptr_id) REFERENCES public.workflow_workflowinstance(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_departmentpolicy att_departmentpolicy_department_id_77059a9d_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_departmentpolicy
    ADD CONSTRAINT att_departmentpolicy_department_id_77059a9d_fk_personnel FOREIGN KEY (department_id) REFERENCES public.personnel_department(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_departmentpolicy att_departmentpolicy_ot_pay_code_id_390411dd_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_departmentpolicy
    ADD CONSTRAINT att_departmentpolicy_ot_pay_code_id_390411dd_fk_att_paycode_id FOREIGN KEY (ot_pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_departmentschedule att_departmentschedu_department_id_c68fca3d_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_departmentschedule
    ADD CONSTRAINT att_departmentschedu_department_id_c68fca3d_fk_personnel FOREIGN KEY (department_id) REFERENCES public.personnel_department(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_departmentschedule att_departmentschedule_shift_id_c37d5ade_fk_att_attshift_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_departmentschedule
    ADD CONSTRAINT att_departmentschedule_shift_id_c37d5ade_fk_att_attshift_id FOREIGN KEY (shift_id) REFERENCES public.att_attshift(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_deptattrule att_deptattrule_department_id_f333c8f0_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_deptattrule
    ADD CONSTRAINT att_deptattrule_department_id_f333c8f0_fk_personnel FOREIGN KEY (department_id) REFERENCES public.personnel_department(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_grouppolicy att_grouppolicy_group_id_b2e4dfe8_fk_att_attgroup_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_grouppolicy
    ADD CONSTRAINT att_grouppolicy_group_id_b2e4dfe8_fk_att_attgroup_id FOREIGN KEY (group_id) REFERENCES public.att_attgroup(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_grouppolicy att_grouppolicy_ot_pay_code_id_1ec83080_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_grouppolicy
    ADD CONSTRAINT att_grouppolicy_ot_pay_code_id_1ec83080_fk_att_paycode_id FOREIGN KEY (ot_pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_groupschedule att_groupschedule_group_id_c341493f_fk_att_attgroup_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_groupschedule
    ADD CONSTRAINT att_groupschedule_group_id_c341493f_fk_att_attgroup_id FOREIGN KEY (group_id) REFERENCES public.att_attgroup(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_groupschedule att_groupschedule_shift_id_287e7fc0_fk_att_attshift_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_groupschedule
    ADD CONSTRAINT att_groupschedule_shift_id_287e7fc0_fk_att_attshift_id FOREIGN KEY (shift_id) REFERENCES public.att_attshift(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_holiday att_holiday_att_group_id_9ddf13ba_fk_att_attgroup_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_holiday
    ADD CONSTRAINT att_holiday_att_group_id_9ddf13ba_fk_att_attgroup_id FOREIGN KEY (att_group_id) REFERENCES public.att_attgroup(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_holiday att_holiday_department_id_fbbbd185_fk_personnel_department_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_holiday
    ADD CONSTRAINT att_holiday_department_id_fbbbd185_fk_personnel_department_id FOREIGN KEY (department_id) REFERENCES public.personnel_department(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_leave att_leave_pay_code_id_2fadf493_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_leave
    ADD CONSTRAINT att_leave_pay_code_id_2fadf493_fk_att_paycode_id FOREIGN KEY (pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_leave att_leave_workflowinstance_ptr_39aaa9d9_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_leave
    ADD CONSTRAINT att_leave_workflowinstance_ptr_39aaa9d9_fk_workflow_ FOREIGN KEY (workflowinstance_ptr_id) REFERENCES public.workflow_workflowinstance(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_leavegroupdetail att_leavegroupdetail_leave_group_id_28f69ada_fk_att_leave; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_leavegroupdetail
    ADD CONSTRAINT att_leavegroupdetail_leave_group_id_28f69ada_fk_att_leave FOREIGN KEY (leave_group_id) REFERENCES public.att_leavegroup(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_leavegroupdetail att_leavegroupdetail_pay_code_id_5013b373_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_leavegroupdetail
    ADD CONSTRAINT att_leavegroupdetail_pay_code_id_5013b373_fk_att_paycode_id FOREIGN KEY (pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_leaveyearbalance att_leaveyearbalance_employee_id_14febdb3_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_leaveyearbalance
    ADD CONSTRAINT att_leaveyearbalance_employee_id_14febdb3_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_leaveyearbalance att_leaveyearbalance_pay_code_id_82632aca_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_leaveyearbalance
    ADD CONSTRAINT att_leaveyearbalance_pay_code_id_82632aca_fk_att_paycode_id FOREIGN KEY (pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_manuallog att_manuallog_workflowinstance_ptr_22a3fbd0_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_manuallog
    ADD CONSTRAINT att_manuallog_workflowinstance_ptr_22a3fbd0_fk_workflow_ FOREIGN KEY (workflowinstance_ptr_id) REFERENCES public.workflow_workflowinstance(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_overtime att_overtime_pay_code_id_05600ee0_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_overtime
    ADD CONSTRAINT att_overtime_pay_code_id_05600ee0_fk_att_paycode_id FOREIGN KEY (pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_overtime att_overtime_workflowinstance_ptr_6bd6a6f4_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_overtime
    ADD CONSTRAINT att_overtime_workflowinstance_ptr_6bd6a6f4_fk_workflow_ FOREIGN KEY (workflowinstance_ptr_id) REFERENCES public.workflow_workflowinstance(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_overtimepolicy att_overtimepolicy_overnight_pay_code_i_274ce1b0_fk_att_payco; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_overtimepolicy
    ADD CONSTRAINT att_overtimepolicy_overnight_pay_code_i_274ce1b0_fk_att_payco FOREIGN KEY (overnight_pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_overtimepolicy att_overtimepolicy_pay_code_id_285b0a61_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_overtimepolicy
    ADD CONSTRAINT att_overtimepolicy_pay_code_id_285b0a61_fk_att_paycode_id FOREIGN KEY (pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadattcode att_payloadattcode_att_code_id_0d635efd_fk_att_attcode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadattcode
    ADD CONSTRAINT att_payloadattcode_att_code_id_0d635efd_fk_att_attcode_id FOREIGN KEY (att_code_id) REFERENCES public.att_attcode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadattcode att_payloadattcode_emp_id_36569f54_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadattcode
    ADD CONSTRAINT att_payloadattcode_emp_id_36569f54_fk_personnel_employee_id FOREIGN KEY (emp_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadattcode att_payloadattcode_shift_id_731faddf_fk_att_attshift_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadattcode
    ADD CONSTRAINT att_payloadattcode_shift_id_731faddf_fk_att_attshift_id FOREIGN KEY (shift_id) REFERENCES public.att_attshift(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadbase att_payloadbase_emp_id_2c0f6a7b_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadbase
    ADD CONSTRAINT att_payloadbase_emp_id_2c0f6a7b_fk_personnel_employee_id FOREIGN KEY (emp_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadbase att_payloadbase_timetable_id_a389e3d8_fk_att_timeinterval_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadbase
    ADD CONSTRAINT att_payloadbase_timetable_id_a389e3d8_fk_att_timeinterval_id FOREIGN KEY (timetable_id) REFERENCES public.att_timeinterval(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadeffectpunch att_payloadeffectpun_trans_id_94affbe6_fk_iclock_tr; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadeffectpunch
    ADD CONSTRAINT att_payloadeffectpun_trans_id_94affbe6_fk_iclock_tr FOREIGN KEY (trans_id) REFERENCES public.iclock_transaction(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadeffectpunch att_payloadeffectpunch_emp_id_67e28e01_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadeffectpunch
    ADD CONSTRAINT att_payloadeffectpunch_emp_id_67e28e01_fk_personnel_employee_id FOREIGN KEY (emp_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadexception att_payloadexception_item_id_a08bfe48_fk_att_leave; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadexception
    ADD CONSTRAINT att_payloadexception_item_id_a08bfe48_fk_att_leave FOREIGN KEY (item_id) REFERENCES public.att_leave(workflowinstance_ptr_id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadmulpunchset att_payloadmulpunchset_emp_id_f47610c8_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadmulpunchset
    ADD CONSTRAINT att_payloadmulpunchset_emp_id_f47610c8_fk_personnel_employee_id FOREIGN KEY (emp_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadparing att_payloadparing_emp_id_c5daac4f_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadparing
    ADD CONSTRAINT att_payloadparing_emp_id_c5daac4f_fk_personnel_employee_id FOREIGN KEY (emp_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadparing att_payloadparing_in_trans_id_50a8040e_fk_iclock_transaction_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadparing
    ADD CONSTRAINT att_payloadparing_in_trans_id_50a8040e_fk_iclock_transaction_id FOREIGN KEY (in_trans_id) REFERENCES public.iclock_transaction(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadparing att_payloadparing_out_trans_id_8b2375b9_fk_iclock_tr; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadparing
    ADD CONSTRAINT att_payloadparing_out_trans_id_8b2375b9_fk_iclock_tr FOREIGN KEY (out_trans_id) REFERENCES public.iclock_transaction(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadparing att_payloadparing_pay_code_id_aa241cca_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadparing
    ADD CONSTRAINT att_payloadparing_pay_code_id_aa241cca_fk_att_paycode_id FOREIGN KEY (pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadpaycode att_payloadpaycode_emp_id_78e75279_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadpaycode
    ADD CONSTRAINT att_payloadpaycode_emp_id_78e75279_fk_personnel_employee_id FOREIGN KEY (emp_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadpaycode att_payloadpaycode_pay_code_id_4a096cc7_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadpaycode
    ADD CONSTRAINT att_payloadpaycode_pay_code_id_4a096cc7_fk_att_paycode_id FOREIGN KEY (pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadpaycode att_payloadpaycode_shift_id_79a0901e_fk_att_attshift_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadpaycode
    ADD CONSTRAINT att_payloadpaycode_shift_id_79a0901e_fk_att_attshift_id FOREIGN KEY (shift_id) REFERENCES public.att_attshift(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadpunch att_payloadpunch_emp_id_053da2f0_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadpunch
    ADD CONSTRAINT att_payloadpunch_emp_id_053da2f0_fk_personnel_employee_id FOREIGN KEY (emp_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadpunch att_payloadpunch_orig_id_16b26416_fk_iclock_transaction_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadpunch
    ADD CONSTRAINT att_payloadpunch_orig_id_16b26416_fk_iclock_transaction_id FOREIGN KEY (orig_id) REFERENCES public.iclock_transaction(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadtimecard att_payloadtimecard_emp_id_47caeab4_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadtimecard
    ADD CONSTRAINT att_payloadtimecard_emp_id_47caeab4_fk_personnel_employee_id FOREIGN KEY (emp_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_payloadtimecard att_payloadtimecard_time_table_id_6e0b0137_fk_att_timei; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_payloadtimecard
    ADD CONSTRAINT att_payloadtimecard_time_table_id_6e0b0137_fk_att_timei FOREIGN KEY (time_table_id) REFERENCES public.att_timeinterval(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_reporttemplate att_reporttemplate_builder_id_e1bb15c6_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_reporttemplate
    ADD CONSTRAINT att_reporttemplate_builder_id_e1bb15c6_fk_auth_user_id FOREIGN KEY (builder_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_reporttemplate att_reporttemplate_employee_id_4f80d866_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_reporttemplate
    ADD CONSTRAINT att_reporttemplate_employee_id_4f80d866_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_shiftdetail att_shiftdetail_shift_id_7d694501_fk_att_attshift_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_shiftdetail
    ADD CONSTRAINT att_shiftdetail_shift_id_7d694501_fk_att_attshift_id FOREIGN KEY (shift_id) REFERENCES public.att_attshift(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_shiftdetail att_shiftdetail_time_interval_id_777dde8f_fk_att_timei; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_shiftdetail
    ADD CONSTRAINT att_shiftdetail_time_interval_id_777dde8f_fk_att_timei FOREIGN KEY (time_interval_id) REFERENCES public.att_timeinterval(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_temporaryschedule att_temporaryschedul_employee_id_2b2b94c2_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_temporaryschedule
    ADD CONSTRAINT att_temporaryschedul_employee_id_2b2b94c2_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_tempschedule att_tempschedule_employee_id_b89c7e54_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_tempschedule
    ADD CONSTRAINT att_tempschedule_employee_id_b89c7e54_fk_personnel_employee_id FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_timeinterval_break_time att_timeinterval_bre_breaktime_id_08462308_fk_att_break; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_timeinterval_break_time
    ADD CONSTRAINT att_timeinterval_bre_breaktime_id_08462308_fk_att_break FOREIGN KEY (breaktime_id) REFERENCES public.att_breaktime(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_timeinterval_break_time att_timeinterval_bre_timeinterval_id_2287017e_fk_att_timei; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_timeinterval_break_time
    ADD CONSTRAINT att_timeinterval_bre_timeinterval_id_2287017e_fk_att_timei FOREIGN KEY (timeinterval_id) REFERENCES public.att_timeinterval(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_timeinterval att_timeinterval_ot_pay_code_id_17438af8_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_timeinterval
    ADD CONSTRAINT att_timeinterval_ot_pay_code_id_17438af8_fk_att_paycode_id FOREIGN KEY (ot_pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_training att_training_pay_code_id_5790afdd_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_training
    ADD CONSTRAINT att_training_pay_code_id_5790afdd_fk_att_paycode_id FOREIGN KEY (pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_training att_training_workflowinstance_ptr_0aef1508_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_training
    ADD CONSTRAINT att_training_workflowinstance_ptr_0aef1508_fk_workflow_ FOREIGN KEY (workflowinstance_ptr_id) REFERENCES public.workflow_workflowinstance(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: att_webpunch att_webpunch_workflowinstance_ptr_c5f1c02e_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.att_webpunch
    ADD CONSTRAINT att_webpunch_workflowinstance_ptr_c5f1c02e_fk_workflow_ FOREIGN KEY (workflowinstance_ptr_id) REFERENCES public.workflow_workflowinstance(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_group_permissions auth_group_permissio_permission_id_84c5c92e_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_group_permissions
    ADD CONSTRAINT auth_group_permissio_permission_id_84c5c92e_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES public.auth_permission(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_group_permissions auth_group_permissions_group_id_b120cbf9_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_group_permissions
    ADD CONSTRAINT auth_group_permissions_group_id_b120cbf9_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_permission auth_permission_content_type_id_2f476e4b_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_permission
    ADD CONSTRAINT auth_permission_content_type_id_2f476e4b_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_user_auth_area auth_user_auth_area_area_id_d1e54c70_fk_personnel_area_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_auth_area
    ADD CONSTRAINT auth_user_auth_area_area_id_d1e54c70_fk_personnel_area_id FOREIGN KEY (area_id) REFERENCES public.personnel_area(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_user_auth_area auth_user_auth_area_myuser_id_5fb9a803_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_auth_area
    ADD CONSTRAINT auth_user_auth_area_myuser_id_5fb9a803_fk_auth_user_id FOREIGN KEY (myuser_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_user_auth_dept auth_user_auth_dept_department_id_5866c514_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_auth_dept
    ADD CONSTRAINT auth_user_auth_dept_department_id_5866c514_fk_personnel FOREIGN KEY (department_id) REFERENCES public.personnel_department(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_user_auth_dept auth_user_auth_dept_myuser_id_18a51b27_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_auth_dept
    ADD CONSTRAINT auth_user_auth_dept_myuser_id_18a51b27_fk_auth_user_id FOREIGN KEY (myuser_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_user_groups auth_user_groups_group_id_97559544_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_groups
    ADD CONSTRAINT auth_user_groups_group_id_97559544_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_user_groups auth_user_groups_myuser_id_d03e8dcc_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_groups
    ADD CONSTRAINT auth_user_groups_myuser_id_d03e8dcc_fk_auth_user_id FOREIGN KEY (myuser_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_user_profile auth_user_profile_user_id_f9aded29_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_profile
    ADD CONSTRAINT auth_user_profile_user_id_f9aded29_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_user_user_permissions auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_user_permissions
    ADD CONSTRAINT auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES public.auth_permission(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_user_user_permissions auth_user_user_permissions_myuser_id_679b1527_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_user_permissions
    ADD CONSTRAINT auth_user_user_permissions_myuser_id_679b1527_fk_auth_user_id FOREIGN KEY (myuser_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: authtoken_token authtoken_token_user_id_35299eff_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.authtoken_token
    ADD CONSTRAINT authtoken_token_user_id_35299eff_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: base_adminlog base_adminlog_content_type_id_3e553c30_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_adminlog
    ADD CONSTRAINT base_adminlog_content_type_id_3e553c30_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: base_adminlog base_adminlog_user_id_ecf659f8_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_adminlog
    ADD CONSTRAINT base_adminlog_user_id_ecf659f8_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: base_autoimporttask base_autoimporttask_company_id_d18431a1_fk_personnel_company_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_autoimporttask
    ADD CONSTRAINT base_autoimporttask_company_id_d18431a1_fk_personnel_company_id FOREIGN KEY (company_id) REFERENCES public.personnel_company(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: base_bookmark base_bookmark_content_type_id_b6a0e799_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_bookmark
    ADD CONSTRAINT base_bookmark_content_type_id_b6a0e799_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: base_bookmark base_bookmark_user_id_5f2d5ca2_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_bookmark
    ADD CONSTRAINT base_bookmark_user_id_5f2d5ca2_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: base_linenotifysetting base_linenotifysetti_line_notify_dept_id_0643a5ed_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.base_linenotifysetting
    ADD CONSTRAINT base_linenotifysetti_line_notify_dept_id_0643a5ed_fk_personnel FOREIGN KEY (line_notify_dept_id) REFERENCES public.personnel_department(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: django_admin_log django_admin_log_content_type_id_c4bce8eb_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_admin_log
    ADD CONSTRAINT django_admin_log_content_type_id_c4bce8eb_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: django_admin_log django_admin_log_user_id_c564eba6_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_admin_log
    ADD CONSTRAINT django_admin_log_user_id_c564eba6_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: django_celery_beat_periodictask django_celery_beat_p_clocked_id_47a69f82_fk_django_ce; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_celery_beat_periodictask
    ADD CONSTRAINT django_celery_beat_p_clocked_id_47a69f82_fk_django_ce FOREIGN KEY (clocked_id) REFERENCES public.django_celery_beat_clockedschedule(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: django_celery_beat_periodictask django_celery_beat_p_crontab_id_d3cba168_fk_django_ce; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_celery_beat_periodictask
    ADD CONSTRAINT django_celery_beat_p_crontab_id_d3cba168_fk_django_ce FOREIGN KEY (crontab_id) REFERENCES public.django_celery_beat_crontabschedule(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: django_celery_beat_periodictask django_celery_beat_p_interval_id_a8ca27da_fk_django_ce; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_celery_beat_periodictask
    ADD CONSTRAINT django_celery_beat_p_interval_id_a8ca27da_fk_django_ce FOREIGN KEY (interval_id) REFERENCES public.django_celery_beat_intervalschedule(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: django_celery_beat_periodictask django_celery_beat_p_solar_id_a87ce72c_fk_django_ce; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_celery_beat_periodictask
    ADD CONSTRAINT django_celery_beat_p_solar_id_a87ce72c_fk_django_ce FOREIGN KEY (solar_id) REFERENCES public.django_celery_beat_solarschedule(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: ep_eptransaction ep_eptransaction_emp_id_1006883f_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ep_eptransaction
    ADD CONSTRAINT ep_eptransaction_emp_id_1006883f_fk_personnel_employee_id FOREIGN KEY (emp_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: ep_eptransaction ep_eptransaction_terminal_id_4490b209_fk_iclock_terminal_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ep_eptransaction
    ADD CONSTRAINT ep_eptransaction_terminal_id_4490b209_fk_iclock_terminal_id FOREIGN KEY (terminal_id) REFERENCES public.iclock_terminal(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: guardian_groupobjectpermission guardian_groupobject_content_type_id_7ade36b8_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.guardian_groupobjectpermission
    ADD CONSTRAINT guardian_groupobject_content_type_id_7ade36b8_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: guardian_groupobjectpermission guardian_groupobject_group_id_4bbbfb62_fk_auth_grou; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.guardian_groupobjectpermission
    ADD CONSTRAINT guardian_groupobject_group_id_4bbbfb62_fk_auth_grou FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: guardian_groupobjectpermission guardian_groupobject_permission_id_36572738_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.guardian_groupobjectpermission
    ADD CONSTRAINT guardian_groupobject_permission_id_36572738_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES public.auth_permission(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: guardian_userobjectpermission guardian_userobjectp_content_type_id_2e892405_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.guardian_userobjectpermission
    ADD CONSTRAINT guardian_userobjectp_content_type_id_2e892405_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: guardian_userobjectpermission guardian_userobjectp_permission_id_71807bfc_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.guardian_userobjectpermission
    ADD CONSTRAINT guardian_userobjectp_permission_id_71807bfc_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES public.auth_permission(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: guardian_userobjectpermission guardian_userobjectpermission_user_id_d5c1e964_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.guardian_userobjectpermission
    ADD CONSTRAINT guardian_userobjectpermission_user_id_d5c1e964_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_biodata iclock_biodata_employee_id_ff748ea7_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_biodata
    ADD CONSTRAINT iclock_biodata_employee_id_ff748ea7_fk_personnel_employee_id FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_biophoto iclock_biophoto_employee_id_3dba5819_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_biophoto
    ADD CONSTRAINT iclock_biophoto_employee_id_3dba5819_fk_personnel_employee_id FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_errorcommandlog iclock_errorcommandl_terminal_id_3b2d7cbd_fk_iclock_te; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_errorcommandlog
    ADD CONSTRAINT iclock_errorcommandl_terminal_id_3b2d7cbd_fk_iclock_te FOREIGN KEY (terminal_id) REFERENCES public.iclock_terminal(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_privatemessage iclock_privatemessag_employee_id_e84a34c0_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_privatemessage
    ADD CONSTRAINT iclock_privatemessag_employee_id_e84a34c0_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_privatemessage iclock_privatemessag_message_id_e3145d3b_fk_iclock_sh; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_privatemessage
    ADD CONSTRAINT iclock_privatemessag_message_id_e3145d3b_fk_iclock_sh FOREIGN KEY (message_id) REFERENCES public.iclock_shortmessage(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_publicmessage iclock_publicmessage_message_id_7d125e28_fk_iclock_sh; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_publicmessage
    ADD CONSTRAINT iclock_publicmessage_message_id_7d125e28_fk_iclock_sh FOREIGN KEY (message_id) REFERENCES public.iclock_shortmessage(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_publicmessage iclock_publicmessage_terminal_id_c3b5e4cf_fk_iclock_terminal_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_publicmessage
    ADD CONSTRAINT iclock_publicmessage_terminal_id_c3b5e4cf_fk_iclock_terminal_id FOREIGN KEY (terminal_id) REFERENCES public.iclock_terminal(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_terminal iclock_terminal_area_id_c019c6f0_fk_personnel_area_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminal
    ADD CONSTRAINT iclock_terminal_area_id_c019c6f0_fk_personnel_area_id FOREIGN KEY (area_id) REFERENCES public.personnel_area(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_terminalcommandlog iclock_terminalcomma_terminal_id_35ea8b2b_fk_iclock_te; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminalcommandlog
    ADD CONSTRAINT iclock_terminalcomma_terminal_id_35ea8b2b_fk_iclock_te FOREIGN KEY (terminal_id) REFERENCES public.iclock_terminal(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_terminalcommand iclock_terminalcomma_terminal_id_3dcf836f_fk_iclock_te; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminalcommand
    ADD CONSTRAINT iclock_terminalcomma_terminal_id_3dcf836f_fk_iclock_te FOREIGN KEY (terminal_id) REFERENCES public.iclock_terminal(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_terminallog iclock_terminallog_terminal_id_667b3ea7_fk_iclock_terminal_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminallog
    ADD CONSTRAINT iclock_terminallog_terminal_id_667b3ea7_fk_iclock_terminal_id FOREIGN KEY (terminal_id) REFERENCES public.iclock_terminal(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_terminalparameter iclock_terminalparam_terminal_id_443872e3_fk_iclock_te; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminalparameter
    ADD CONSTRAINT iclock_terminalparam_terminal_id_443872e3_fk_iclock_te FOREIGN KEY (terminal_id) REFERENCES public.iclock_terminal(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_terminaluploadlog iclock_terminaluploa_terminal_id_9c9a7664_fk_iclock_te; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminaluploadlog
    ADD CONSTRAINT iclock_terminaluploa_terminal_id_9c9a7664_fk_iclock_te FOREIGN KEY (terminal_id) REFERENCES public.iclock_terminal(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_terminalworkcode iclock_terminalworkc_company_id_77625f26_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_terminalworkcode
    ADD CONSTRAINT iclock_terminalworkc_company_id_77625f26_fk_personnel FOREIGN KEY (company_id) REFERENCES public.personnel_company(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_transaction iclock_transaction_emp_id_60fa3521_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_transaction
    ADD CONSTRAINT iclock_transaction_emp_id_60fa3521_fk_personnel_employee_id FOREIGN KEY (emp_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_transaction iclock_transaction_terminal_id_451c81c2_fk_iclock_terminal_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_transaction
    ADD CONSTRAINT iclock_transaction_terminal_id_451c81c2_fk_iclock_terminal_id FOREIGN KEY (terminal_id) REFERENCES public.iclock_terminal(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: iclock_transactionproofcmd iclock_transactionpr_terminal_id_08b81e1e_fk_iclock_te; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iclock_transactionproofcmd
    ADD CONSTRAINT iclock_transactionpr_terminal_id_08b81e1e_fk_iclock_te FOREIGN KEY (terminal_id) REFERENCES public.iclock_terminal(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: meeting_meetingentity_attender meeting_meetingentit_employee_id_ee898064_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingentity_attender
    ADD CONSTRAINT meeting_meetingentit_employee_id_ee898064_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: meeting_meetingentity_attender meeting_meetingentit_meetingentity_id_b96dbc7d_fk_meeting_m; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingentity_attender
    ADD CONSTRAINT meeting_meetingentit_meetingentity_id_b96dbc7d_fk_meeting_m FOREIGN KEY (meetingentity_id) REFERENCES public.meeting_meetingentity(workflowinstance_ptr_id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: meeting_meetingentity meeting_meetingentit_room_id_bc2c738e_fk_meeting_m; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingentity
    ADD CONSTRAINT meeting_meetingentit_room_id_bc2c738e_fk_meeting_m FOREIGN KEY (room_id) REFERENCES public.meeting_meetingroom(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: meeting_meetingentity meeting_meetingentit_workflowinstance_ptr_dbd9ab40_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingentity
    ADD CONSTRAINT meeting_meetingentit_workflowinstance_ptr_dbd9ab40_fk_workflow_ FOREIGN KEY (workflowinstance_ptr_id) REFERENCES public.workflow_workflowinstance(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: meeting_meetingmanuallog meeting_meetingmanua_meeting_id_a672eaaf_fk_meeting_m; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingmanuallog
    ADD CONSTRAINT meeting_meetingmanua_meeting_id_a672eaaf_fk_meeting_m FOREIGN KEY (meeting_id) REFERENCES public.meeting_meetingentity(workflowinstance_ptr_id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: meeting_meetingmanuallog meeting_meetingmanua_workflowinstance_ptr_bd514862_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingmanuallog
    ADD CONSTRAINT meeting_meetingmanua_workflowinstance_ptr_bd514862_fk_workflow_ FOREIGN KEY (workflowinstance_ptr_id) REFERENCES public.workflow_workflowinstance(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: meeting_meetingpayloadbase meeting_meetingpaylo_emp_id_ed6ec148_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingpayloadbase
    ADD CONSTRAINT meeting_meetingpaylo_emp_id_ed6ec148_fk_personnel FOREIGN KEY (emp_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: meeting_meetingpayloadbase meeting_meetingpaylo_meeting_id_ca9d20cc_fk_meeting_m; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingpayloadbase
    ADD CONSTRAINT meeting_meetingpaylo_meeting_id_ca9d20cc_fk_meeting_m FOREIGN KEY (meeting_id) REFERENCES public.meeting_meetingentity(workflowinstance_ptr_id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: meeting_meetingroomdevice meeting_meetingroomd_device_id_a09e8a7d_fk_iclock_te; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingroomdevice
    ADD CONSTRAINT meeting_meetingroomd_device_id_a09e8a7d_fk_iclock_te FOREIGN KEY (device_id) REFERENCES public.iclock_terminal(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: meeting_meetingroomdevice meeting_meetingroomd_room_id_e000d78d_fk_meeting_m; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingroomdevice
    ADD CONSTRAINT meeting_meetingroomd_room_id_e000d78d_fk_meeting_m FOREIGN KEY (room_id) REFERENCES public.meeting_meetingroom(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: meeting_meetingtransaction meeting_meetingtrans_emp_id_fbcdd686_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingtransaction
    ADD CONSTRAINT meeting_meetingtrans_emp_id_fbcdd686_fk_personnel FOREIGN KEY (emp_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: meeting_meetingtransaction meeting_meetingtrans_meeting_id_e4e505e5_fk_meeting_m; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingtransaction
    ADD CONSTRAINT meeting_meetingtrans_meeting_id_e4e505e5_fk_meeting_m FOREIGN KEY (meeting_id) REFERENCES public.meeting_meetingentity(workflowinstance_ptr_id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: meeting_meetingtransaction meeting_meetingtrans_terminal_id_047426f2_fk_iclock_te; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.meeting_meetingtransaction
    ADD CONSTRAINT meeting_meetingtrans_terminal_id_047426f2_fk_iclock_te FOREIGN KEY (terminal_id) REFERENCES public.iclock_terminal(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: mobile_announcement mobile_announcement_admin_id_6af3868c_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_announcement
    ADD CONSTRAINT mobile_announcement_admin_id_6af3868c_fk_auth_user_id FOREIGN KEY (admin_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: mobile_announcement mobile_announcement_init_sender_id_2f5e35bd_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_announcement
    ADD CONSTRAINT mobile_announcement_init_sender_id_2f5e35bd_fk_personnel FOREIGN KEY (init_sender_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: mobile_announcement mobile_announcement_receiver_id_ddf2a860_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_announcement
    ADD CONSTRAINT mobile_announcement_receiver_id_ddf2a860_fk_personnel FOREIGN KEY (receiver_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: mobile_appnotification mobile_appnotificati_init_sender_id_d8aff845_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_appnotification
    ADD CONSTRAINT mobile_appnotificati_init_sender_id_d8aff845_fk_personnel FOREIGN KEY (init_sender_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: mobile_appnotification mobile_appnotificati_receiver_id_90c4a355_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_appnotification
    ADD CONSTRAINT mobile_appnotificati_receiver_id_90c4a355_fk_personnel FOREIGN KEY (receiver_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: mobile_appnotification mobile_appnotification_admin_id_29c27197_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_appnotification
    ADD CONSTRAINT mobile_appnotification_admin_id_29c27197_fk_auth_user_id FOREIGN KEY (admin_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: mobile_gpsfordepartment mobile_gpsfordepartm_department_id_988ccf22_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_gpsfordepartment
    ADD CONSTRAINT mobile_gpsfordepartm_department_id_988ccf22_fk_personnel FOREIGN KEY (department_id) REFERENCES public.personnel_department(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: mobile_gpsfordepartment_location mobile_gpsfordepartm_gpsfordepartment_id_23e9af3a_fk_mobile_gp; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_gpsfordepartment_location
    ADD CONSTRAINT mobile_gpsfordepartm_gpsfordepartment_id_23e9af3a_fk_mobile_gp FOREIGN KEY (gpsfordepartment_id) REFERENCES public.mobile_gpsfordepartment(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: mobile_gpsfordepartment_location mobile_gpsfordepartm_gpslocation_id_48b82e9e_fk_mobile_gp; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_gpsfordepartment_location
    ADD CONSTRAINT mobile_gpsfordepartm_gpslocation_id_48b82e9e_fk_mobile_gp FOREIGN KEY (gpslocation_id) REFERENCES public.mobile_gpslocation(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: mobile_gpsforemployee mobile_gpsforemploye_employee_id_982b7cef_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_gpsforemployee
    ADD CONSTRAINT mobile_gpsforemploye_employee_id_982b7cef_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: mobile_gpsforemployee_location mobile_gpsforemploye_gpsforemployee_id_a52023d5_fk_mobile_gp; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_gpsforemployee_location
    ADD CONSTRAINT mobile_gpsforemploye_gpsforemployee_id_a52023d5_fk_mobile_gp FOREIGN KEY (gpsforemployee_id) REFERENCES public.mobile_gpsforemployee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: mobile_gpsforemployee_location mobile_gpsforemploye_gpslocation_id_497a214f_fk_mobile_gp; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_gpsforemployee_location
    ADD CONSTRAINT mobile_gpsforemploye_gpslocation_id_497a214f_fk_mobile_gp FOREIGN KEY (gpslocation_id) REFERENCES public.mobile_gpslocation(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: mobile_mobileapirequestlog mobile_mobileapirequ_user_id_dfd3ded1_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mobile_mobileapirequestlog
    ADD CONSTRAINT mobile_mobileapirequ_user_id_dfd3ded1_fk_personnel FOREIGN KEY (user_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_emploan payroll_emploan_employee_id_97a251ef_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_emploan
    ADD CONSTRAINT payroll_emploan_employee_id_97a251ef_fk_personnel_employee_id FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_emppayrollprofile payroll_emppayrollpr_employee_id_6c97078c_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_emppayrollprofile
    ADD CONSTRAINT payroll_emppayrollpr_employee_id_6c97078c_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_exceptionformula payroll_exceptionformula_pay_code_id_97609b51_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_exceptionformula
    ADD CONSTRAINT payroll_exceptionformula_pay_code_id_97609b51_fk_att_paycode_id FOREIGN KEY (pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_extradeduction payroll_extradeducti_employee_id_53072441_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_extradeduction
    ADD CONSTRAINT payroll_extradeducti_employee_id_53072441_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_extraincrease payroll_extraincreas_employee_id_f902e6bb_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_extraincrease
    ADD CONSTRAINT payroll_extraincreas_employee_id_f902e6bb_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_leaveformula payroll_leaveformula_pay_code_id_63c7b4bd_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_leaveformula
    ADD CONSTRAINT payroll_leaveformula_pay_code_id_63c7b4bd_fk_att_paycode_id FOREIGN KEY (pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_overtimeformula payroll_overtimeformula_pay_code_id_36d2f10e_fk_att_paycode_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_overtimeformula
    ADD CONSTRAINT payroll_overtimeformula_pay_code_id_36d2f10e_fk_att_paycode_id FOREIGN KEY (pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_payrollpayload payroll_payrollpaylo_employee_id_bc868f2b_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_payrollpayload
    ADD CONSTRAINT payroll_payrollpaylo_employee_id_bc868f2b_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_payrollpayloadpaycode payroll_payrollpaylo_pay_code_id_c057af1f_fk_att_payco; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_payrollpayloadpaycode
    ADD CONSTRAINT payroll_payrollpaylo_pay_code_id_c057af1f_fk_att_payco FOREIGN KEY (pay_code_id) REFERENCES public.att_paycode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_payrollpayloadpaycode payroll_payrollpaylo_payload_id_f085c4e8_fk_payroll_p; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_payrollpayloadpaycode
    ADD CONSTRAINT payroll_payrollpaylo_payload_id_f085c4e8_fk_payroll_p FOREIGN KEY (payload_id) REFERENCES public.payroll_payrollpayload(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_reimbursement payroll_reimbursemen_employee_id_c4bbde36_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_reimbursement
    ADD CONSTRAINT payroll_reimbursemen_employee_id_c4bbde36_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_salaryadvance payroll_salaryadvanc_employee_id_2abd43e5_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salaryadvance
    ADD CONSTRAINT payroll_salaryadvanc_employee_id_2abd43e5_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_salarystructure_deductionformula payroll_salarystruct_deductionformula_id_b174d5b6_fk_payroll_d; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_deductionformula
    ADD CONSTRAINT payroll_salarystruct_deductionformula_id_b174d5b6_fk_payroll_d FOREIGN KEY (deductionformula_id) REFERENCES public.payroll_deductionformula(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_salarystructure payroll_salarystruct_employee_id_98996e15_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure
    ADD CONSTRAINT payroll_salarystruct_employee_id_98996e15_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_salarystructure_exceptionformula payroll_salarystruct_exceptionformula_id_8f6dadb3_fk_payroll_e; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_exceptionformula
    ADD CONSTRAINT payroll_salarystruct_exceptionformula_id_8f6dadb3_fk_payroll_e FOREIGN KEY (exceptionformula_id) REFERENCES public.payroll_exceptionformula(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_salarystructure_increasementformula payroll_salarystruct_increasementformula__3cd77082_fk_payroll_i; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_increasementformula
    ADD CONSTRAINT payroll_salarystruct_increasementformula__3cd77082_fk_payroll_i FOREIGN KEY (increasementformula_id) REFERENCES public.payroll_increasementformula(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_salarystructure_leaveformula payroll_salarystruct_leaveformula_id_049f9024_fk_payroll_l; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_leaveformula
    ADD CONSTRAINT payroll_salarystruct_leaveformula_id_049f9024_fk_payroll_l FOREIGN KEY (leaveformula_id) REFERENCES public.payroll_leaveformula(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_salarystructure_overtimeformula payroll_salarystruct_overtimeformula_id_40ad89ef_fk_payroll_o; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_overtimeformula
    ADD CONSTRAINT payroll_salarystruct_overtimeformula_id_40ad89ef_fk_payroll_o FOREIGN KEY (overtimeformula_id) REFERENCES public.payroll_overtimeformula(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_salarystructure_exceptionformula payroll_salarystruct_salarystructure_id_3c087208_fk_payroll_s; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_exceptionformula
    ADD CONSTRAINT payroll_salarystruct_salarystructure_id_3c087208_fk_payroll_s FOREIGN KEY (salarystructure_id) REFERENCES public.payroll_salarystructure(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_salarystructure_deductionformula payroll_salarystruct_salarystructure_id_5ca7cdb5_fk_payroll_s; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_deductionformula
    ADD CONSTRAINT payroll_salarystruct_salarystructure_id_5ca7cdb5_fk_payroll_s FOREIGN KEY (salarystructure_id) REFERENCES public.payroll_salarystructure(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_salarystructure_overtimeformula payroll_salarystruct_salarystructure_id_64f75042_fk_payroll_s; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_overtimeformula
    ADD CONSTRAINT payroll_salarystruct_salarystructure_id_64f75042_fk_payroll_s FOREIGN KEY (salarystructure_id) REFERENCES public.payroll_salarystructure(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_salarystructure_increasementformula payroll_salarystruct_salarystructure_id_8752401c_fk_payroll_s; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_increasementformula
    ADD CONSTRAINT payroll_salarystruct_salarystructure_id_8752401c_fk_payroll_s FOREIGN KEY (salarystructure_id) REFERENCES public.payroll_salarystructure(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: payroll_salarystructure_leaveformula payroll_salarystruct_salarystructure_id_cf98fdd7_fk_payroll_s; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payroll_salarystructure_leaveformula
    ADD CONSTRAINT payroll_salarystruct_salarystructure_id_cf98fdd7_fk_payroll_s FOREIGN KEY (salarystructure_id) REFERENCES public.payroll_salarystructure(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_area personnel_area_company_id_59750eb5_fk_personnel_company_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_area
    ADD CONSTRAINT personnel_area_company_id_59750eb5_fk_personnel_company_id FOREIGN KEY (company_id) REFERENCES public.personnel_company(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_area personnel_area_parent_area_id_39028fda_fk_personnel_area_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_area
    ADD CONSTRAINT personnel_area_parent_area_id_39028fda_fk_personnel_area_id FOREIGN KEY (parent_area_id) REFERENCES public.personnel_area(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_assignareaemployee personnel_assignarea_area_id_6f049d6a_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_assignareaemployee
    ADD CONSTRAINT personnel_assignarea_area_id_6f049d6a_fk_personnel FOREIGN KEY (area_id) REFERENCES public.personnel_area(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_assignareaemployee personnel_assignarea_employee_id_a3d4dd25_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_assignareaemployee
    ADD CONSTRAINT personnel_assignarea_employee_id_a3d4dd25_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_department personnel_department_company_id_00867fd8_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_department
    ADD CONSTRAINT personnel_department_company_id_00867fd8_fk_personnel FOREIGN KEY (company_id) REFERENCES public.personnel_company(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_department personnel_department_dept_manager_id_c5124a7d_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_department
    ADD CONSTRAINT personnel_department_dept_manager_id_c5124a7d_fk_personnel FOREIGN KEY (dept_manager_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_department personnel_department_parent_dept_id_d0b44024_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_department
    ADD CONSTRAINT personnel_department_parent_dept_id_d0b44024_fk_personnel FOREIGN KEY (parent_dept_id) REFERENCES public.personnel_department(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_employee_area personnel_employee_a_employee_id_8e5cec21_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employee_area
    ADD CONSTRAINT personnel_employee_a_employee_id_8e5cec21_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_employee_area personnel_employee_area_area_id_64c21925_fk_personnel_area_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employee_area
    ADD CONSTRAINT personnel_employee_area_area_id_64c21925_fk_personnel_area_id FOREIGN KEY (area_id) REFERENCES public.personnel_area(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_employee personnel_employee_company_id_95b3fd72_fk_personnel_company_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employee
    ADD CONSTRAINT personnel_employee_company_id_95b3fd72_fk_personnel_company_id FOREIGN KEY (company_id) REFERENCES public.personnel_company(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_employee personnel_employee_department_id_068bbd08_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employee
    ADD CONSTRAINT personnel_employee_department_id_068bbd08_fk_personnel FOREIGN KEY (department_id) REFERENCES public.personnel_department(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_employee_flow_role personnel_employee_f_employee_id_c27f8a56_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employee_flow_role
    ADD CONSTRAINT personnel_employee_f_employee_id_c27f8a56_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_employee_flow_role personnel_employee_f_workflowrole_id_4704db32_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employee_flow_role
    ADD CONSTRAINT personnel_employee_f_workflowrole_id_4704db32_fk_workflow_ FOREIGN KEY (workflowrole_id) REFERENCES public.workflow_workflowrole(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_employee personnel_employee_position_id_c9321343_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employee
    ADD CONSTRAINT personnel_employee_position_id_c9321343_fk_personnel FOREIGN KEY (position_id) REFERENCES public.personnel_position(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_employee personnel_employee_superior_id_ad6e1c47_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employee
    ADD CONSTRAINT personnel_employee_superior_id_ad6e1c47_fk_personnel FOREIGN KEY (superior_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_employeecalendar personnel_employeeca_employee_id_165e0779_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employeecalendar
    ADD CONSTRAINT personnel_employeeca_employee_id_165e0779_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_employeecertification personnel_employeece_certification_id_faabed40_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employeecertification
    ADD CONSTRAINT personnel_employeece_certification_id_faabed40_fk_personnel FOREIGN KEY (certification_id) REFERENCES public.personnel_certification(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_employeecertification personnel_employeece_employee_id_b7bd3867_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employeecertification
    ADD CONSTRAINT personnel_employeece_employee_id_b7bd3867_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_employeeextrainfo personnel_employeeex_employee_id_41e2b04d_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employeeextrainfo
    ADD CONSTRAINT personnel_employeeex_employee_id_41e2b04d_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_employeeprofile personnel_employeepr_emp_id_3a69c313_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employeeprofile
    ADD CONSTRAINT personnel_employeepr_emp_id_3a69c313_fk_personnel FOREIGN KEY (emp_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_employment personnel_employment_employee_id_f797c7d9_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_employment
    ADD CONSTRAINT personnel_employment_employee_id_f797c7d9_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_position personnel_position_company_id_f06c5d2a_fk_personnel_company_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_position
    ADD CONSTRAINT personnel_position_company_id_f06c5d2a_fk_personnel_company_id FOREIGN KEY (company_id) REFERENCES public.personnel_company(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_position personnel_position_parent_position_id_a496a36b_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_position
    ADD CONSTRAINT personnel_position_parent_position_id_a496a36b_fk_personnel FOREIGN KEY (parent_position_id) REFERENCES public.personnel_position(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: personnel_resign personnel_resign_employee_id_dd9b7e08_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.personnel_resign
    ADD CONSTRAINT personnel_resign_employee_id_dd9b7e08_fk_personnel_employee_id FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: rest_framework_tracking_apirequestlog rest_framework_track_user_id_671b70b7_fk_auth_user; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.rest_framework_tracking_apirequestlog
    ADD CONSTRAINT rest_framework_track_user_id_671b70b7_fk_auth_user FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: staff_stafftoken staff_stafftoken_user_id_39c937fa_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.staff_stafftoken
    ADD CONSTRAINT staff_stafftoken_user_id_39c937fa_fk_personnel_employee_id FOREIGN KEY (user_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_reservation visitor_reservation_cert_type_id_4f047f2a_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_reservation
    ADD CONSTRAINT visitor_reservation_cert_type_id_4f047f2a_fk_personnel FOREIGN KEY (cert_type_id) REFERENCES public.personnel_certification(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_reservation visitor_reservation_visit_department_id_2d293e10_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_reservation
    ADD CONSTRAINT visitor_reservation_visit_department_id_2d293e10_fk_personnel FOREIGN KEY (visit_department_id) REFERENCES public.personnel_department(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_reservation visitor_reservation_visit_reason_id_c9ac83ac_fk_visitor_r; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_reservation
    ADD CONSTRAINT visitor_reservation_visit_reason_id_c9ac83ac_fk_visitor_r FOREIGN KEY (visit_reason_id) REFERENCES public.visitor_reason(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_reservation visitor_reservation_workflowinstance_ptr_3787bcd6_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_reservation
    ADD CONSTRAINT visitor_reservation_workflowinstance_ptr_3787bcd6_fk_workflow_ FOREIGN KEY (workflowinstance_ptr_id) REFERENCES public.workflow_workflowinstance(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_visitor_acc_groups visitor_visitor_acc__accgroups_id_b1487149_fk_acc_accgr; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitor_acc_groups
    ADD CONSTRAINT visitor_visitor_acc__accgroups_id_b1487149_fk_acc_accgr FOREIGN KEY (accgroups_id) REFERENCES public.acc_accgroups(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_visitor_acc_groups visitor_visitor_acc__visitor_id_8ce09562_fk_visitor_v; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitor_acc_groups
    ADD CONSTRAINT visitor_visitor_acc__visitor_id_8ce09562_fk_visitor_v FOREIGN KEY (visitor_id) REFERENCES public.visitor_visitor(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_visitor_area visitor_visitor_area_area_id_b402c047_fk_personnel_area_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitor_area
    ADD CONSTRAINT visitor_visitor_area_area_id_b402c047_fk_personnel_area_id FOREIGN KEY (area_id) REFERENCES public.personnel_area(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_visitor_area visitor_visitor_area_visitor_id_98d7ed05_fk_visitor_visitor_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitor_area
    ADD CONSTRAINT visitor_visitor_area_visitor_id_98d7ed05_fk_visitor_visitor_id FOREIGN KEY (visitor_id) REFERENCES public.visitor_visitor(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_visitor visitor_visitor_cert_type_id_f62ea604_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitor
    ADD CONSTRAINT visitor_visitor_cert_type_id_f62ea604_fk_personnel FOREIGN KEY (cert_type_id) REFERENCES public.personnel_certification(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_visitor visitor_visitor_visit_department_id_f7dbdcb4_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitor
    ADD CONSTRAINT visitor_visitor_visit_department_id_f7dbdcb4_fk_personnel FOREIGN KEY (visit_department_id) REFERENCES public.personnel_department(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_visitor visitor_visitor_visit_reason_id_4b9a2d23_fk_visitor_reason_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitor
    ADD CONSTRAINT visitor_visitor_visit_reason_id_4b9a2d23_fk_visitor_reason_id FOREIGN KEY (visit_reason_id) REFERENCES public.visitor_reason(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_visitor visitor_visitor_visited_id_8043a7ea_fk_personnel_employee_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitor
    ADD CONSTRAINT visitor_visitor_visited_id_8043a7ea_fk_personnel_employee_id FOREIGN KEY (visited_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_visitorbiodata visitor_visitorbioda_visitor_id_b944ed37_fk_visitor_v; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitorbiodata
    ADD CONSTRAINT visitor_visitorbioda_visitor_id_b944ed37_fk_visitor_v FOREIGN KEY (visitor_id) REFERENCES public.visitor_visitor(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_visitorbiophoto visitor_visitorbioph_visitor_id_9816daf7_fk_visitor_v; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitorbiophoto
    ADD CONSTRAINT visitor_visitorbioph_visitor_id_9816daf7_fk_visitor_v FOREIGN KEY (visitor_id) REFERENCES public.visitor_visitor(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_visitorlog visitor_visitorlog_visitor_id_ebaafde1_fk_visitor_visitor_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitorlog
    ADD CONSTRAINT visitor_visitorlog_visitor_id_ebaafde1_fk_visitor_visitor_id FOREIGN KEY (visitor_id) REFERENCES public.visitor_visitor(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_visitortransaction visitor_visitortrans_terminal_id_7527ef69_fk_iclock_te; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitortransaction
    ADD CONSTRAINT visitor_visitortrans_terminal_id_7527ef69_fk_iclock_te FOREIGN KEY (terminal_id) REFERENCES public.iclock_terminal(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: visitor_visitortransaction visitor_visitortrans_visitor_id_0ee95624_fk_visitor_v; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitor_visitortransaction
    ADD CONSTRAINT visitor_visitortrans_visitor_id_0ee95624_fk_visitor_v FOREIGN KEY (visitor_id) REFERENCES public.visitor_visitor(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: workflow_nodeinstance workflow_nodeinstanc_approver_employee_id_d36cd45d_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_nodeinstance
    ADD CONSTRAINT workflow_nodeinstanc_approver_employee_id_d36cd45d_fk_personnel FOREIGN KEY (approver_employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: workflow_nodeinstance workflow_nodeinstanc_workflow_instance_id_afe84fe4_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_nodeinstance
    ADD CONSTRAINT workflow_nodeinstanc_workflow_instance_id_afe84fe4_fk_workflow_ FOREIGN KEY (workflow_instance_id) REFERENCES public.workflow_workflowinstance(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: workflow_nodeinstance workflow_nodeinstanc_workflow_node_id_166f36c4_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_nodeinstance
    ADD CONSTRAINT workflow_nodeinstanc_workflow_node_id_166f36c4_fk_workflow_ FOREIGN KEY (workflow_node_id) REFERENCES public.workflow_workflownode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: workflow_workflowengine workflow_workfloweng_applicant_position_i_8a65e03a_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflowengine
    ADD CONSTRAINT workflow_workfloweng_applicant_position_i_8a65e03a_fk_personnel FOREIGN KEY (applicant_position_id) REFERENCES public.personnel_position(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: workflow_workflowengine workflow_workfloweng_content_type_id_f7345c20_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflowengine
    ADD CONSTRAINT workflow_workfloweng_content_type_id_f7345c20_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: workflow_workflowengine workflow_workfloweng_departments_id_0f06d4c7_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflowengine
    ADD CONSTRAINT workflow_workfloweng_departments_id_0f06d4c7_fk_personnel FOREIGN KEY (departments_id) REFERENCES public.personnel_department(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: workflow_workflowengine_employee workflow_workfloweng_employee_id_803a409e_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflowengine_employee
    ADD CONSTRAINT workflow_workfloweng_employee_id_803a409e_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: workflow_workflowengine_employee workflow_workfloweng_workflowengine_id_6ebcc5f2_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflowengine_employee
    ADD CONSTRAINT workflow_workfloweng_workflowengine_id_6ebcc5f2_fk_workflow_ FOREIGN KEY (workflowengine_id) REFERENCES public.workflow_workflowengine(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: workflow_workflowinstance workflow_workflowins_employee_id_c7cff08e_fk_personnel; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflowinstance
    ADD CONSTRAINT workflow_workflowins_employee_id_c7cff08e_fk_personnel FOREIGN KEY (employee_id) REFERENCES public.personnel_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: workflow_workflowinstance workflow_workflowins_workflow_engine_id_1e6ac40f_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflowinstance
    ADD CONSTRAINT workflow_workflowins_workflow_engine_id_1e6ac40f_fk_workflow_ FOREIGN KEY (workflow_engine_id) REFERENCES public.workflow_workflowengine(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: workflow_workflownode workflow_workflownod_workflow_engine_id_04c8f470_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflownode
    ADD CONSTRAINT workflow_workflownod_workflow_engine_id_04c8f470_fk_workflow_ FOREIGN KEY (workflow_engine_id) REFERENCES public.workflow_workflowengine(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: workflow_workflownode_notifier workflow_workflownod_workflownode_id_57298016_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflownode_notifier
    ADD CONSTRAINT workflow_workflownod_workflownode_id_57298016_fk_workflow_ FOREIGN KEY (workflownode_id) REFERENCES public.workflow_workflownode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: workflow_workflownode_approver workflow_workflownod_workflownode_id_d814c941_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflownode_approver
    ADD CONSTRAINT workflow_workflownod_workflownode_id_d814c941_fk_workflow_ FOREIGN KEY (workflownode_id) REFERENCES public.workflow_workflownode(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: workflow_workflownode_notifier workflow_workflownod_workflowrole_id_73de7fc2_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflownode_notifier
    ADD CONSTRAINT workflow_workflownod_workflowrole_id_73de7fc2_fk_workflow_ FOREIGN KEY (workflowrole_id) REFERENCES public.workflow_workflowrole(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: workflow_workflownode_approver workflow_workflownod_workflowrole_id_c8e00d42_fk_workflow_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workflow_workflownode_approver
    ADD CONSTRAINT workflow_workflownod_workflowrole_id_c8e00d42_fk_workflow_ FOREIGN KEY (workflowrole_id) REFERENCES public.workflow_workflowrole(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: SCHEMA public; Type: ACL; Schema: -; Owner: Administrator
--

GRANT ALL ON SCHEMA public TO PUBLIC;


--
--

