-- Data for Name: user_passkeys; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.user_passkeys (id, user_id, credential_id, public_key, created_at, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: user_passwords; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.user_passwords (user_id, password_hash, algo, expires, isdeleted, updatedat, must_rotate) FROM stdin;
0199b218-d6f0-7c75-9ed7-eef1ea2083b2	$2y$10$LXQLh8EZNL673xCqpDQvoetjDbvMLqUWoV5iaQXEnf1RKnb4XgVly	bcrypt	\N	f	2025-06-24 02:47:10+00	f
0199b218-d6f1-7cc0-a422-331f209929ea	$2y$10$2cmi4ZO0tvih84IwBCxMQOAtSbnsG0zP3efrorOEBev5VEfscBF3.	bcrypt	\N	f	2025-06-24 03:04:09+00	f
0199b218-d6f1-7bfe-aeb9-81a9f066e6e1	$2y$10$CJT9vCN43iIDHXFYfmyHmut/aZ2UtS9TvEp5zbhLAg5KYMdC48DHS	bcrypt	\N	f	2025-06-24 02:54:00+00	f
0199b218-d6f1-7c25-b6fe-6adebe644c36	$2y$10$3mhmTxtQWWZ/n9h9Bwth4u67iOlUk9LImM7aI21Qk5AY/G.gxVJ.K	bcrypt	\N	f	2025-06-24 02:10:31+00	f
0199b218-d6f1-795b-959f-275b3f15b92f	$2y$10$Nhkza6aVP/KtnFIh5V5M9eyFj.X3Tbuz19Rp7jeWJLgvzMnn06zAu	bcrypt	\N	f	2025-06-24 03:00:00+00	f
0199b218-d6f1-7e4b-b32d-0f6289b10cdc	$2y$10$FSVP5K0cor33Sbm7PG0H0eQFC6zncWkNJBoOChjsbjuk9q7Tk5nay	bcrypt	\N	f	2025-08-04 22:24:42+00	f
0199b218-d6f1-722b-b1ed-d2bb0902d701	$2y$10$YQaViIWRw.o.IdngkL8vU.kwYYkkhPWFhN2LOyhK68iDjff7rJwTS	bcrypt	\N	f	2025-06-24 02:48:10+00	f
0199b218-d6f1-738d-9c97-5c13713cc58f	$2y$10$Zd/s9AOq8x7VPIl865bhY.9efLVky2QXxsVOTB58VFrhMShljYYUm	bcrypt	\N	f	2025-06-24 02:57:01+00	f
0199b218-d6f1-7782-bacb-4fa03ae90636	$2y$10$s6tSZvRgGGAWff8MxGygHeSEkih8eyEfd7E.78tZxKf2bPI25v7Ci	bcrypt	\N	f	2025-06-24 02:56:00+00	f
0199b218-d6f1-79f5-ab82-c15e8b25833c	$2y$10$MB6qs0aOnOJxqdLNHNdpNerk9cLugq/KWTLUur.3COK5bpRpljgZO	bcrypt	\N	f	2025-06-24 03:16:09+00	f
0199b218-d6f1-7097-a304-6b4fc0a4c105	$2y$10$NA5hsgEZeyW/4On4sUOtxOG93ZmhtR/Su1xfxbACfLh0gpMHA9YbC	bcrypt	\N	f	2025-06-24 02:16:01+00	f
0199b218-d6f1-73c3-b347-55c9e40f860f	$2y$10$c1jRyupDPCCNeWKXeALncu3ib3UuEHeOj8FF3L.Wu1dE1r0UCHyYG	bcrypt	\N	f	2025-08-04 22:51:25+00	f
0199b218-d6f1-7041-a2b7-6d9add331094	$2y$10$BOHKE17DqQ3q0DuYjsCq.u9NnBjjK7YIFA6Tjbzv8faXG89Uck8hW	bcrypt	\N	f	2025-06-24 03:31:40+00	f
0199b218-d6f1-75e3-a2fa-5b4b3ae27e4a	$2y$10$v/NOEWW20ZnDzTldk7nRqOczwIRSbBVKO1S2y9IwHHkSImha8XUmW	bcrypt	\N	f	2025-06-24 03:25:40+00	f
0199b218-d6f1-74ab-baea-fd375c9867e5	$2y$10$u4oLyJnUEjKmEM3hn6XyU.v/l6AUQbpMpbpdx2JGIPVSiCND0aBIm	bcrypt	\N	f	2025-06-26 04:00:19+00	f
0199b218-d6f1-76b3-aa9a-3764901134d9	$2y$10$jf7/wAbQbPGShEktST/9yesvARFqrl9bfSRuH1g7OiNZ02eBNOZAq	bcrypt	\N	f	2025-06-24 02:15:10+00	f
0199b218-d6f1-7ecf-a55e-2ffe43ac9137	$2y$10$wU5NKMLJoNxksi76j0mTP.7QDmhncTawtOKFHkIv9482cSYp2105u	bcrypt	\N	f	2025-06-24 02:54:09+00	f
0199b218-d6f1-718e-accf-64bae92862f3	$2y$10$ATz4lqj/TBMPezZFg4MtBOrO1wy5VOBha8U3wsGpZYQHQvqjzVycu	bcrypt	\N	f	2025-06-26 04:47:35+00	f
0199b218-d6f1-7806-bce3-35e20d1c1619	$2y$10$xD./flEXcpp3F./RCButW.ZLVMRoVBFqpKOIdmt/CslrKwVyhOvra	bcrypt	\N	f	2025-06-24 03:08:00+00	f
0199b218-d6f1-7096-af4b-a72eff80cf9b	$2y$10$68jvKdnkCVSwQE.vlpJ3ZO2uRgcQEiYZZkqsACXA9ES1T0.6HXOeC	bcrypt	\N	f	2025-06-24 00:32:11+00	f
0199b218-d6f1-7073-9b79-6b0968709de8	$2y$10$8USSPbAPf8WzG3MwFGleCu3TefRvKtsxmHY2iCkG9zK/igjJbWRLy	bcrypt	\N	f	2025-06-24 02:20:02+00	f
0199b218-d6f1-778c-b188-59d68b26419c	$2y$10$/8eeDljnYmXZ9D92rzRy3ebFSAluTXb7iLRhB.gjpLoqzRIBJUfDq	bcrypt	\N	f	2025-06-24 00:47:43+00	f
0199b218-d6f1-7877-b7fa-b23b95be727f	$2y$10$zOeYyAO1PUf026c9cOfHI.9sSKM9u6peoZtFyYoZS53U4gaRkWxMK	bcrypt	\N	f	2025-06-26 04:34:31+00	f
0199b218-d6f1-7b72-91c0-83fe4c6b533b	$2y$10$MgxMOiWwGggSfxin4oe/u.GwdHH1vqGCLtaBAQKWnKW3UI1IVp1Fe	bcrypt	\N	f	2025-06-24 02:41:01+00	f
0199b218-d6f1-76fb-b024-3be69ca87bc6	$2y$10$aQ2lT1pR8rEogMete4oQqeRvjtkkp.uVN06rekjBP5fsOFqIIyA9i	bcrypt	\N	f	2025-06-24 02:32:40+00	f
0199b218-d6f1-72b3-9744-f87279f94f94	$2y$10$Y2hmRVQA4AVfoSVqtXu/jud790dNhNUbbd2Rjz3vaWUOmhbt4pTkK	bcrypt	\N	f	2025-06-24 03:15:09+00	f
0199b218-d6f1-7cca-b1c4-52eed7af00af	$2y$10$8i3IKvZM/0tSnJJgYiaCp.z9Rcityouz8Ntgl.GoKYDgSjF7xP1Wq	bcrypt	\N	f	2025-08-04 22:13:55+00	f
0199b218-d6f1-7d0c-8c3b-dfaf7bcb8d68	$2y$10$HY3QtsnEfvl5.8LboIsoYec1bQGz9tgjQ3bu.fHZTQzAbe/piG2tm	bcrypt	\N	f	2025-06-24 03:28:56+00	f
0199b218-d6f1-77fa-9aad-11897f9cf95c	$2y$10$.zmTTa/hAAK4GEyUOh8mTOEsZiuhCA1uMjr109npd1JWv8jsByf/S	bcrypt	\N	f	2025-06-24 00:44:44+00	f
0199b218-d6f1-7eea-941d-5d94235999ba	$2y$10$8gGUiMsXVmqLglaN2koZne151Z5K0aTr/znbyZBp8OSm1lpp3j1Cq	bcrypt	\N	f	2025-06-24 03:09:10+00	f
0199b218-d6f1-72ec-83cb-5aea63f97a74	$2y$10$i.8HRs42/LTMsTSnclir5eR5qASjHK3q2Z7IOMsdTy6eTjH5F1bXm	bcrypt	\N	f	2025-06-24 02:30:01+00	f
0199b218-d6f1-7719-8521-5af8ae2f74a3	$2y$10$JJZE5Y3C9Gke/L605IwyO.TAclEp9zj1sGeu8xWZD9WfufmCl5y6i	bcrypt	\N	f	2025-06-24 02:48:01+00	f
0199b218-d6f1-760a-9a47-32d39fab654b	$2y$10$nZ4pRHhF4EsaBR.N2HwsLeeUlZOTj5ZIKeOvjz2kO/VYdOZoaRiPK	bcrypt	\N	f	2025-06-24 00:34:40+00	f
0199b218-d6f1-79b1-89ad-641d409edcfc	$2y$10$/lcPF9lnIqfCVQFgS2jKLOthObQG4VfXT2x86oi90VCD9UsNwgiDe	bcrypt	\N	f	2025-06-24 02:49:10+00	f
0199b218-d6f1-77ac-8728-d78a2cf5fa8e	$2y$10$wBB79d1plJyOy5fwHMUBJuz9GqkMDH8PX6wMZjF1WHhzWbEtU9y.i	bcrypt	\N	f	2025-06-26 03:58:49+00	f
0199b218-d6f1-78b4-ba81-afc76ddd46ac	$2y$10$GnTheOMe4WKkNqHIwR2mxuaFI/CFDXw8L0.ySJzkNl6Iel3tchOjG	bcrypt	\N	f	2025-06-24 02:42:10+00	f
0199b218-d6f1-74f8-84f8-01ef657c3fc1	$2y$10$wNLXGYZNP18L7pyb6yec6ukzILViQTLRSU6xUqLSgmCm7vpvwO6dm	bcrypt	\N	f	2025-06-24 03:21:48+00	f
0199b218-d6f1-7165-8179-a0248ae8b0fe	$2y$10$8ZQmySwMj00liJHuVHuhmudHJm/yMawaLHb4EsT8Vy06PUZSYrSgK	bcrypt	\N	f	2025-06-24 00:30:18+00	f
0199b218-d6f1-7496-a8cb-94f6ba96add6	$2y$10$FbtlqTrCQPtdmpsfrsd9xuKhoEwdyv8sR1u3R3H/LLdlfD2RY3FnK	bcrypt	\N	f	2025-06-24 03:04:00+00	f
0199b218-d6f1-7650-8a14-4261368d01f8	$2y$10$e7vjPOcbOuYne/guQGlN6eNuRyqt.sQjsBsHV/i9uUVDZ3WQWMPdq	bcrypt	\N	f	2025-06-24 02:41:11+00	f
0199b218-d6f1-7084-8f06-b5dbb15b7fa9	$2y$10$RrSegTZIE9UKtNeRP67Bxe5Kj1/s0L7rvj4uOttFR67zpNTUJbcMy	bcrypt	\N	f	2025-06-24 03:06:00+00	f
0199b218-d6f1-7da5-aa1a-a58c8f5a4ed0	$2y$10$G3HdebLfWCHbR9f20PjEqeCXqUpPGYPqwYSBrG0evw/mQ0FLyh4fC	bcrypt	\N	f	2025-06-24 03:10:00+00	f
0199b218-d6f1-7676-ab63-8ddbe0516f0f	$2y$10$eLtzM9S0CFnpb6joQwvBC.DaDOdeNuxHrcIPK24JSbAkn76BeO1Za	bcrypt	\N	f	2025-06-24 03:03:00+00	f
0199b218-d6f1-732e-9019-6a58cb6af38e	$2y$10$/DmFMV4jX8sQDJPivobReupMrQ28ZmV8vJeBLAVETja57Tahm9fA.	bcrypt	\N	f	2025-06-24 03:20:01+00	f
0199b218-d6f1-7478-ae43-d35d31b85d13	$2y$10$ZjSkKZvvQpSA3WWqgNynjuV7TdebxDoI7YvPtbCdjjx72SvHbK2Fe	bcrypt	\N	f	2025-06-24 03:21:40+00	f
0199b218-d6f1-7512-a4a4-1c43cbcd247b	$2y$10$VknhQKId7IcjAt/OyUb1k.wA0Dyzycf5cyoltYX11t3ruUlCNvu6q	bcrypt	\N	f	2025-06-24 00:45:44+00	f
0199b218-d6f2-733b-89e6-d85ffb8c19a8	$2y$10$nZd9O/XC2Pm60BOYF9DFvOjP8qji736kUiSHcS8.UvQod.skZw2iu	bcrypt	\N	f	2025-06-24 02:43:10+00	f
0199b218-d6f2-771e-90b9-66a7b5087d9f	$2y$10$8KxBm2vcAvB8npxK9DzR8uA5Nowy8OMFRlxKOJfZClT14uNZdxqAi	bcrypt	\N	f	2025-06-24 00:31:40+00	f
0199b218-d6f2-71d6-9157-8b76022a1b4f	$2y$10$JO6F6IJ9fSQNpkFUv52xu.jImM6pY.1h2oQNQ2KsLpzqMdsasKxsG	bcrypt	\N	f	2025-06-24 02:47:01+00	f
0199b218-d6f2-7aaa-af91-9822ce7c31e9	$2y$10$uJUkzhtv/dy107WHz7yp1egReBYjeatn3KvQ/pS8c3MfZNnSS2CsK	bcrypt	\N	f	2025-06-24 00:48:43+00	f
0199b218-d6f2-7fe1-97d6-35483cc9d3bd	$2y$10$aqV4EcYkT2Av4SMIB4CS7eyoQlcyIegx9uVyLAGvPQebP540YiuHe	bcrypt	\N	f	2025-06-24 00:30:19+00	f
0199b218-d6f2-7245-9259-ace3dd324e6c	$2y$10$TL8jHfw3/LahXUmSWCEWHO5Yh/CkH8jlWSF7maAgh5pt170CbLzA.	bcrypt	\N	f	2025-06-24 03:18:00+00	f
0199b218-d6f2-7e28-a9a1-f379a560d7db	$2y$10$nBPL52f.K8ZAEanwNUQAQu35xnK6tbPcz5krqOnfIKGt0UU2jR9PC	bcrypt	\N	f	2025-06-24 03:34:24+00	f
0199b218-d6f2-7bc0-8d73-1d0750cafb96	$2y$10$kDcDmYyPI/9mxabtc.KHROZTzaeSDP0fwoGnzmBaSz7W1bYF/ydSm	bcrypt	\N	f	2025-06-24 02:37:01+00	f
0199b218-d6f2-77f9-a254-40bad0cbc6dc	$2y$10$HfwxwHjxw8OBPn2U0GwpIOCdi6SDnCyxyC4L45cbxXuEWagjgciqO	bcrypt	\N	f	2025-06-24 00:39:54+00	f
0199b218-d6f2-7cb3-85f2-0b2499eacdc2	$2y$10$u5CGrSj54kqjdinipPaNGOqJ7bCZINOZbR3BHuHhEufhPqQ0WxyuG	bcrypt	\N	f	2025-06-24 00:34:15+00	f
0199b218-d6f2-7a58-abe4-6b0c5b794e05	$2y$10$9IQo92OiVbfWOLRri5fMNOfaf2DiBw4Hrn3Npn80BFejEMWGCRGxe	bcrypt	\N	f	2025-06-24 03:35:48+00	f
0199b218-d6f2-71b8-813a-e2098d9154f8	$2y$10$5A0WGs5X0qO84YO0xpLOI.4OqaR5jtQZMWCsIaIg428L.I/XZPCZC	bcrypt	\N	f	2025-06-24 03:29:48+00	f
0199b218-d6f2-7375-ae58-96305972d882	$2y$10$/A1e8bcJeiqtiCq.rMy8KuRvrVnjq.Vb4NN3V/K.zWGuGkEYiXvp.	bcrypt	\N	f	2025-06-24 03:02:00+00	f
0199b218-d6f2-7ac3-92b1-cad60fb99d00	$2y$10$slUoVbYaP10QjPWbmEGvm.RL0uHSNArnQP.1s8624KxCM5ogsRwUK	bcrypt	\N	f	2025-06-24 03:10:09+00	f
0199b218-d6f2-7ff2-8da4-a874ec39004c	$2y$10$MghRBDriHfD7MYPMH4jBa.yvEqYhpindsY4W.eXezT4L7l5Op1GnG	bcrypt	\N	f	2025-06-24 03:17:48+00	f
0199b218-d6f2-7aa4-939e-cb80c6ddfb0e	$2y$10$LvbHxHK0z5HyimD3/gFJs.rLM.3874jcXavH4ZxE6yFYrbcC9J0VO	bcrypt	\N	f	2025-08-04 22:31:49+00	f
0199b218-d6f2-7645-b6fd-96e1d707806d	$2y$10$/svboeJqXd98ynhycrXUAu9bNHv0WSgxGu6IFTWlzZPBoSymBVSUa	bcrypt	\N	f	2025-06-24 02:59:00+00	f
0199b218-d6f2-79b0-97bf-b3181726e0bf	$2y$10$Pn9ZDb32cJfRn.WaQOJqMeLfGKas5JRGSlqFrTKFzydKlpDVQXWUu	bcrypt	\N	f	2025-06-24 03:19:48+00	f
0199b218-d6f2-7910-b640-73fee0352173	$2y$10$YLsib26jvh/aunEXMoarv.bAcMVnNhb28oIIYCR/cTB/WPE3QGJEu	bcrypt	\N	f	2025-06-24 02:12:31+00	f
0199b218-d6f2-7e9a-b8fa-34fe4f50e05b	$2y$10$MK.LMO60lLJ56eTbvWcRV.CZcgo/OzGqfKKxfq39FjxYWo4kBsuKy	bcrypt	\N	f	2025-06-24 03:14:01+00	f
0199b218-d6f2-7645-98e6-4a855db834bd	$2y$10$H9er4kdDpYADQkYhNExKuelMsjJkJFw//42xLhK66lo2Axoi.dc0y	bcrypt	\N	f	2025-06-26 04:02:49+00	f
0199b218-d6f2-72d8-a7e1-2dc97ae786ed	$2y$10$0YxY6biB0RciCxf2B7oOQOlCy.zYg7uQ1.FET/czyfVKV1Vdyn0OK	bcrypt	\N	f	2025-06-24 00:37:54+00	f
0199b218-d6f2-74d1-8e40-69af8ba5d94d	$2y$10$KyARO/eJbidQoFxrowOGMO2LAjHKzdENapnZUujiCoWrt7O7JstWm	bcrypt	\N	f	2025-06-26 03:12:11+00	f
0199b218-d6f2-7184-bbed-3f004ec6f53e	$2y$10$jEc/aFXGIFlCFuVv6GaHfuPZ5UsMdjSu7f6ZSCrO3fZYzY3.mH6Wq	bcrypt	\N	f	2025-06-24 03:00:09+00	f
0199b218-d6f2-72c2-807c-2e0906829137	$2y$10$9bb4gx9amYthZ846ZYaSy.o9gA5xCjeBo9pWm.KHUbGQ4i9LqvHnG	bcrypt	\N	f	2025-06-24 02:52:09+00	f
0199b218-d6f2-73f8-abbb-fa2631a3f5ca	$2y$10$nGcW.VwNL690qIE8FsvoJeeKoIuccyEFU45AZjsNm6/H8UwucHeZ.	bcrypt	\N	f	2025-06-24 03:37:43+00	f
0199b218-d6f2-7339-8ef5-82fc8870ab39	$2y$10$luxyEI90oQKv0iIVyU2haeOUXCk96b5jyWI4M6CnuealHFu85nDGu	bcrypt	\N	f	2025-06-24 03:26:56+00	f
0199b218-d6f2-7eef-9dbe-d2f494939812	$2y$10$K4J9NIjrVX3e.rUYyAQ3lumKa1sRjLmPHvX6rpRPYjsp9cPKq5NVu	bcrypt	\N	f	2025-06-24 03:27:40+00	f
0199b218-d6f2-76d4-ad06-46f7267f07fb	$2y$10$WA3iXe2nPLtraMJ180HSsemhlmGOCfs7p.vhnKUJJsxk/eExmgcOW	bcrypt	\N	f	2025-06-24 00:41:14+00	f
0199b218-d6f3-7c97-aab9-76f59b743ef1	$2y$10$wziTakKYLNH5zkEKsVhLleW/TF.GTsnSVjvJ8wxW8Rr/oTG5xwiC6	bcrypt	\N	f	2025-06-24 02:36:01+00	f
0199b218-d6f3-7745-ad03-bb427d2106fc	$2y$10$4kH8V4V2F7gBZWn8oPI10.wmzFiBU3jy0rv3uzm8YUuS1goGFBeeK	bcrypt	\N	f	2025-06-26 04:45:34+00	f
0199b218-d6f3-72ce-806d-77df7b4d219a	$2y$10$NJgbC0aVmRodm4wHrwVO1.A3MK1IJaNdu9booNFRNszDXWrO5YDyO	bcrypt	\N	f	2025-06-24 02:28:01+00	f
0199b218-d6f3-7bae-911b-719b27427935	$2y$10$/wXDpOswBn4ZMVpkMgKF2.8LjsRtRjszHLsHJooPVCKJt9YcDwSze	bcrypt	\N	f	2025-06-24 03:13:09+00	f
0199b218-d6f3-76a8-84da-17ba88bf08a8	$2y$10$X.btetKo15F4dhb4RGtOJe2GrwYNPGRhtf64h/ArJX1Bapt.eNlZe	bcrypt	\N	f	2025-06-24 03:08:09+00	f
0199b218-d6f3-7b69-bfce-9346f6c5221a	$2y$10$ua3DRAVU.IlsuYSfi5hqt.2JG6J9kkyl/EBpieC9RLiK.nj5Y9cHm	bcrypt	\N	f	2025-06-26 04:25:31+00	f
0199b218-d6f3-713d-a9fa-2b71e80d512d	$2y$10$jerArpxIoiBlM0Xgnu1sx.cf/J0kgz/PTa55YVdokyjZyZtsW3C4i	bcrypt	\N	f	2025-06-24 03:05:09+00	f
0199b218-d6f3-71fa-95ce-115b410b0b39	$2y$10$C8tbLGjhDLANnzkx8AnXju.boKHgKw/mYPh1Um1j21O4ovkZnk1MS	bcrypt	\N	f	2025-06-24 00:30:49+00	f
0199b218-d6f3-736e-87e0-9c0d5df1ffbb	$2y$10$duHXSE7Skj9GXJ7VUzh7/.p0JcgfbxiEb1dhT1Md6ME5dIZlq0iZq	bcrypt	\N	f	2025-06-24 03:02:09+00	f
0199b218-d6f3-7921-bc79-ac002332cde1	$2y$10$FEhzu7lRHYuIp5ZIzmxXo.MttYgBHrWonMGe3.6m6Yu5Uu3o.G1q2	bcrypt	\N	f	2025-06-24 03:12:10+00	f
0199b218-d6f3-723e-a8f4-68f245791fbb	$2y$10$2ZVs0KL1gHqrpLRDhDiAuO35/Ef2D2BVpdLHo3M88Jjt3hjQTjChS	bcrypt	\N	f	2025-06-24 00:36:40+00	f
0199b218-d6f3-79e7-827a-243c348c9d1a	$2y$10$RdWJPEzepuB6IwecuZDKG.zTlNSadWhQ/kGAbsOWB6NSNe7beALly	bcrypt	\N	f	2025-06-24 03:31:48+00	f
0199b218-d6f3-71d3-bc5d-88ca43f85fe2	$2y$10$kW/jfsQ5dezGdBf6Blo6FuzHX5EooY86eS2KmwWO7iGkO2mYep60u	bcrypt	\N	f	2025-06-26 04:27:01+00	f
0199b218-d6f3-7828-8c12-daa3241fa560	$2y$10$54VUjVOX5xQGTPPmi9XEZuKYm0536F4DPLwaf6QdPvKIF6toDbJtW	bcrypt	\N	f	2025-08-04 22:47:29+00	f
0199b218-d6f3-7973-b364-0fe70673fda7	$2y$10$c4Z3oqRTww5RtxFdbGrMZe4X31Nij3XdIuZmPecflDlgl57lSgHDC	bcrypt	\N	f	2025-06-24 03:11:00+00	f
0199b218-d6f3-7ee3-b220-a89dabe6b474	$2y$10$2XyG93acltXdCoqPAaOvqOWSHPKo.03sUzCoMiiaHRmxNRCw.wxgW	bcrypt	\N	f	2025-06-24 02:49:01+00	f
0199b218-d6f3-7004-abf6-3891ebc0fc4e	$2y$10$ilXf2m6TJAacYLxIXDQ75umJEluOigQP8bEMVxIVVznlCshkpkBfa	bcrypt	\N	f	2025-08-04 22:50:43+00	f
0199b218-d6f3-71d6-88f5-d8b7e631c3e0	$2y$10$zI5SdbhxrIEcsDVK9JHVeuRVkUPKvuPX89lDsX61JdvK1luFMuON2	bcrypt	\N	f	2025-06-24 03:19:09+00	f
0199b218-d6f3-7c26-9312-84810364c70e	$2y$10$6XTP3rgJXeZxAvEqc6u.e.7tO5lVve9NaSK36YAPNY0Cri7L612ki	bcrypt	\N	f	2025-06-24 02:23:01+00	f
0199b218-d6f3-7777-9013-68e4a3778b05	$2y$10$iiAdjQ3Ujtbe3Q7WRD1tfeZDvlKtoKFWy6F96xh/N1RNT2BbFe/zK	bcrypt	\N	f	2025-06-24 02:51:00+00	f
0199b218-d6f3-7653-9d48-905858b56bff	$2y$10$/xuxVNwKT3AqEU7FCOOTfOzm7UBzLtCSiXQqMYQvy8zho2o2uNaKK	bcrypt	\N	f	2025-10-02 02:48:35+00	f
0199b218-d6f3-7aa3-a571-a6b1c1e3254b	$2y$10$M4DS2lrriRU.209U34IYfu7YNS/HbijiGzihn0yvQPwxzfXolbGT6	bcrypt	\N	f	2025-06-24 02:17:01+00	f
0199b218-d6f3-7aa6-aac0-c91470b29a64	$2y$10$s.uXoBPvZFX9TM8HChE5euGirLGXo4wDBXMmotr8aeP.IfkHw6rzq	bcrypt	\N	f	2025-06-26 04:26:01+00	f
0199b218-d6f3-75eb-875e-31ab0bba1672	$2y$10$RIWWuAhmIv57grB5mArNpu/qoZakmaIWvP.wdBZ4QTylIbSFIc2OS	bcrypt	\N	f	2025-06-24 03:18:48+00	f
0199b218-d6f3-7915-9496-fa52e01fe64d	$2y$10$M82WiP./eEYSWB4EIKHxAu7K68OnUoIm7pnBUGpkjDiazZniMJSpG	bcrypt	\N	f	2025-06-26 03:59:49+00	f
0199b218-d6f3-7342-a309-6abda83b46ad	$2y$10$NDUynqYtskSLJDs1oIJcsun6cqThHgZ9f6iFAqL3Iphc4PlMoBe5W	bcrypt	\N	f	2025-06-24 00:30:48+00	f
0199b218-d6f4-7033-9ca7-4e7997223417	$2y$10$hUZryd1nTvK5TjG/iyW2ueOPfnHCk5Mj0RSm/wmJ5H.Qgx2yhOx66	bcrypt	\N	f	2025-06-24 03:22:56+00	f
0199b218-d6f4-7232-9ab2-38ccca26d3d4	$2y$10$3gyPS97tTdRB39eipy4MV.pjKOqfg5UUT83EobLKVcKtNoqzWwJuG	bcrypt	\N	f	2025-06-24 03:01:00+00	f
0199b218-d6f4-7c4e-9b70-be69d74c3879	$2y$10$MJVXQLJ4SbjYdk6tnIkI.elVFNZznge0f.yB9f/dSkfrnJy.d1upO	bcrypt	\N	f	2025-06-24 03:06:10+00	f
0199b218-d6f4-7ca3-b51c-b7a90ffdb7b5	$2y$10$h4lL0Dw0Kb4dth4dOEyH1.mNejOr3tOuEwj8gQa3y1YzeQrtWu5BG	bcrypt	\N	f	2025-06-24 03:01:09+00	f
0199b218-d6f4-75bd-a653-ca7c56cfd5f9	$2y$10$dUVmxzIEucia5e76dnxZGe0td4rKpWYMymUecVy/iMHOImyYQ8iLi	bcrypt	\N	f	2025-06-24 02:35:01+00	f
0199b218-d6f4-7f57-83ab-0f4a1df1da67	$2y$10$.6PUAaz7mk8sjblfgU3j9O.gJbX3OuWpwpC2eS9lf5RVB.wCSU7jy	bcrypt	\N	f	2025-06-24 00:33:28+00	f
0199b218-d6f4-7e27-8146-a5face49df9f	$2y$10$MJyl.YSUpR7NlN0jHPBDr.kzRzYLiokUJBYDCJuD6reqLL50LI8a6	bcrypt	\N	f	2025-06-26 04:46:05+00	f
0199b218-d6f4-766e-8f17-0952847a9f62	$2y$10$8as6hUD3P6tfXD75wRy1rum4WJ/ueRcRZu1nk9jWAYGxIMBSjfXgG	bcrypt	\N	f	2025-06-24 00:38:54+00	f
0199b218-d6f4-7026-aadc-0660f8f4debb	$2y$10$09LQVUPZvaZFRrcIGuOTJuX8JvIEpC2MvL1oP68opI13EGfogLUY.	bcrypt	\N	f	2025-06-24 00:32:40+00	f
0199b218-d6f4-70fe-be68-e3884b0ce552	$2y$10$TG3UvBMjAoY23xC859hozOUBhNMLK/6x.iO7VLtO86RzfgVYcR6jC	bcrypt	\N	f	2025-06-26 04:44:05+00	f
0199b218-d6f4-7b50-b71c-7201f82bad28	$2y$10$Dbvtl53VlyGXrfxDPP66y.wWfGyuguPCc.Ed9XRVVJP.qimx6Bjhq	bcrypt	\N	f	2025-06-24 02:44:02+00	f
0199b218-d6f4-77ed-a744-5184dca927ac	$2y$10$sc5UjrJ1T5Oc.RAIFMt9quN/J4hkfcRVldd6PJsqaVvZGR/Zytt3a	bcrypt	\N	f	2025-06-24 03:12:00+00	f
0199b218-d6f4-7c40-b219-def02405669d	$2y$10$By2BNhJpJvWtBbNGc5bTB.RNg/jnJ91YRepFFnfxtNVh0Gpoa1Zw.	bcrypt	\N	f	2025-06-26 03:10:41+00	f
0199b218-d6f4-74be-93c1-85e6da426d97	$2y$10$RmSQFQlKQTupgvEF1Iio.e1hM7yqCLwcZHyBg1w0bf5dNQN93sRiu	bcrypt	\N	f	2025-06-24 02:50:00+00	f
0199b218-d6f4-7071-ab17-da52e46f9acb	$2y$10$DlglT88IJOlvsjRv8/g2m.8c93UMTUc7WxKrS64zYXieDZ6xuN8xS	bcrypt	\N	f	2025-06-24 02:18:01+00	f
0199b218-d6f4-708c-971b-bd833a20b753	$2y$10$nA68DTuuXdZW7RL7BJHwtucTvvHwfhLuT5J7eYDNU06rWSrWLjqQm	bcrypt	\N	f	2025-06-24 00:50:25+00	f
0199b218-d6f4-7a7a-94a2-47c9751e210b	$2y$10$B9.0jdWAlvwsdDh6ceeajOS24QMgRqDDoBVjnj4doQTUzdsIg.GQ6	bcrypt	\N	f	2025-06-24 02:55:00+00	f
0199b218-d6f4-7ec8-9d70-e22ce84601f2	$2y$10$uwQFCIhDTGUppPuY4H2fNuSUPh/bIMFdupp3AslZJ6QQ2sALKDazC	bcrypt	\N	f	2025-06-24 00:46:44+00	f
0199b218-d6f4-7207-a805-e75c871aa031	$2y$10$SqM9CGfGbdt/hs2mozHLYu6AehkT2Ky/cMYPPSihl4QGWoayX99ta	bcrypt	\N	f	2025-06-24 03:14:10+00	f
0199b218-d6f4-7fe9-b139-c979f33667f2	$2y$10$7LET4omMx81tnKVSmGGtSeEDzE9QFAiXik/BYEbENiIjKvCMAHPNm	bcrypt	\N	f	2025-06-24 03:19:00+00	f
0199b218-d6f4-7532-a204-6aa506745055	$2y$10$Hz33YjtsdvukrjJH04RlfOPe/cMKNPpdYOKQkPGcgVJyfcvTacAfu	bcrypt	\N	f	2025-06-24 03:17:00+00	f
0199b218-d6f4-7186-8eba-e5a48910bdab	$2y$10$1PLcm2SCqf3wlhAbXMRo9eHGMS3100z8m31oP3Stm4AVRaYFyMf6O	bcrypt	\N	f	2025-06-24 00:34:40+00	f
0199b218-d6f4-760d-bfb4-e38871641b14	$2y$10$k2IwyrYtEbCL8ejfGVKKuOJVDMTrist45Z/iwZK6xt3.imTuocT8u	bcrypt	\N	f	2025-06-26 04:33:01+00	f
0199b218-d6f4-70a8-901f-b7fe2022ab24	$2y$10$6BRLGO2inKpKOMJJ4F32eOdBfBsBubEILKYQ.HJPcICVJk4KDykaS	bcrypt	\N	f	2025-06-24 00:33:44+00	f
0199b218-d6f4-716c-9302-5f0a2c916f25	$2y$10$1F1rbFTM37/ffP2cl8Atyuw9jjVnF9l/K7rtKHYmNaZTCZNI5wNUi	bcrypt	\N	f	2025-06-24 03:17:09+00	f
0199b218-d6f4-7ea0-a47c-d9546a0189f2	$2y$10$0SMMaDAdTurqjbtrtgrvP.guYLWgPQGM6q5JnHKn0tJBQt.aBUfVu	bcrypt	\N	f	2025-06-24 02:53:00+00	f
0199b218-d6f4-75b7-9f93-5482d8a954b2	$2y$10$YRtIeDh.3/SiWaH65Euuwe.Lm.HYFuN6OQX3OG4nFsr3yJs7r8lEy	bcrypt	\N	f	2025-06-26 04:03:49+00	f
0199b218-d6f4-756e-bfd6-81b52cc608f2	$2y$10$0WeInx.Rynq7etQpyxrloOqEMe4duzKdaylEUDGO7A3Tfr2aBofuq	bcrypt	\N	f	2025-06-24 00:56:23+00	f
0199b218-d6f4-7235-b272-513fab50301c	$2y$10$MoM9vJ7UhkPnmDdEjZf5S.OW1Cpy4MfBfHzFQST79.PnpnMq8l3zS	bcrypt	\N	f	2025-06-24 00:30:19+00	f
0199b218-d6f4-7049-906b-b8471ca9c62d	$2y$10$O3Qqc.ohkjCVJTJ3va5Q8.SVCai6SJR2.2jWbvoiyzPOiDyNl.pne	bcrypt	\N	f	2025-06-26 03:43:19+00	f
0199b218-d6f4-7e0b-8beb-ba47fcb8dccd	$2y$10$CtXAoEBhsXiR.rbjtNZcSeTlWm0.MaBk9GODYvRmCnZahaRy8Iypi	bcrypt	\N	f	2025-06-24 03:11:09+00	f
0199b218-d6f4-7fd1-9bd7-661ce3653163	$2y$10$So6COIPs3XXc9RorSZvU/.GCy4BnANuDrni8LgRm2bNZzu7yBivxu	bcrypt	\N	f	2025-06-24 03:24:56+00	f
0199b218-d6f4-7088-99e1-7b01b8b9cd5a	$2y$10$W3ef7ANRB4wL5N8lg3GNCuv4LhWRYxHe/c7YSG9jvWv.FO.SLLb8C	bcrypt	\N	f	2025-06-24 00:36:40+00	f
0199b218-d6f4-74fd-a525-1cc5d36d0b4b	$2y$10$NJbHM4pAL8RQZhpNzzs.U.Ma9GGXB44afIjAojhd8mdHVRTjexxhC	bcrypt	\N	f	2025-08-04 22:31:21+00	f
0199b218-d6f4-7905-9db4-0f06d4b0e5a3	$2y$10$IEX/lj4lMw8zsuntffm0YugMlXD29eBkS76Z8WL.JWpGF1wbKwGuO	bcrypt	\N	f	2025-06-24 00:38:54+00	f
0199b218-d6f4-74a2-a3c5-9e7b178f67b0	$2y$10$ywVVU.6Ut2QsBoutRa0Pmeppnb8Ksxlnql8gJ2qKF0II/jMTIOVyW	bcrypt	\N	f	2025-06-24 03:16:00+00	f
0199b218-d6f4-7473-9617-493cb27dbb8b	$2y$10$jAyuq9jKoIh22vLoN6yH/elPwYl8EI1qOgPZVjh2kCA9XUaCqS1rO	bcrypt	\N	f	2025-06-24 03:37:53+00	f
0199b218-d6f4-7dd8-bed7-0d8bdf5765c5	$2y$10$ASurAYNsqXtUChKoz7wWYezJjLSwzjXYXHJjUpupp0IuNgKU3BPjW	bcrypt	\N	f	2025-06-26 04:04:19+00	f
0199b218-d6f4-7e38-8390-3fcfa102818b	$2y$10$lMDvb9UAFxs.0S.0zI6eAuiaxzEiJFK8IDJOtJIYYifrYCqfaw8nW	bcrypt	\N	f	2025-06-24 03:34:16+00	f
0199b218-d6f4-7c96-bb00-0d91eb12f8b5	$2y$10$naxr0uHbBh99LX6XIhqKIOi6LfE7omF9pMn7n1dM3nRpC2Blbs8jm	bcrypt	\N	f	2025-06-24 03:05:00+00	f
0199b218-d6f4-77f2-90b9-ff984483bdf4	$2y$10$B2FZSDR2P487j22.JRZ4ceyW0BR3uDoQfxWhhgzFxGWt7WQAFInQS	bcrypt	\N	f	2025-08-04 22:30:53+00	f
0199b218-d6f4-7943-9658-45ea48e2dfad	$2y$10$A1JH77Hex4C8jNU.FT9UneVUvbEPwFgJ3LI3TIjYCuL0aLcfvu3P2	bcrypt	\N	f	2025-06-24 00:59:53+00	f
0199b218-d6f4-7feb-8de2-ee6b7e9dc6d8	$2y$10$KS0NuadvAphrHzZpnYM8Xerq.tlY8bjiSOofkyCfJetmyvVUlX9pq	bcrypt	\N	f	2025-06-24 00:47:44+00	f
0199b218-d6f4-7b23-8d82-8e2ab3a0fbdd	$2y$10$ooM92UEh6Uy8rS5r71iG/uGEmheuTxkPaxJlsRoPcVq.uNn0C5r1O	bcrypt	\N	f	2025-06-24 00:39:54+00	f
0199b218-d6f5-7b31-844a-707daaede198	$2y$10$/e/RIs.1ZjH8wcEfFxLetupGEsAvz1wpo/9Ad0nuwvpKMP6hfTv2q	bcrypt	\N	f	2025-06-26 03:08:41+00	f
0199b218-d6f5-7583-8f40-096c657e2e2c	$2y$10$EIojTKqfIX16DwdRb8HdSujZGyUFW1nu6Lk17B2gxgmFPA5noq.2q	bcrypt	\N	f	2025-08-04 22:28:01+00	f
0199b218-d6f5-76ab-a8a6-30f8ccfb9b00	$2y$10$zT9XhuOuQpEpt6IktwNvvOYSlcfBFmISGA4WAQrXsYsqEAub4ESh6	bcrypt	\N	f	2025-06-24 03:13:00+00	f
0199b218-d6f5-77c3-847d-f8c760cb72a7	$2y$10$IMdWYPI2DfSluLpcA3sRaebbruzDb/4U1GsAGOHPIlE3Fd21wQtSO	bcrypt	\N	f	2025-06-24 02:56:09+00	f
0199b218-d6f5-78c3-9be3-8f117f096e73	$2y$10$sGjy2LpJO1uzWUgb0pa8O.L1mC5gDLWZlg7jsEeCx8wr7di/LOPgS	bcrypt	\N	f	2025-06-24 02:46:09+00	f
0199b218-d6f5-7574-ad3f-2f28e4ea3ecf	$2y$10$RUVQxs4enelyxl1/ZZb92.U5Nq0pTdLlvE8NdhT1rOILoO2fbBKsS	bcrypt	\N	f	2025-06-24 00:46:43+00	f
0199b218-d6f5-757f-a19b-9f811484eccc	$2y$10$NMc4GxHPXG6hxy4whu6m.Oe4WiI/hXD9NjQqFKYyt/LK9pkyJz7G2	bcrypt	\N	f	2025-06-24 03:18:11+00	f
0199b218-d6f5-7b55-99ec-ed892eb10167	$2y$10$lNs4m/F.OGhCaGEzyhxVNOZfRD4pCmkSpEIUX2zuvGC/yS86Rh2Ji	bcrypt	\N	f	2025-06-24 03:29:40+00	f
0199b218-d6f5-7599-8c9f-43bd28ed1b97	$2y$10$LjPU4Fn0/V9bFzYnUnQC7OqPBwhohEEXWAXAfXampL.Fkv8ejow8.	bcrypt	\N	f	2025-06-26 04:46:34+00	f
0199b218-d6f5-7690-81ac-ad50171663b5	$2y$10$aZN5U4CPl6evLHuo2zzNK.rmUB1nkTNl1YJ8pBxcYYiOMtoWPeWw.	bcrypt	\N	f	2025-06-26 04:32:01+00	f
0199b218-d6f5-724e-963a-ff0a874b13a2	$2y$10$YiPaltYBoXbOd7UsmuDched/oAEHZn7HpQqDCKaQYaXLRS6d.AMxW	bcrypt	\N	f	2025-06-26 03:10:11+00	f
0199b218-d6f5-7f03-bc9a-434f1a466c31	$2y$10$Mi9np.xmaEjv6ZO1ugPt2.babcRkuPobSDiBMfabd/ViEPfy.cRUu	bcrypt	\N	f	2025-08-04 22:50:02+00	f
0199b218-d6f5-7c00-98af-a6338c7356d6	$2y$10$nJ5XcdFhFDPI3OXyNXf1.OcsohqKCPINURFB6s0J10f812rgPXCcO	bcrypt	\N	f	2025-06-24 02:26:01+00	f
0199b218-d6f5-7f20-94d7-81f157cfe3be	$2y$10$sfKdOAZQRFkaAoNqq.tQEe/ruFXrjqx3/uTxF.gQMJivueqZWGzZC	bcrypt	\N	f	2025-06-24 03:27:47+00	f
0199b218-d6f5-7c65-a458-ba0247e5fed1	$2y$10$VttA/9DVTwv.Fag9tf4uvuH97ztM/ryWaqv2GGlBZZ/U79.7JPkoO	bcrypt	\N	f	2025-06-24 00:50:26+00	f
0199b218-d6f5-7568-b50e-8839e07534d6	$2y$10$V7br0..UGtGhTxOWS2c8eO/4P8BwftEDmM8HrjazkDhZwodGwYSfa	bcrypt	\N	f	2025-08-04 22:26:14+00	f
0199b218-d6f5-7390-9fd8-95d3bf0748de	$2y$10$BqLkmYDUvx34hrX3BGBHGugcS06M8HHqHwzoAqzW1J33c4C0CWgLe	bcrypt	\N	f	2025-08-04 22:48:40+00	f
0199b218-d6f5-7643-ae71-ca332dab2260	$2y$10$l1F031o7m6yRA6gJWRA0zOh/nyZvp5SOfOaxsoaDXxaZr/8xjAku.	bcrypt	\N	f	2025-06-24 02:21:01+00	f
0199b218-d6f5-7941-8a2b-05c559f42178	$2y$10$XMJJjZhNVYUgeZl5yg29e.5kaodGCfgiclJG6Sx5XY1xuB63s1Avm	bcrypt	\N	f	2025-06-24 02:58:09+00	f
0199b218-d6f5-7dec-a445-def68084dc75	$2y$10$6Aa64oDm36656X7IEZ9hWeSAGMRzgu7uGvH3q7O9gJFa1LA0de0pe	bcrypt	\N	f	2025-06-24 00:45:43+00	f
0199b218-d6f5-79cd-873a-7ddeee4a96ff	$2y$10$pdTcEaOB49Y57N7hzoWKs.H27QJgfu0vfzyolkJDBraTcM8mTwDDK	bcrypt	\N	f	2025-06-24 03:30:56+00	f
0199b218-d6f5-7b80-a91f-af5d37066279	$2y$10$uqC0AvKxdrCgz6axTm7bYuM9ef30CPbHn59FeI8CEjWc6yyxx/Mia	bcrypt	\N	f	2025-06-24 02:57:10+00	f
0199b218-d6f5-7e1c-b67c-b3e2245937fb	$2y$10$rBSrvCXE0WBxDyg0GbVzT.ADKBBHOb1b.ys3vCaS9oaZdAYHPg4Ku	bcrypt	\N	f	2025-06-26 03:02:13+00	f
0199b218-d6f5-7316-81a0-6b6fc2b84aec	$2y$10$Yh/4xk9xqvSi5BtljXGczu8FbKWODC/Fdh584OvYoZouXAS2h.CdK	bcrypt	\N	f	2025-06-24 02:38:01+00	f
0199b218-d6f5-7bef-b048-453ec0fbd329	$2y$10$hTtl4FpTVFoNZLryf7XWju11RHNjTvhh0Nh0LKQcrIxzsISJ.3i1K	bcrypt	\N	f	2025-08-04 22:49:21+00	f
0199b218-d6f5-77cf-b437-3d6068315a42	$2y$10$6NHrPe9v9Vxe./YiI//gLuDqASa6mbstVxuS92VbZM9urC9Sm2CgG	bcrypt	\N	f	2025-08-04 22:29:08+00	f
0199b218-d6f5-78d5-8c33-f4cebbbded76	$2y$10$.T39MApcI8BJLhYvaujPZOrWa72UTfVzSO4TKbN9Ugk38LDVI7VSq	bcrypt	\N	f	2025-06-24 02:46:00+00	f
0199b218-d6f5-7752-8b92-364205f03f68	$2y$10$R4fKiESIhJL5.M12lKJmiuGpzhafYG/cgl2UMpb2No1NRsL6FImwi	bcrypt	\N	f	2025-06-24 02:07:01+00	f
0199b218-d6f5-772c-a32c-64c6c6628f3f	$2y$10$.i12q9eYcMhfDLrS8lhvqO2UM25Ho1GY/sLP2lAUwrH2BNV7kPqdC	bcrypt	\N	f	2025-06-24 02:45:01+00	f
0199b218-d6f5-7c98-9936-cd9a4ad6cddd	$2y$10$WpHcYP8A/Rf0kEI7Pf6aje/hOfrPqTOKb4dswYDXtQ0RkcOcR.jpm	bcrypt	\N	f	2025-06-23 23:57:07+00	f
0199b218-d6f5-7db8-9670-1e4a252b109a	$2y$10$2Xz.aNh0/mjTugHgGb7v6.AoWqcXLthslGdjv7.v4rnbiPKd2mITe	bcrypt	\N	f	2025-06-26 03:11:40+00	f
0199b218-d6f5-7c46-bea1-849377f5b939	$2y$10$vLdrUxd/qZ1.e0RXclmW..ZuUsMNfMwieHxbYLNhBqiqriUm2K2ti	bcrypt	\N	f	2025-06-24 02:55:09+00	f
0199b218-d6f5-7e9a-9f98-ee13a749ba84	$2y$10$i8tnvvigDmNtALFTjvLZ5eFSOWTg4Pk2gt7TiEV5CuCtGlJXq83lW	bcrypt	\N	f	2025-06-24 00:32:40+00	f
0199b218-d6f5-7a40-9d81-bd2f632f0b95	$2y$10$RGhhgxACjppyWXK13eLs8.w6e2sj.KeAJ.UYm5yY6MM2BLGbIhvym	bcrypt	\N	f	2025-06-24 02:29:01+00	f
0199b218-d6f5-78f1-94d9-e49f695def3c	$2y$10$VDyZVI6CtBrrEohQPY0bJebKfzBhA.leqhVNxH7ODukIEHGcCEgea	bcrypt	\N	f	2025-06-26 04:48:04+00	f
0199b218-d6f5-7ace-bad5-6027cb933f8d	$2y$10$Q1QDHR9yAEMbFYDKNLqr.O/LEDD8F/K/De038MV1t0zrNecgf1h/6	bcrypt	\N	f	2025-06-24 02:45:10+00	f
0199b218-d6f5-774f-8310-cf0179cf2870	$2y$10$EIHECoxXwLLoL0IB5a31jua5SAHOcYM.T3Uzxztbj1D4AEM2G414e	bcrypt	\N	f	2025-06-24 03:36:56+00	f
0199b218-d6f5-79d9-b9f6-1f7914a42cc7	$2y$10$L.E5bfl/zAy6w.rGtQyOC.Q2gELV2pfZmM6RHEUVfhZKMiDE7rbiW	bcrypt	\N	f	2025-06-24 03:16:48+00	f
0199b218-d6f5-74d3-bae4-b5928f000681	$2y$10$Juv7COO9wb5TbsSr6hiaieIWPh6P.WbT5M3CxhANVNvjODVSv68C2	bcrypt	\N	f	2025-06-24 02:43:01+00	f
0199b218-d6f5-7067-bd80-55618a46b667	$2y$10$IE6iJLsZ07ck0ZOp/I0BPeuoqH.5xOkjzfuZBbAOO285AYRmwOj3a	bcrypt	\N	f	2025-06-24 00:44:43+00	f
0199b218-d6f5-7dae-9212-9b929f7713f2	$2y$10$GaA5sWWB05J.2rW637n6O.ytw4q0X8uuFH6dPiVhqwUrBdtEonXfe	bcrypt	\N	f	2025-06-24 03:34:16+00	f
0199b218-d6f5-71f6-b7e2-0d87d44361e3	$2y$10$brzbGtn1nSoRfpZkZevVTOYxoglHbkDhMW3GwNGyR6264tcTiLw92	bcrypt	\N	f	2025-06-24 02:39:01+00	f
0199b218-d6f5-7685-a18a-b2fe8447a2e7	$2y$10$1HaOFlcEfW3biY4Jr0Rix.WjbvYn5ogdo4IuJyfZ58md2YtcC5REa	bcrypt	\N	f	2025-06-24 02:09:31+00	f
0199b218-d6f5-7391-8c2a-043a1cd7945e	$2y$10$yOkD5gSbntyuM0twDi2Ve.DLBJRgpKkCz.lkAyApzsA9Iy6X5sCLa	bcrypt	\N	f	2025-06-24 03:20:49+00	f
0199b218-d6f5-7b31-88e5-acb2d64f9892	$2y$10$upasO5HH5KiHljPgLn2DJe34foI4tH0s0/.Yw.k5QH7OM0.GHFF6K	bcrypt	\N	f	2025-06-24 03:20:10+00	f
0199b218-d6f5-7a80-b26c-f7b1ea7602b2	$2y$10$mHSsx0aaPgW2D9MuVxYnuOyElgz13005cltb0y7o.fmY.MdRo.RcG	bcrypt	\N	f	2025-06-26 04:27:31+00	f
0199b218-d6f5-7727-a415-9264f50dedb1	$2y$10$apdrmERjE3/S73EjZ57pQ.OB2W9OKfn3tGIpaI2gDENFDUG563IiC	bcrypt	\N	f	2025-06-24 03:09:01+00	f
0199b218-d6f5-77b4-b796-190d8981f12a	$2y$10$QbmK/8sVRcA28R1NY9S8nOoNDqXIuh8wnw5OgKZ81tQl4Glc7nr8e	bcrypt	\N	f	2025-06-24 00:33:44+00	f
0199b218-d6f5-7c30-9215-4d4f5d0218e9	$2y$10$Jv.O.vquSd44waG6gfDTV.DGvwWKgN7.ZtawBtHVce126EL2W2fxO	bcrypt	\N	f	2025-06-24 02:50:09+00	f
0199b218-d6f6-7ddc-a6ee-f9364d86b1af	$2y$10$Ldxz2l5qKmR4M75mHFeQq.sD5vV2j66bhRcFte2b/VIZY6K1pB.Ii	bcrypt	\N	f	2025-06-24 00:49:43+00	f
0199b218-d6f6-727c-80d9-fef7fe2148bb	$2y$10$ttcKCaYqulN6j/gRsACvZequBIYomAuiT7a1jzo4Lz3nHNb/T2VaW	bcrypt	\N	f	2025-06-24 02:24:01+00	f
0199b218-d6f6-79d5-8ed3-640e7cf46662	$2y$10$pIQqPwH4juFWaJHcXiXBO.jZgsEPO4IblnlPiD1bDsOlgybopkAfS	bcrypt	\N	f	2025-06-24 02:59:09+00	f
0199b218-d6f6-74f9-95e1-67f0d8236b1b	$2y$10$fCGJmh6goUgyJE2xCggOK.9tQet14X.FZc8tGvOFhN2b8OT1LQtye	bcrypt	\N	f	2025-06-26 04:33:31+00	f
0199b218-d6f6-7a03-9d9c-f312573e04f7	$2y$10$PXEdpEbxI5c11/tC3UdC6OrZr7V2MsHAatf5C6LRzRV/goxQDPTl.	bcrypt	\N	f	2025-06-02 20:55:41+00	f
0199b218-d6f6-7a5b-948d-9a2ccfe52c65	$2y$10$MqC8tsBqsnKI03n48HG8nudnaUyJ9uGFcyD6msRzYX7zgsGZpWq1y	bcrypt	\N	f	2025-06-24 03:07:00+00	f
0199b218-d6f6-7154-9e0d-57c0e0ca158a	$2y$10$Ls5j1k8YkSkUpy7QR6lP6.6nbnyB8dgnuWboxOUu607j3FMPsDysW	bcrypt	\N	f	2025-06-24 01:01:23+00	f
0199b218-d6f6-7d15-ba76-4ded9092535c	$2y$10$qO65GoH0t3CKqr3c4.UYTOq9VL7NJDP1qzTif4/wLjB526MILOSKS	bcrypt	\N	f	2025-06-26 04:05:49+00	f
0199b218-d6f6-745d-b34c-8a7f5b47711e	$2y$10$UbcKIw8.1HJ7O3ZUcWzNuOv3Qpr.GZwPE0WJAMLa8aFUS28GcEW3y	bcrypt	\N	f	2025-06-24 02:40:01+00	f
0199b218-d6f6-7364-8778-083c0fee3feb	$2y$10$cQuDhKfl868vdHAnAiI0WO0z4YtXUVzuxOhvECgnPXsIM37KZLaJy	bcrypt	\N	f	2025-06-26 04:34:01+00	f
0199b218-d6f6-7cfd-9ff1-730b4c6de98b	$2y$10$3W6JL.GQi0ZHwrj3IFJbIuxr6IlInutj2vKhrpbXTSrXjDazr2faW	bcrypt	\N	f	2025-06-26 04:01:19+00	f
0199b218-d6f6-7667-9ee3-0756edadf578	$2y$10$73HRYexqlKy/GIvY3rmZJeBFNMqerCNwDAuvQqchmeqSJs9utOe56	bcrypt	\N	f	2025-06-24 02:27:01+00	f
0199b218-d6f6-7e8a-b887-4e8c64eed6e1	$2y$10$bg0u2eTDDkWdil4qS5C23.1SJGNJqtaWhOIoR3xWhu3DtA/80iNVW	bcrypt	\N	f	2025-06-24 00:48:44+00	f
0199b218-d6f6-7c55-a7d0-08fb903c15bb	$2y$10$6KuA0QxCCVuGlu1bkjBPS.fhUy5IQylySi/ArrMCa372iDnwyu28i	bcrypt	\N	f	2025-06-24 03:23:40+00	f
0199b218-d6f6-7c25-bc63-a1602f34926e	$2y$10$TDT0SAKOdbJBNH.ODTPO/uuJ74bhkotBD8Q8h5u5HZDAjhjldOIy6	bcrypt	\N	f	2025-06-24 02:31:02+00	f
0199b218-d6f6-792a-8cea-d437152195a2	$2y$10$cg2x77UyJRxxarPQRsvTDuAjINQxKiK9xu41onuFkxZw.IT77F7ze	bcrypt	\N	f	2025-06-24 02:44:13+00	f
0199b218-d6f6-7785-b774-22d8d36c6517	$2y$10$w1iYjXBrQVJpcaxf5hEEDOVv1ojALPRGZYuG0G5KtR0B/42i.8psa	bcrypt	\N	f	2025-06-24 02:22:01+00	f
0199b218-d6f6-7fa9-adac-0557a9c881db	$2y$10$yiQWT/0164g4BdMVbBdff.VQ7Wmj0W7OrfUG9QrvAA42VBYxfmxni	bcrypt	\N	f	2025-06-24 02:51:12+00	f
0199b218-d6f6-768f-8afe-279aaf27b5b1	$2y$10$D56ug26Hx8RpOW6e57.3o.L2joeTRtN35XlKRMhjINvjBHTGKQHiq	bcrypt	\N	f	2025-06-24 00:31:40+00	f
0199b218-d6f6-7ccb-a9d1-9c8200f6eab9	$2y$10$FBTHNooM10Jd4OsLRI6U/OPeWZ2wERgXbkX4fkWsD80HxSi14zK9y	bcrypt	\N	f	2025-06-24 03:07:09+00	f
0199b218-d6f6-787b-987d-2c0e71110edf	$2y$10$MzG7oie9VaZNppWCDwsMUOUEg/Khl75jpVbBL2gDpsnG3P4Ed/7UK	bcrypt	\N	f	2025-06-24 00:49:44+00	f
0199b218-d6f6-7c81-a6d2-d75e9aa0a8bd	$2y$10$ZyDvuGV3pS40mHmDnmzF8OiU7wPEhA0UoTK0oadRR35DmzD9JI5hW	bcrypt	\N	f	2025-06-24 00:34:14+00	f
0199b218-d6f6-73e2-a095-526c78cc4bb2	$2y$10$6vTJW1ocofbG4HiYc4xeAOMBAVd6CsfvhkZ/HsKcVw6TKrNHMfGFq	bcrypt	\N	f	2025-08-04 22:30:03+00	f
0199b218-d6f6-70f6-9072-234658e30052	$2y$10$kYeQ/CElSP6241gYLTK80eo3aQPOvBFBH5QdtSpDqw56.FlHwU3cO	bcrypt	\N	f	2025-06-24 00:32:12+00	f
0199b218-d6f6-795b-8b64-809b7a5d429f	$2y$10$zWsvx0/6pxCknDu7Fp/wpO8Ejcg5aLjL0/MiQGVjoe93oRxXXWMRy	bcrypt	\N	f	2025-06-24 03:34:56+00	f
0199b218-d6f6-71bf-88cc-0f06142a085b	$2y$10$9ZpPoFR4erHbixW7Dk15u.BFS4E0dCM9DRbs02sms4MjiFT1ohEIi	bcrypt	\N	f	2025-06-24 02:11:31+00	f
0199b218-d6f6-75fd-a438-67642a23cf05	$2y$10$daaRqIm5xJEndXsX9buAx.4Qy7OhtPyX1o3FkkTrkecgQy5Im1/FS	bcrypt	\N	f	2025-06-24 00:30:19+00	f
0199b218-d6f6-722f-8595-b1bdade9fd45	$2y$10$dfRjtN1YNBZ8bBNN4Q5Mme2L5bGbmNpRyJ644BhtKJxL.OLLjt1na	bcrypt	\N	f	2025-06-24 00:33:28+00	f
0199b218-d6f6-732a-9693-ed12efad4e3f	$2y$10$N0mvtEcs.54hC8Yk/Jv7huZtLwUh.rIq8vb5sQQwVWEaF.XqZeDuO	bcrypt	\N	f	2025-06-26 04:44:34+00	f
0199b218-d6f6-7638-a670-73e45e55c94c	$2y$10$XJrZIfsYfyU9iKqzR1h.WOLXVJTLjwZOGRBjW7y4n7FrQuTWjVApi	bcrypt	\N	f	2025-06-24 00:41:13+00	f
0199b218-d6f6-7802-a342-3c2bd2dc56b8	$2y$10$sz2YZxWA1fJ52S1XnvunfOVZ4x8TOnEEQmbzEfPCn5lQ7V46KAR2u	bcrypt	\N	f	2025-06-24 03:15:00+00	f
0199b218-d6f6-7f6e-a41b-07746a49c2a9	$2y$10$6wkv4nZQnVXa3GSBi5OIj.U6FjchMYGUyi8pOZCTwJhmVEyEwB9ca	bcrypt	\N	f	2025-06-24 03:35:40+00	f
0199b218-d6f6-71d2-a580-87c5acf58c79	$2y$10$QSu/nHf1GmUIKKiaRJq6duokl30Ot4.xh1m8hiBYfAxrYF2QdaCaC	bcrypt	\N	f	2025-06-24 03:15:48+00	f
0199b218-d6f6-7841-a616-a6a78365b74a	$2y$10$qEJHi4mu1WuJ51kTVyPLvehiakY7FLceCXPPH0iidQ/ZA.tfq5UfO	bcrypt	\N	f	2025-06-24 03:25:48+00	f
0199b218-d6f6-70a7-8330-5c7d4f268c86	$2y$10$44pcGvQ4u9Ml/6SGivCz0eVQrJf1gO77b0IwuVT3rtyHEYdO5l0s.	bcrypt	\N	f	2025-06-24 00:37:55+00	f
0199b218-d6f6-7aab-8e22-7517387b2973	$2y$10$lvwKOLcBDNAORM0oNYDtaO91X3GKP.dXzilbpd0S5IXk4YXpQ68x.	bcrypt	\N	f	2025-06-24 02:52:00+00	f
0199b218-d6f6-7092-974d-1f5f20f283df	$2y$10$KILnBOikpZ.JYNwkZ5R35.du8GDpQm.O3H71wXmDeZzmO8ZZGALcC	bcrypt	\N	f	2025-06-24 02:58:00+00	f
0199b218-d6f6-79f5-b7e2-9d7ebc8c23b9	$2y$10$2gArteAX9Q0tElGZZ9KEaehvcOkf9V4l8fI/ariTXaNxVP4Q7pQn6	bcrypt	\N	f	2025-06-24 02:42:01+00	f
0199b218-d6f6-7a6c-a186-23b68c9a39b4	$2y$10$bsnt4OBygF.G72zYuLDS3OP2fbRX71pVU8cfi4dqTUClWgpKRFDze	bcrypt	\N	f	2025-06-24 02:25:01+00	f
0199b218-d6f6-791e-8cae-dc0ebd5ee0cf	$2y$10$QivsqmQ0khwrSigaGX7eNu37VaKfSsOkAJ2udMDF7ezh77LgGNNKq	bcrypt	\N	f	2025-06-24 03:03:09+00	f
0199b218-d6f6-7cbe-b7fd-5717e334bacc	$2y$10$FVXYXNHPkbl4kYig6CKyfuJvRUKANlD85VUHxgaR0Wj/W80LCNMZC	bcrypt	\N	f	2025-06-24 02:34:00+00	f
0199b218-d6f6-71f0-a4da-e82075007edd	$2y$10$8gymkSx7K.HJOui1Nw3G4ORNmLVgEDWLXS06p3AtWK.NWlRTabV42	bcrypt	\N	f	2025-06-24 02:19:01+00	f
0199b218-d6f6-7ddf-984e-1c8fae88555c	$2y$10$WRIcBK6hZ/kv1lx5FVwxl.xevwog7LRGhP/KpYYvLFFkizCAzuXNS	bcrypt	\N	f	2025-08-04 22:23:34+00	f
0199b218-d6f6-7829-b4b7-47df7a823ee2	$2y$10$jmRVWgyEDpx2z7/jitNM4uCGehHB3jPcAkwEe1mZ8Ojau1zpbAfS2	bcrypt	\N	f	2025-06-24 02:13:32+00	f
0199b218-d6f6-71a3-bac6-c6094223756b	$2y$10$u4kMwr3JoGq75qwU9Q3wm.q2keVBN.6RpUNcrin3.mw0y21.90mo2	bcrypt	\N	f	2025-06-24 03:23:47+00	f
0199b218-d6f6-7d2e-8e65-033e39c0cf33	$2y$10$sNw8PtTa4jrkSMqNZndCBu4spUMWIKijJnQs/lrvNJv3e23xGwF0S	bcrypt	\N	f	2025-06-24 02:53:09+00	f
\.


--
-- Data for Name: user_phones; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.user_phones (phone_id, user_id, phone_number, is_primary, verified_at, isdeleted, updatedat) FROM stdin;
0199c223-d8b4-7b18-bd52-7bf3b54607a0	e975dffd-d6f1-4743-b8b0-7ebb6f8d473a	8792954	f	\N	f	2025-10-08 04:45:53.203644+00
0199c224-641f-7c71-a5a2-73fc329d592b	6c102738-4f93-4287-947d-b8779e8471ad	879295440	f	\N	f	2025-10-08 04:46:28.895379+00
\.


--
-- Data for Name: user_recovery_codes; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.user_recovery_codes (user_id, code_hash, used_at) FROM stdin;
\.


--
-- Data for Name: user_settings; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.user_settings (id, user_id, name, value, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: user_table_permissions; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.user_table_permissions (user_table_permission_id, user_id, table_name, access_mode, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: user_tokens; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.user_tokens (id, user_id, refresh_token, expires_at, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.users (user_id, full_name, status, is_superadmin, isdeleted, updatedat) FROM stdin;
0199b218-d6f0-7c75-9ed7-eef1ea2083b2	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:47:10+00
0199b218-d6f1-7cc0-a422-331f209929ea	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:04:09+00
0199b218-d6f1-7bfe-aeb9-81a9f066e6e1	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:54:00+00
0199b218-d6f1-7c25-b6fe-6adebe644c36	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:10:31+00
0199b218-d6f1-795b-959f-275b3f15b92f	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:00:00+00
0199b218-d6f1-7e4b-b32d-0f6289b10cdc	Naomi Gasara - BN095	active	f	f	2025-08-04 22:24:42+00
0199b218-d6f1-722b-b1ed-d2bb0902d701	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:48:10+00
0199b218-d6f1-738d-9c97-5c13713cc58f	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:57:01+00
0199b218-d6f1-7782-bacb-4fa03ae90636	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:56:00+00
0199b218-d6f1-79f5-ab82-c15e8b25833c	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:16:09+00
0199b218-d6f1-7097-a304-6b4fc0a4c105	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:16:01+00
0199b218-d6f1-73c3-b347-55c9e40f860f	Aminiasi - BN578	active	f	f	2025-08-04 22:51:25+00
0199b218-d6f1-7041-a2b7-6d9add331094	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:31:40+00
0199b218-d6f1-75e3-a2fa-5b4b3ae27e4a	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:25:40+00
0199b218-d6f1-74ab-baea-fd375c9867e5	Sylvia  Nandani Reddy - BN309	active	f	f	2025-06-26 04:00:19+00
0199b218-d6f1-76b3-aa9a-3764901134d9	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:15:10+00
0199b218-d6f1-7ecf-a55e-2ffe43ac9137	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:54:09+00
0199b218-d6f1-718e-accf-64bae92862f3	Nitesh Datt - BN219	active	f	f	2025-06-26 04:47:35+00
0199b218-d6f1-7806-bce3-35e20d1c1619	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:08:00+00
0199b218-d6f1-7096-af4b-a72eff80cf9b	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:32:11+00
0199b218-d6f1-7073-9b79-6b0968709de8	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:20:02+00
0199b218-d6f1-778c-b188-59d68b26419c	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:47:43+00
0199b218-d6f1-7877-b7fa-b23b95be727f	Sera Rasiga - BN575	active	f	f	2025-06-26 04:34:31+00
0199b218-d6f1-7b72-91c0-83fe4c6b533b	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:41:01+00
0199b218-d6f1-76fb-b024-3be69ca87bc6	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:32:40+00
0199b218-d6f1-72b3-9744-f87279f94f94	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:15:09+00
0199b218-d6f1-7cca-b1c4-52eed7af00af	Samuel Patel - BN175	active	f	f	2025-08-04 22:13:55+00
0199b218-d6f1-7d0c-8c3b-dfaf7bcb8d68	Iverlyn Maeta - BN655	active	f	f	2025-06-24 03:28:56+00
0199b218-d6f1-77fa-9aad-11897f9cf95c	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:44:44+00
0199b218-d6f1-7eea-941d-5d94235999ba	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:09:10+00
0199b218-d6f1-72ec-83cb-5aea63f97a74	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:30:01+00
0199b218-d6f1-7719-8521-5af8ae2f74a3	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:48:01+00
0199b218-d6f1-760a-9a47-32d39fab654b	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:34:40+00
0199b218-d6f1-79b1-89ad-641d409edcfc	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:49:10+00
0199b218-d6f1-77ac-8728-d78a2cf5fa8e	Haroon Buksh - BN267	active	f	f	2025-06-26 03:58:49+00
0199b218-d6f1-78b4-ba81-afc76ddd46ac	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:42:10+00
0199b218-d6f1-74f8-84f8-01ef657c3fc1	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:21:48+00
0199b218-d6f1-7165-8179-a0248ae8b0fe	Kritesh Sharma - BN252	active	f	f	2025-06-24 00:30:18+00
0199b218-d6f1-7496-a8cb-94f6ba96add6	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:04:00+00
0199b218-d6f1-7650-8a14-4261368d01f8	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:41:11+00
0199b218-d6f1-7084-8f06-b5dbb15b7fa9	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:06:00+00
0199b218-d6f1-7da5-aa1a-a58c8f5a4ed0	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:10:00+00
0199b218-d6f1-7676-ab63-8ddbe0516f0f	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:03:00+00
0199b218-d6f1-732e-9019-6a58cb6af38e	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:20:01+00
0199b218-d6f1-7478-ae43-d35d31b85d13	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:21:40+00
0199b218-d6f1-7512-a4a4-1c43cbcd247b	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:45:44+00
0199b218-d6f2-733b-89e6-d85ffb8c19a8	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:43:10+00
0199b218-d6f2-771e-90b9-66a7b5087d9f	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:31:40+00
0199b218-d6f2-71d6-9157-8b76022a1b4f	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:47:01+00
0199b218-d6f2-7aaa-af91-9822ce7c31e9	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:48:43+00
0199b218-d6f2-7fe1-97d6-35483cc9d3bd	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:30:19+00
0199b218-d6f2-7245-9259-ace3dd324e6c	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:18:00+00
0199b218-d6f2-7e28-a9a1-f379a560d7db	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:34:24+00
0199b218-d6f2-7bc0-8d73-1d0750cafb96	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:37:01+00
0199b218-d6f2-77f9-a254-40bad0cbc6dc	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:39:54+00
0199b218-d6f2-7cb3-85f2-0b2499eacdc2	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:34:15+00
0199b218-d6f2-7a58-abe4-6b0c5b794e05	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:35:48+00
0199b218-d6f2-71b8-813a-e2098d9154f8	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:29:48+00
0199b218-d6f2-7375-ae58-96305972d882	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:02:00+00
0199b218-d6f2-7ac3-92b1-cad60fb99d00	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:10:09+00
0199b218-d6f2-7ff2-8da4-a874ec39004c	Iverlyn Maeta - BN655	active	f	f	2025-06-24 03:17:48+00
0199b218-d6f2-7aa4-939e-cb80c6ddfb0e	Jale Loiti - BN156	active	f	f	2025-08-04 22:31:49+00
0199b218-d6f2-7645-b6fd-96e1d707806d	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:59:00+00
0199b218-d6f2-79b0-97bf-b3181726e0bf	Iverlyn Maeta - BN655	active	f	f	2025-06-24 03:19:48+00
0199b218-d6f2-7910-b640-73fee0352173	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:12:31+00
0199b218-d6f2-7e9a-b8fa-34fe4f50e05b	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:14:01+00
0199b218-d6f2-7645-98e6-4a855db834bd	Mereani Vakadromusiga - BN400	active	f	f	2025-06-26 04:02:49+00
0199b218-d6f2-72d8-a7e1-2dc97ae786ed	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:37:54+00
0199b218-d6f2-74d1-8e40-69af8ba5d94d	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-26 03:12:11+00
0199b218-d6f2-7184-bbed-3f004ec6f53e	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:00:09+00
0199b218-d6f2-72c2-807c-2e0906829137	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:52:09+00
0199b218-d6f2-73f8-abbb-fa2631a3f5ca	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:37:43+00
0199b218-d6f2-7339-8ef5-82fc8870ab39	Iverlyn Maeta - BN655	active	f	f	2025-06-24 03:26:56+00
0199b218-d6f2-7eef-9dbe-d2f494939812	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:27:40+00
0199b218-d6f2-76d4-ad06-46f7267f07fb	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:41:14+00
0199b218-d6f3-7c97-aab9-76f59b743ef1	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:36:01+00
0199b218-d6f3-7745-ad03-bb427d2106fc	Taina Mocemaiwaiyevo - BN645	active	f	f	2025-06-26 04:45:34+00
0199b218-d6f3-72ce-806d-77df7b4d219a	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:28:01+00
0199b218-d6f3-7bae-911b-719b27427935	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:13:09+00
0199b218-d6f3-76a8-84da-17ba88bf08a8	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:08:09+00
0199b218-d6f3-7b69-bfce-9346f6c5221a	Livai Nakuta - BN339	active	f	f	2025-06-26 04:25:31+00
0199b218-d6f3-713d-a9fa-2b71e80d512d	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:05:09+00
0199b218-d6f3-71fa-95ce-115b410b0b39	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:30:49+00
0199b218-d6f3-736e-87e0-9c0d5df1ffbb	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:02:09+00
0199b218-d6f3-7921-bc79-ac002332cde1	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:12:10+00
0199b218-d6f3-723e-a8f4-68f245791fbb	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:36:40+00
0199b218-d6f3-79e7-827a-243c348c9d1a	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:31:48+00
0199b218-d6f3-71d3-bc5d-88ca43f85fe2	Nirlesh Niraj Lal - BN493	active	f	f	2025-06-26 04:27:01+00
0199b218-d6f3-7828-8c12-daa3241fa560	Sakeasi Nasetava - BN377	active	f	f	2025-08-04 22:47:29+00
0199b218-d6f3-7973-b364-0fe70673fda7	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:11:00+00
0199b218-d6f3-7ee3-b220-a89dabe6b474	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:49:01+00
0199b218-d6f3-7004-abf6-3891ebc0fc4e	Rahul Pratap - BN424	active	f	f	2025-08-04 22:50:43+00
0199b218-d6f3-71d6-88f5-d8b7e631c3e0	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:19:09+00
0199b218-d6f3-7c26-9312-84810364c70e	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:23:01+00
0199b218-d6f3-7777-9013-68e4a3778b05	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:51:00+00
0199b218-d6f3-7653-9d48-905858b56bff	Keleni Naisaboca - BN022	active	f	f	2025-10-02 02:48:35+00
0199b218-d6f3-7aa3-a571-a6b1c1e3254b	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:17:01+00
0199b218-d6f3-7aa6-aac0-c91470b29a64	Teria Ribauea - BN360	active	f	f	2025-06-26 04:26:01+00
0199b218-d6f3-75eb-875e-31ab0bba1672	Iverlyn Maeta - BN655	active	f	f	2025-06-24 03:18:48+00
0199b218-d6f3-7915-9496-fa52e01fe64d	Matilda Julia  Hazelman - BN296	active	f	f	2025-06-26 03:59:49+00
0199b218-d6f3-7342-a309-6abda83b46ad	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:30:48+00
0199b218-d6f4-7033-9ca7-4e7997223417	Iverlyn Maeta - BN655	active	f	f	2025-06-24 03:22:56+00
0199b218-d6f4-7232-9ab2-38ccca26d3d4	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:01:00+00
0199b218-d6f4-7c4e-9b70-be69d74c3879	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:06:10+00
0199b218-d6f4-7ca3-b51c-b7a90ffdb7b5	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:01:09+00
0199b218-d6f4-75bd-a653-ca7c56cfd5f9	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:35:01+00
0199b218-d6f4-7f57-83ab-0f4a1df1da67	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:33:28+00
0199b218-d6f4-7e27-8146-a5face49df9f	Edward James Newton - BN646	active	f	f	2025-06-26 04:46:05+00
0199b218-d6f4-766e-8f17-0952847a9f62	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:38:54+00
0199b218-d6f4-7026-aadc-0660f8f4debb	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:32:40+00
0199b218-d6f4-70fe-be68-e3884b0ce552	Lily Pickering - BN611	active	f	f	2025-06-26 04:44:05+00
0199b218-d6f4-7b50-b71c-7201f82bad28	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:44:02+00
0199b218-d6f4-77ed-a744-5184dca927ac	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:12:00+00
0199b218-d6f4-7c40-b219-def02405669d	Yogesh Reddy - BN198	active	f	f	2025-06-26 03:10:41+00
0199b218-d6f4-74be-93c1-85e6da426d97	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:50:00+00
0199b218-d6f4-7071-ab17-da52e46f9acb	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:18:01+00
0199b218-d6f4-708c-971b-bd833a20b753	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:50:25+00
0199b218-d6f4-7a7a-94a2-47c9751e210b	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:55:00+00
0199b218-d6f4-7ec8-9d70-e22ce84601f2	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:46:44+00
0199b218-d6f4-7207-a805-e75c871aa031	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:14:10+00
0199b218-d6f4-7fe9-b139-c979f33667f2	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:19:00+00
0199b218-d6f4-7532-a204-6aa506745055	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:17:00+00
0199b218-d6f4-7186-8eba-e5a48910bdab	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:34:40+00
0199b218-d6f4-760d-bfb4-e38871641b14	Tuverea Tuamoto - BN547	active	f	f	2025-06-26 04:33:01+00
0199b218-d6f4-70a8-901f-b7fe2022ab24	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:33:44+00
0199b218-d6f4-716c-9302-5f0a2c916f25	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:17:09+00
0199b218-d6f4-7ea0-a47c-d9546a0189f2	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:53:00+00
0199b218-d6f4-75b7-9f93-5482d8a954b2	Sonam Kumar - BN435	active	f	f	2025-06-26 04:03:49+00
0199b218-d6f4-756e-bfd6-81b52cc608f2	Kritesh Sharma - BN252	active	f	f	2025-06-24 00:56:23+00
0199b218-d6f4-7235-b272-513fab50301c	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:30:19+00
0199b218-d6f4-7049-906b-b8471ca9c62d	Jiale Siga Mar - BN257	active	f	f	2025-06-26 03:43:19+00
0199b218-d6f4-7e0b-8beb-ba47fcb8dccd	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:11:09+00
0199b218-d6f4-7fd1-9bd7-661ce3653163	Iverlyn Maeta - BN655	active	f	f	2025-06-24 03:24:56+00
0199b218-d6f4-7088-99e1-7b01b8b9cd5a	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:36:40+00
0199b218-d6f4-74fd-a525-1cc5d36d0b4b	Nafiza Bibi - BN092	active	f	f	2025-08-04 22:31:21+00
0199b218-d6f4-7905-9db4-0f06d4b0e5a3	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:38:54+00
0199b218-d6f4-74a2-a3c5-9e7b178f67b0	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:16:00+00
0199b218-d6f4-7473-9617-493cb27dbb8b	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:37:53+00
0199b218-d6f4-7dd8-bed7-0d8bdf5765c5	Kalisiana Vuniwaqa - BN561	active	f	f	2025-06-26 04:04:19+00
0199b218-d6f4-7e38-8390-3fcfa102818b	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:34:16+00
0199b218-d6f4-7c96-bb00-0d91eb12f8b5	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:05:00+00
0199b218-d6f4-77f2-90b9-ff984483bdf4	Nanise Valevatu - BN090	active	f	f	2025-08-04 22:30:53+00
0199b218-d6f4-7943-9658-45ea48e2dfad	Ronald Prasad - BN029	active	f	f	2025-06-24 00:59:53+00
0199b218-d6f4-7feb-8de2-ee6b7e9dc6d8	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:47:44+00
0199b218-d6f4-7b23-8d82-8e2ab3a0fbdd	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:39:54+00
0199b218-d6f5-7b31-844a-707daaede198	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-26 03:08:41+00
0199b218-d6f5-7583-8f40-096c657e2e2c	Vilsoni Varea - BN244	active	f	f	2025-08-04 22:28:01+00
0199b218-d6f5-76ab-a8a6-30f8ccfb9b00	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:13:00+00
0199b218-d6f5-77c3-847d-f8c760cb72a7	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:56:09+00
0199b218-d6f5-78c3-9be3-8f117f096e73	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:46:09+00
0199b218-d6f5-7574-ad3f-2f28e4ea3ecf	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:46:43+00
0199b218-d6f5-757f-a19b-9f811484eccc	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:18:11+00
0199b218-d6f5-7b55-99ec-ed892eb10167	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:29:40+00
0199b218-d6f5-7599-8c9f-43bd28ed1b97	Surend Pratap - BN046	active	f	f	2025-06-26 04:46:34+00
0199b218-d6f5-7690-81ac-ad50171663b5	Aminio Tuisavusavu	active	f	f	2025-06-26 04:32:01+00
0199b218-d6f5-724e-963a-ff0a874b13a2	Ronak Cylvian Sharma - BN196	active	f	f	2025-06-26 03:10:11+00
0199b218-d6f5-7f03-bc9a-434f1a466c31	Abdul Hafeez - BN363	active	f	f	2025-08-04 22:50:02+00
0199b218-d6f5-7c00-98af-a6338c7356d6	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:26:01+00
0199b218-d6f5-7f20-94d7-81f157cfe3be	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:27:47+00
0199b218-d6f5-7c65-a458-ba0247e5fed1	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:50:26+00
0199b218-d6f5-7568-b50e-8839e07534d6	Poonam Devi - BN099	active	f	f	2025-08-04 22:26:14+00
0199b218-d6f5-7390-9fd8-95d3bf0748de	Aseri Ravoka - BN411	active	f	f	2025-08-04 22:48:40+00
0199b218-d6f5-7643-ae71-ca332dab2260	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:21:01+00
0199b218-d6f5-7941-8a2b-05c559f42178	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:58:09+00
0199b218-d6f5-7dec-a445-def68084dc75	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:45:43+00
0199b218-d6f5-79cd-873a-7ddeee4a96ff	Iverlyn Maeta - BN655	active	f	f	2025-06-24 03:30:56+00
0199b218-d6f5-7b80-a91f-af5d37066279	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:57:10+00
0199b218-d6f5-7e1c-b67c-b3e2245937fb	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-26 03:02:13+00
0199b218-d6f5-7316-81a0-6b6fc2b84aec	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:38:01+00
0199b218-d6f5-7bef-b048-453ec0fbd329	Umesh Sharma - BN234	active	f	f	2025-08-04 22:49:21+00
0199b218-d6f5-77cf-b437-3d6068315a42	Uraia Makuiveikau - BN393	active	f	f	2025-08-04 22:29:08+00
0199b218-d6f5-78d5-8c33-f4cebbbded76	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:46:00+00
0199b218-d6f5-7752-8b92-364205f03f68	Walesi Vulaono Soro - BN031	active	f	f	2025-06-24 02:07:01+00
0199b218-d6f5-772c-a32c-64c6c6628f3f	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:45:01+00
0199b218-d6f5-7c98-9936-cd9a4ad6cddd	Test Account	active	f	f	2025-06-23 23:57:07+00
0199b218-d6f5-7db8-9670-1e4a252b109a	Mohammed Ifraaz - BN207	active	f	f	2025-06-26 03:11:40+00
0199b218-d6f5-7c46-bea1-849377f5b939	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:55:09+00
0199b218-d6f5-7e9a-9f98-ee13a749ba84	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:32:40+00
0199b218-d6f5-7a40-9d81-bd2f632f0b95	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:29:01+00
0199b218-d6f5-78f1-94d9-e49f695def3c	Iverlyn Maeta - BN655	active	f	f	2025-06-26 04:48:04+00
0199b218-d6f5-7ace-bad5-6027cb933f8d	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:45:10+00
0199b218-d6f5-774f-8310-cf0179cf2870	Iverlyn Maeta - BN655	active	f	f	2025-06-24 03:36:56+00
0199b218-d6f5-79d9-b9f6-1f7914a42cc7	Iverlyn Maeta - BN655	active	f	f	2025-06-24 03:16:48+00
0199b218-d6f5-74d3-bae4-b5928f000681	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:43:01+00
0199b218-d6f5-7067-bd80-55618a46b667	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:44:43+00
0199b218-d6f5-7dae-9212-9b929f7713f2	Iverlyn Maeta - BN655	active	f	f	2025-06-24 03:34:16+00
0199b218-d6f5-71f6-b7e2-0d87d44361e3	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:39:01+00
0199b218-d6f5-7685-a18a-b2fe8447a2e7	Tevita Tuikubulau Karikaritu	active	f	f	2025-06-24 02:09:31+00
0199b218-d6f5-7391-8c2a-043a1cd7945e	Iverlyn Maeta - BN655	active	f	f	2025-06-24 03:20:49+00
0199b218-d6f5-7b31-88e5-acb2d64f9892	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:20:10+00
0199b218-d6f5-7a80-b26c-f7b1ea7602b2	Veniana Wasarua Tuva - BN519	active	f	f	2025-06-26 04:27:31+00
0199b218-d6f5-7727-a415-9264f50dedb1	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:09:01+00
0199b218-d6f5-77b4-b796-190d8981f12a	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:33:44+00
0199b218-d6f5-7c30-9215-4d4f5d0218e9	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:50:09+00
0199b218-d6f6-7ddc-a6ee-f9364d86b1af	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:49:43+00
0199b218-d6f6-727c-80d9-fef7fe2148bb	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:24:01+00
0199b218-d6f6-79d5-8ed3-640e7cf46662	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:59:09+00
0199b218-d6f6-74f9-95e1-67f0d8236b1b	Rashnil Jai - BN556	active	f	f	2025-06-26 04:33:31+00
0199b218-d6f6-7a03-9d9c-f312573e04f7	Test Admin	active	f	f	2025-06-02 20:55:41+00
0199b218-d6f6-7a5b-948d-9a2ccfe52c65	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:07:00+00
0199b218-d6f6-7154-9e0d-57c0e0ca158a	Mohammed Istikar - BN610	active	f	f	2025-06-24 01:01:23+00
0199b218-d6f6-7d15-ba76-4ded9092535c	Hanrieta Sina Yadraca - BN574	active	f	f	2025-06-26 04:05:49+00
0199b218-d6f6-745d-b34c-8a7f5b47711e	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:40:01+00
0199b218-d6f6-7364-8778-083c0fee3feb	Repeka Tukula - BN566	active	f	f	2025-06-26 04:34:01+00
0199b218-d6f6-7cfd-9ff1-730b4c6de98b	Panapasa Meke - BN260	active	f	f	2025-06-26 04:01:19+00
0199b218-d6f6-7667-9ee3-0756edadf578	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:27:01+00
0199b218-d6f6-7e8a-b887-4e8c64eed6e1	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:48:44+00
0199b218-d6f6-7c55-a7d0-08fb903c15bb	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:23:40+00
0199b218-d6f6-7c25-bc63-a1602f34926e	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:31:02+00
0199b218-d6f6-792a-8cea-d437152195a2	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:44:13+00
0199b218-d6f6-7785-b774-22d8d36c6517	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:22:01+00
0199b218-d6f6-7fa9-adac-0557a9c881db	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:51:12+00
0199b218-d6f6-768f-8afe-279aaf27b5b1	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:31:40+00
0199b218-d6f6-7ccb-a9d1-9c8200f6eab9	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:07:09+00
0199b218-d6f6-787b-987d-2c0e71110edf	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:49:44+00
0199b218-d6f6-7c81-a6d2-d75e9aa0a8bd	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:34:14+00
0199b218-d6f6-73e2-a095-526c78cc4bb2	Samuela Paula - BN639	active	f	f	2025-08-04 22:30:03+00
0199b218-d6f6-70f6-9072-234658e30052	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:32:12+00
0199b218-d6f6-795b-8b64-809b7a5d429f	Iverlyn Maeta - BN655	active	f	f	2025-06-24 03:34:56+00
0199b218-d6f6-71bf-88cc-0f06142a085b	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:11:31+00
0199b218-d6f6-75fd-a438-67642a23cf05	Haroon Buksh - BN267	active	f	f	2025-06-24 00:30:19+00
0199b218-d6f6-722f-8595-b1bdade9fd45	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:33:28+00
0199b218-d6f6-732a-9693-ed12efad4e3f	Arieta Marawaqa - BN612	active	f	f	2025-06-26 04:44:34+00
0199b218-d6f6-7638-a670-73e45e55c94c	Mereseini Tawakilai Vubaya - BN197	active	f	f	2025-06-24 00:41:13+00
0199b218-d6f6-7802-a342-3c2bd2dc56b8	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:15:00+00
0199b218-d6f6-7f6e-a41b-07746a49c2a9	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 03:35:40+00
0199b218-d6f6-71d2-a580-87c5acf58c79	Iverlyn Maeta - BN655	active	f	f	2025-06-24 03:15:48+00
0199b218-d6f6-7841-a616-a6a78365b74a	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:25:48+00
0199b218-d6f6-70a7-8330-5c7d4f268c86	Lora Eta Qiqiwaqa - BN246	active	f	f	2025-06-24 00:37:55+00
0199b218-d6f6-7aab-8e22-7517387b2973	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:52:00+00
0199b218-d6f6-7092-974d-1f5f20f283df	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:58:00+00
0199b218-d6f6-79f5-b7e2-9d7ebc8c23b9	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:42:01+00
0199b218-d6f6-7a6c-a186-23b68c9a39b4	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:25:01+00
0199b218-d6f6-791e-8cae-dc0ebd5ee0cf	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:03:09+00
0199b218-d6f6-7cbe-b7fd-5717e334bacc	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:34:00+00
0199b218-d6f6-71f0-a4da-e82075007edd	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:19:01+00
0199b218-d6f6-7ddf-984e-1c8fae88555c	Keleni Naisaboca - BN022	active	f	f	2025-08-04 22:23:34+00
0199b218-d6f6-7829-b4b7-47df7a823ee2	Tevita Tuikubulau Karikaritu - BN128	active	f	f	2025-06-24 02:13:32+00
0199b218-d6f6-71a3-bac6-c6094223756b	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 03:23:47+00
0199b218-d6f6-7d2e-8e65-033e39c0cf33	Aminio Tuisavusavu - BN536	active	f	f	2025-06-24 02:53:09+00
a04b4b12-2686-4336-a9c1-3d279ad6348f	test kevin	active	f	f	2025-10-08 02:40:59.717922+00
be0f217a-44b9-458c-a98b-a9a8a4f5f79e	Kevin Chand	active	f	f	2025-10-08 02:56:53.809707+00
a71b401c-f778-4846-ad14-b56b6e473f2f	Kevin Chand	active	f	f	2025-10-08 03:02:24.870749+00
c1e84789-b824-4040-8cfc-b448def5444d	Kevin Chand	active	f	f	2025-10-08 03:05:27.106616+00
6eae5a7d-349b-4256-b725-cba2ae7ce216	Kevin Chand	active	f	f	2025-10-08 04:25:47.125065+00
4867f938-2a8e-47c2-b93e-319763a01c31	Kevin Chand	active	f	f	2025-10-08 04:30:16.265739+00
c2aaaf3e-7420-4c1d-9f23-a999d0e5fa32	Kevin Chand	active	f	f	2025-10-08 04:31:40.462825+00
8d1ec344-9fdc-4980-b6c4-26ef4ac22c5f	Kaleshwar Chand	active	f	f	2025-10-08 04:34:41.807605+00
fbd6b5b9-bfd4-40eb-b5e6-be1e6a26bc4a	Kaleshwar Chand	active	f	f	2025-10-08 04:40:23.262663+00
4a3f7d4a-4cc2-497c-af47-922787499377	Kaleshwar Chand	active	f	f	2025-10-08 04:43:22.771122+00
e975dffd-d6f1-4743-b8b0-7ebb6f8d473a	Kaleshwar Chand	active	f	f	2025-10-08 04:45:53.190485+00
6c102738-4f93-4287-947d-b8779e8471ad	Kaleshwar Chand	active	f	f	2025-10-08 04:46:28.884366+00
\.


--
-- Data for Name: users_profiles; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.users_profiles (user_profile_id, user_id, title, address, phone_number, email, date_of_birth, profile_pic, notes, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vehicle_makes; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vehicle_makes (id, name, tenant_id, branch_id, isdeleted, updatedat) FROM stdin;
1	Toyota	\N	\N	f	2025-10-05 06:39:28.7076+00
\.


--
-- Data for Name: vehicle_models; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vehicle_models (id, make_id, name, tenant_id, branch_id, isdeleted, updatedat) FROM stdin;
1	1	Corolla	\N	\N	f	2025-10-05 06:39:28.710562+00
\.


--
-- Data for Name: vehicle_report_comments; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vehicle_report_comments (id, report_id, user_id, comment, tenant_id, branch_id, created_at, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vehicle_report_parts; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vehicle_report_parts (id, report_id, part_name, quantity, repair_cost, tenant_id, branch_id, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vehicle_reports; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vehicle_reports (id, vehicle_id, driver_id, report_type, description, status, assigned_to, tenant_id, branch_id, created_at, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vehicle_services; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vehicle_services (id, vehicle_id, service_type_id, service_date, odometer, notes, cost, tenant_id, branch_id, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vehicle_trip_points; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vehicle_trip_points (id, trip_id, latitude, longitude, recorded_at, tenant_id, branch_id, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vehicle_trips; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vehicle_trips (id, vehicle_id, driver_id, trip_date, start_time, end_time, start_location, start_latitude, start_longitude, end_location, end_latitude, end_longitude, distance_km, status, start_mileage, end_mileage, tenant_id, branch_id, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vehicle_types; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vehicle_types (id, name, tenant_id, branch_id, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vehicles; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vehicles (id, make, model, vehicle_number, vin, engine_number, mileage, year, type, fitness_expires, tenant_id, branch_id, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vendor_addresses; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vendor_addresses (vendor_address_id, vendor_id, address_type, line1, line2, city, state_region, postal_code, country_code, is_primary, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vendor_bank_accounts; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vendor_bank_accounts (vendor_bank_account_id, vendor_id, bank_name, account_number, account_name, branch_name, swift_code, currency, is_primary, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vendor_capabilities; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vendor_capabilities (vendor_capability_id, vendor_id, capability_category, capability_description, experience_years, certifications, capacity_notes, competency_score, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vendor_certificates; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vendor_certificates (vendor_certificate_id, vendor_id, certificate_name, description, expiry_date, issued_at, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vendor_contacts; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vendor_contacts (vendor_contact_id, vendor_id, contact_name, contact_role, email, phone_number, is_primary, notes, created_at, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vendor_documents; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vendor_documents (vendor_document_id, vendor_id, filetype, doc_type, file_url, validity, isdeleted, updatedat) FROM stdin;
0199b318-c966-713c-a889-ee8e959df0df	0194a8b2-1001-7123-8123-123456789a01	\N	business_license	\N	2026-04-03	f	2025-10-05 06:39:30.149627+00
0199b318-c967-7f4a-820a-826b30d3a397	0194a8b2-1001-7123-8123-123456789a01	\N	insurance_certificate	\N	2025-09-30	f	2025-10-05 06:39:30.149627+00
0199b318-c967-73b8-bd7c-4badced59012	0194a8b2-1002-7123-8123-123456789a02	\N	business_license	\N	2026-01-03	f	2025-10-05 06:39:30.149627+00
0199b318-c967-76d8-b28d-956c0993f1a3	0194a8b2-1003-7123-8123-123456789a03	\N	business_license	\N	2026-10-05	f	2025-10-05 06:39:30.149627+00
0199b318-c99f-7f99-87f1-ddea0121df2e	0194a8b2-1002-7123-8123-123456789a02	pdf	insurance_certificate	https://example.com/docs/Island_Supplies_Ltd_insurance.pdf	2025-09-25	f	2025-10-05 06:39:30.207545+00
0199b318-c99f-7e8d-b96e-460c6faa31b1	0194a8b2-1003-7123-8123-123456789a03	pdf	insurance_certificate	https://example.com/docs/Coral_Tech_Traders_insurance.pdf	2025-09-25	f	2025-10-05 06:39:30.207545+00
\.


--
-- Data for Name: vendor_emails; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vendor_emails (vendor_email_id, vendor_id, email, is_primary, verified_at, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vendor_invoices; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vendor_invoices (vendor_invoice_id, org_id, purchase_order_id, invoice_number, invoice_date, amount, status, isdeleted, updatedat) FROM stdin;
0199b318-c962-720b-93b7-c92c92949440	0194a8b2-1234-7123-8123-123456789abc	0199b318-c95b-7bfc-8abd-19d035812d69	INV-CTT-2025-001	2025-08-02	14800.00	paid	f	2025-10-05 06:39:30.14563+00
0199b318-c963-7960-b73d-81cdc146935a	0194a8b2-1234-7123-8123-123456789abc	0199b318-c95b-75ef-851b-f6335b2c6f8b	INV-ISL-2025-005	2025-08-03	820.00	paid	f	2025-10-05 06:39:30.14563+00
0199b318-c963-7d99-bf29-5ff4d5129b9f	0194a8b2-1234-7123-8123-123456789abc	0199b318-c95b-760f-a4c4-bf0ea273b468	INV-CTT-2025-008	2025-08-23	17500.00	paid	f	2025-10-05 06:39:30.14563+00
0199b318-c963-7bd1-a874-0db014e42deb	0194a8b2-1234-7123-8123-123456789abc	0199b318-c95b-721d-888d-26c1dba72f19	INV-PIT-2025-003	2025-08-12	19600.00	pending	f	2025-10-05 06:39:30.14563+00
0199b318-c963-74ca-9974-5bf2dc52c19e	0194a8b2-1234-7123-8123-123456789abc	0199b318-c95b-7822-bbe0-93924bdf244c	INV-ISL-2025-007	2025-08-26	7800.00	approved	f	2025-10-05 06:39:30.14563+00
0199b318-c963-75db-8ab5-e3ad0acf5b17	0194a8b2-1234-7123-8123-123456789abc	0199b318-c95b-77a8-9b05-467969b4bb27	INV-CTT-2025-004	2025-08-16	3500.00	paid	f	2025-10-05 06:39:30.14563+00
0199b318-c963-7c17-aa37-d091b78f7e71	0194a8b2-1234-7123-8123-123456789abc	0199b318-c95b-7228-aaff-17229f583768	INV-PIT-2025-009	2025-09-01	34500.00	pending	f	2025-10-05 06:39:30.14563+00
0199b318-c963-711e-9e20-8cfa941daace	0194a8b2-1234-7123-8123-123456789abc	0199b318-c95b-7ed1-9e61-86be768ae6e5	INV-PIT-2025-011	2025-09-11	7100.00	approved	f	2025-10-05 06:39:30.14563+00
0199b318-c963-75da-ace3-2a17a8b2b9b0	0194a8b2-1234-7123-8123-123456789abc	0199b318-c95b-7045-aaa9-3fc3fe3162ab	INV-PIT-2025-007	2025-08-21	11500.00	paid	f	2025-10-05 06:39:30.14563+00
0199b318-c963-767a-9a55-5d55fc46baa8	0194a8b2-1234-7123-8123-123456789abc	0199b318-c95b-721d-888d-26c1dba72f19	INV-PIT-2025-004	2025-08-16	4900.00	pending	f	2025-10-05 06:39:30.14563+00
0199b318-c963-7e24-bd00-ad50e54b589d	0194a8b2-1234-7123-8123-123456789abc	0199b318-c95b-70fe-b392-376549043eb8	INV-PIT-2025-010	2025-09-06	9200.00	overdue	f	2025-10-05 06:39:30.14563+00
0199b318-c963-7d4e-bec5-c48ad5c139fb	0194a8b2-1234-7123-8123-123456789abc	0199b318-c95b-7ff2-9d53-e96587fa60a7	INV-ISL-2025-012	2025-09-13	4950.00	pending	f	2025-10-05 06:39:30.14563+00
0199b318-c963-7454-be0a-276b28702491	0194a8b2-1234-7123-8123-123456789abc	0199b318-c95b-7cc5-ba70-3b78d9fe5ca4	INV-ISL-2025-009	2025-09-02	5200.00	rejected	f	2025-10-05 06:39:30.14563+00
0199b318-c963-7973-a242-bc89b4bd2a39	0194a8b2-1234-7123-8123-123456789abc	0199b318-c95b-7331-bd61-f221eff4c4e3	INV-CTT-2025-010	2025-09-11	6650.00	approved	f	2025-10-05 06:39:30.14563+00
\.


--
-- Data for Name: vendor_performance_metrics; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vendor_performance_metrics (vendor_performance_metric_id, vendor_id, period_start, period_end, kpi_name, kpi_value, rating, reviewer_id, comments, created_at, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vendor_phone_numbers; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vendor_phone_numbers (vendor_phone_id, vendor_id, phone_number, is_primary, verified_at, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vendor_quote_items; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vendor_quote_items (quote_item_id, quote_id, rfq_item_id, is_alternate, alt_label, unit_price, tax, lead_time_days, notes) FROM stdin;
0194a8b2-50a1-7123-8123-123456789a60	0194a8b2-40a1-7123-8123-123456789a50	900001	f	\N	10500.0000	0.1500	21	Main switches
0194a8b2-50a2-7123-8123-123456789a61	0194a8b2-40a1-7123-8123-123456789a50	900002	f	\N	750.0000	0.1500	21	SFP+ SR
0194a8b2-50a3-7123-8123-123456789a62	0194a8b2-40a2-7123-8123-123456789a51	900001	f	\N	9900.0000	0.1200	30	Alt brand
0194a8b2-50a4-7123-8123-123456789a63	0194a8b2-40a2-7123-8123-123456789a51	900002	f	\N	700.0000	0.1200	30	SR transceiver
0194a8b2-50a5-7123-8123-123456789a64	0194a8b2-40a3-7123-8123-123456789a52	900021	f	\N	1420.0000	0.1300	120	Tier-1 panels with 10-year warranty
0194a8b2-50a6-7123-8123-123456789a65	0194a8b2-40a3-7123-8123-123456789a52	900022	f	\N	28500.0000	0.1300	150	Battery racks including BMS integration
0194a8b2-50a7-7123-8123-123456789a66	0194a8b2-40a4-7123-8123-123456789a53	900021	f	\N	1500.0000	0.1500	140	Panels with extended warranty
0194a8b2-50a8-7123-8123-123456789a67	0194a8b2-40a4-7123-8123-123456789a53	900022	f	\N	31000.0000	0.1500	160	Battery racks with onsite commissioning
0194a8b2-50a9-7123-8123-123456789a68	0194a8b2-40a5-7123-8123-123456789a54	900021	t	Staggered delivery	1380.0000	0.1200	150	Alternate delivery schedule proposed
0194a8b2-50b0-7123-8123-123456789a69	0194a8b2-40a6-7123-8123-123456789a55	900031	f	\N	6800.0000	0.1200	30	Monthly lease per vehicle
0194a8b2-50b1-7123-8123-123456789a6a	0194a8b2-40a6-7123-8123-123456789a55	900032	f	\N	350.0000	0.1200	30	Maintenance per vehicle
0194a8b2-50b2-7123-8123-123456789a6b	0194a8b2-40a7-7123-8123-123456789a56	900031	f	\N	7050.0000	0.1200	35	Monthly lease per vehicle (Island Supplies)
0194a8b2-50b3-7123-8123-123456789a6c	0194a8b2-40a7-7123-8123-123456789a56	900032	f	\N	375.0000	0.1200	35	Maintenance bundle
0199b318-c94a-789a-9e5e-c2f54d9de856	0199b318-c949-7b52-8b06-23eb721b0bb8	1	f	\N	75000.0000	0.0000	90	Per scope of work
0199b318-c94a-7a76-81fa-c018f99f2708	0199b318-c949-7b52-8b06-23eb721b0bb8	2	f	\N	2500.0000	0.0000	30	Monthly support rate
\.


--
-- Data for Name: vendor_quotes; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vendor_quotes (quote_id, rfq_id, invite_id, vendor_id, currency, total_amount, tax_total, delivery_days, valid_thru, notes, attachments, revision_no, submitted_at, status, created_at, updatedat) FROM stdin;
0194a8b2-40a1-7123-8123-123456789a50	0194a8b2-00f1-7123-8123-123456789a10	0194a8b2-20a1-7123-8123-123456789a20	0194a8b2-1001-7123-8123-123456789a01	FJD	125000.00	15000.00	21	2025-11-04	Includes onsite install	\N	1	\N	submitted	2025-10-05 06:39:30.111277+00	2025-10-05 06:39:30.111277+00
0194a8b2-40a2-7123-8123-123456789a51	0194a8b2-00f1-7123-8123-123456789a10	0194a8b2-20a2-7123-8123-123456789a21	0194a8b2-1002-7123-8123-123456789a02	FJD	118000.00	14160.00	28	2025-11-19	Alternative brand offered	\N	1	\N	submitted	2025-10-05 06:39:30.111277+00	2025-10-05 06:39:30.111277+00
0194a8b2-40a3-7123-8123-123456789a52	0194a8b2-00f3-7123-8123-123456789a12	0194a8b2-20a5-7123-8123-123456789a24	0194a8b2-1004-7123-8123-123456789a04	FJD	295000.00	38400.00	120	2025-09-25	Includes design optimization and onsite training	\N	2	\N	submitted	2025-08-21 06:39:30.111277+00	2025-09-17 06:39:30.111277+00
0194a8b2-40a4-7123-8123-123456789a53	0194a8b2-00f3-7123-8123-123456789a12	0194a8b2-20a4-7123-8123-123456789a23	0194a8b2-1001-7123-8123-123456789a01	FJD	312500.00	40625.00	135	2025-09-27	Extended warranty requested	\N	1	\N	submitted	2025-08-20 06:39:30.111277+00	2025-09-18 06:39:30.111277+00
0194a8b2-40a5-7123-8123-123456789a54	0194a8b2-00f3-7123-8123-123456789a12	0194a8b2-20a6-7123-8123-123456789a25	0194a8b2-1005-7123-8123-123456789a05	FJD	340000.00	44200.00	140	2025-09-23	Pending board approval	\N	1	\N	withdrawn	2025-08-22 06:39:30.111277+00	2025-09-05 06:39:30.111277+00
0194a8b2-40a6-7123-8123-123456789a55	0194a8b2-00f4-7123-8123-123456789a13	0194a8b2-20a8-7123-8123-123456789a27	0194a8b2-1004-7123-8123-123456789a04	FJD	98000.00	11760.00	30	2025-10-02	Includes replacement vehicles clause	\N	3	\N	final	2025-07-12 06:39:30.111277+00	2025-10-03 06:39:30.111277+00
0194a8b2-40a7-7123-8123-123456789a56	0194a8b2-00f4-7123-8123-123456789a13	0194a8b2-20a7-7123-8123-123456789a26	0194a8b2-1002-7123-8123-123456789a02	FJD	102500.00	12812.50	35	2025-09-30	Recommends quarterly service reviews	\N	2	\N	submitted	2025-07-11 06:39:30.111277+00	2025-09-29 06:39:30.111277+00
0199b318-c949-7b52-8b06-23eb721b0bb8	0194a8b2-00f5-7123-8123-123456789a14	0199b318-c948-77a5-8432-b27d88eb8e64	0194a8b2-1001-7123-8123-123456789a01	FJD	105000.00	0.00	120	2025-11-19	Two-envelope submission with technical and financial proposals attached.	[{"label": "Technical Proposal", "envelope": "technical", "file_url": "/storage/uploads/documents/mobile_banking_proposal.md", "filename": "mobile_banking_proposal.md", "filetype": "md", "media_type": "text/markdown"}, {"label": "Financial Proposal", "envelope": "financial", "file_url": "/storage/uploads/documents/financial_proposal.md", "filename": "financial_proposal.md", "filetype": "md", "media_type": "text/markdown"}]	1	\N	submitted	2025-10-05 06:39:30.120237+00	2025-10-05 06:39:30.120237+00
\.


--
-- Data for Name: vendor_supporting_docs; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vendor_supporting_docs (vendor_supporting_doc_id, vendor_id, filetype, type, file_url, validity, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: vendors; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.vendors (vendor_id, vendorname, businessregnumber, tin, num_employees, company_size, org_id, lifecycle_status, last_reviewed_at, avg_rating, created_at, isdeleted, updatedat) FROM stdin;
0199b318-c8a2-79d7-8180-5ee1f23696bd	Acme Corp	\N	\N	\N	\N	\N	pending	\N	\N	2025-10-05 06:39:29.95381+00	f	2025-10-05 06:39:29.95381+00
0199b318-c8a3-7135-92cc-8c353ac7951c	Global Supplies	\N	\N	\N	\N	\N	pending	\N	\N	2025-10-05 06:39:29.95381+00	f	2025-10-05 06:39:29.95381+00
0199b318-c8a3-7035-ab3e-cffe6df078d2	Demo Vendor	\N	\N	\N	\N	\N	pending	\N	\N	2025-10-05 06:39:29.95381+00	f	2025-10-05 06:39:29.95381+00
0194a8b2-1001-7123-8123-123456789a01	Pacific IT Solutions	\N	\N	50	SME	0194a8b2-1234-7123-8123-123456789abc	active	\N	\N	2025-10-05 06:39:30.05671+00	f	2025-10-05 06:39:30.05671+00
0194a8b2-1002-7123-8123-123456789a02	Island Supplies Ltd	\N	\N	20	Small	0194a8b2-1234-7123-8123-123456789abc	active	\N	\N	2025-10-05 06:39:30.05671+00	f	2025-10-05 06:39:30.05671+00
0194a8b2-1003-7123-8123-123456789a03	Coral Tech Traders	\N	\N	100	Large	0194a8b2-1234-7123-8123-123456789abc	active	\N	\N	2025-10-05 06:39:30.05671+00	f	2025-10-05 06:39:30.05671+00
0194a8b2-1004-7123-8123-123456789a04	Blue Lagoon Engineering	\N	\N	65	SME	0194a8b2-1234-7123-8123-123456789abc	active	\N	\N	2025-10-05 06:39:30.05671+00	f	2025-10-05 06:39:30.05671+00
0194a8b2-1005-7123-8123-123456789a05	Sunrise Logistics Co	\N	\N	150	Large	0194a8b2-1234-7123-8123-123456789abc	active	\N	\N	2025-10-05 06:39:30.05671+00	f	2025-10-05 06:39:30.05671+00
\.


--
-- Data for Name: view_filters; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.view_filters (id, view_id, tenant_id, branch_id, field_name, operator, value, order_index, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: violation_types; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.violation_types (id, name, handbook_ref, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: work_types; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.work_types (work_type_id, name, org_id, isdeleted, updatedat) FROM stdin;
0199b318-c38f-7594-b6f5-be2ae50f703f	Research	\N	f	2025-10-05 06:39:28.654006+00
0199b318-c38f-7ca5-b060-659d00a876f3	Drafting	\N	f	2025-10-05 06:39:28.654006+00
0199b318-c38f-78ff-a590-df53026acf98	Review	\N	f	2025-10-05 06:39:28.654006+00
0199b318-c38f-7ef9-87f9-c4980dadeb12	Client Meeting	\N	f	2025-10-05 06:39:28.654006+00
0199b318-c38f-7065-8cd2-ebb83abdd4e6	Court Preparation	\N	f	2025-10-05 06:39:28.654006+00
0199b318-c38f-7564-81e5-db7c661813a6	Court Appearance	\N	f	2025-10-05 06:39:28.654006+00
0199b318-c38f-7597-801d-a2f37564868e	Document Preparation	\N	f	2025-10-05 06:39:28.654006+00
0199b318-c38f-7e71-bb04-1fb506b6e754	Administrative	\N	f	2025-10-05 06:39:28.654006+00
\.


--
-- Data for Name: workcom_inspection_types; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.workcom_inspection_types (id, name, form_id, tenant_id, branch_id, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: workcom_inspections; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.workcom_inspections (id, date, location, short_description, inspector_id, inspection_type_id, workplace_id, inspection_request_id, form_data, tenant_id, branch_id, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: workflow_approvals; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.workflow_approvals (id, workflow_id, step_order, approver_role, status, record_id, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: workflow_event_triggers; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.workflow_event_triggers (id, event_name, table_name, trigger_type, form_id, operations, field_map, isdeleted, updatedat) FROM stdin;
1	workplace.registration.created	workplace_registrations	insert	\N	["insert"]	{"id":"id","assigned_reviewer_id":"assigned_reviewer_id"}	f	2025-10-05 06:39:28.828418+00
2	workplace.inspection.created	workplace_inspections	insert	\N	["insert"]	{"id":"id","location":"location","inspection_type_id":"inspection_type_id","inspector_id":"inspector_id"}	f	2025-10-05 06:39:28.840594+00
3	workplace.registration.certificate	workplace_registrations	update	\N	["update"]	{"id":"id"}	f	2025-10-05 06:39:29.129793+00
\.


--
-- Data for Name: workflow_instances; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.workflow_instances (id, workflow_id, record_id, current_state_id, started_by, status, started_at, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: workflow_states; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.workflow_states (id, workflow_id, name, state_order, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: workflow_step_types; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.workflow_step_types (id, type, description, metadata, isdeleted, updatedat) FROM stdin;
1	start	Workflow entry point	{"trigger":""}	f	2025-10-05 06:39:28.720355+00
2	save_record	Insert or update a record	{"table":"","data":{},"match":{}}	f	2025-10-05 06:39:28.720355+00
3	sms	Send an SMS notification	{"to":"","message":""}	f	2025-10-05 06:39:28.720355+00
4	http_request	HTTP request to external API	{"url":"","method":"GET"}	f	2025-10-05 06:39:28.720355+00
5	alert	Send a push notification	{"title":"","body":""}	f	2025-10-05 06:39:28.720355+00
6	create_task	Add a kanban board task	{"column_id":0,"title":""}	f	2025-10-05 06:39:28.720355+00
7	add_calendar_event	Create a calendar event	{"title":"","start_time":"","end_time":""}	f	2025-10-05 06:39:28.720355+00
8	open_form	Open a form for the user	{"form_id":0}	f	2025-10-05 06:39:28.720355+00
9	condition	Evaluate workflow conditions	{"conditions":[]}	f	2025-10-05 06:39:28.720355+00
10	query_budget	Load remaining budget for a category	{"category":"","context_key":"budget_amount"}	f	2025-10-05 06:39:28.720355+00
11	map_fields	Copy values between context fields	{"map":{}}	f	2025-10-05 06:39:28.720355+00
12	load_record	Load a record into context	{"table":"","id_key":"id","context_key":"record"}	f	2025-10-05 06:39:28.720355+00
13	query_records	Query records from a table	{"table":"","where":{},"context_key":"records"}	f	2025-10-05 06:39:28.720355+00
14	for_each_record	Execute steps for each record	{"list_key":"records","steps":[]}	f	2025-10-05 06:39:28.720355+00
15	queue_notification	Queue a notification payload	{"entity":"","record_id":"","event_type":"insert","payload":null}	f	2025-10-05 06:39:28.720355+00
\.


--
-- Data for Name: workflow_steps; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.workflow_steps (id, workflow_id, step_order, step_type, config, tenant_id, department_id, isdeleted, updatedat) FROM stdin;
1	1	1	open_modal	{"modal":"dashboard_card_permissions"}	\N	\N	f	2025-10-05 06:39:28.70561+00
2	2	1	schedule_services	{}	\N	\N	f	2025-10-05 06:39:28.71628+00
3	3	1	query_records	{"table":"time_clocks","where":{"user_id":"{user_ids}","clocked_at":{"clause":"clocked_at >= ? AND clocked_at <= ?","params":["{start_date}","{end_date}"]},"is_deleted":false},"order_by":"user_id, clocked_at","context_key":"raw_time_clocks"}	\N	\N	f	2025-10-05 06:39:28.718671+00
4	3	2	validate_data	{"source":"raw_time_clocks","validation_rules":[{"field":"user_id","type":"uuid","required":true},{"field":"clocked_at","type":"timestamp","required":true},{"field":"clock_type","type":"string","required":true}],"context_key":"validated_time_clocks","error_key":"validation_errors"}	\N	\N	f	2025-10-05 06:39:28.718671+00
5	3	3	group_records	{"source":"validated_time_clocks","group_fields":["user_id","work_date"],"date_function":"DATE(clocked_at)","context_key":"grouped_by_user_date"}	\N	\N	f	2025-10-05 06:39:28.718671+00
6	3	4	calculate_time_difference	{"source":"grouped_by_user_date","start_field":"clock_in_time","end_field":"clock_out_time","result_field":"duration_minutes","unit":"minutes","context_key":"records_with_duration"}	\N	\N	f	2025-10-05 06:39:28.718671+00
7	3	5	apply_break_rules	{"source":"records_with_duration","duration_field":"duration_minutes","result_field":"net_duration_minutes","break_rules":[{"threshold_minutes":480,"break_minutes":60},{"threshold_minutes":300,"break_minutes":30}],"context_key":"records_with_breaks_applied"}	\N	\N	f	2025-10-05 06:39:28.718671+00
8	3	6	calculate_overtime	{"source":"records_with_breaks_applied","duration_field":"net_duration_minutes","result_field":"overtime_minutes","overtime_rules":[{"threshold_minutes":480,"rate":1.5}],"context_key":"records_with_overtime"}	\N	\N	f	2025-10-05 06:39:28.718671+00
9	3	7	aggregate_by_user	{"source":"records_with_overtime","user_field":"user_id","aggregate_fields":[{"field":"duration_minutes","operation":"sum","result_field":"total_duration_minutes"},{"field":"net_duration_minutes","operation":"sum","result_field":"total_net_minutes"},{"field":"overtime_minutes","operation":"sum","result_field":"total_overtime_minutes"},{"field":"regular_time_minutes","operation":"sum","result_field":"total_regular_minutes"},{"field":"total_payable_minutes","operation":"sum","result_field":"total_payable_minutes"},{"field":"record_count","operation":"sum","result_field":"total_days_worked"}],"context_key":"user_aggregates"}	\N	\N	f	2025-10-05 06:39:28.718671+00
10	3	8	generate_report	{"source":"user_aggregates","report_type":"hours_aggregation","include_fields":["user_id","user_name","department","org_id","total_duration_minutes","total_net_minutes","total_overtime_minutes","total_regular_minutes","total_payable_minutes","total_days_worked","date_range"],"sort_by":{"field":"total_payable_minutes","direction":"desc"},"context_key":"final_report"}	\N	\N	f	2025-10-05 06:39:28.718671+00
11	3	9	export_data	{"source":"final_report.data","format":"{export_format}","filename":"hours_aggregation_report_{start_date}_to_{end_date}","include_fields":["user_id","user_name","department","total_duration_minutes","total_net_minutes","total_overtime_minutes","total_regular_minutes","total_payable_minutes","total_days_worked"],"context_key":"export_result"}	\N	\N	f	2025-10-05 06:39:28.718671+00
12	3	10	save_record	{"table":"time_clock_aggregates","data":{"org_id":"{org_id}","user_id":"user_id","start_date":"{start_date}","end_date":"{end_date}","total_duration_minutes":"total_duration_minutes","total_net_minutes":"total_net_minutes","total_overtime_minutes":"total_overtime_minutes","total_regular_minutes":"total_regular_minutes","total_payable_minutes":"total_payable_minutes","total_days_worked":"total_days_worked"},"match":{"org_id":"{org_id}","user_id":"user_id","start_date":"{start_date}","end_date":"{end_date}"},"context_key":"saved_aggregates"}	\N	\N	f	2025-10-05 06:39:28.718671+00
13	4	1	map_fields	{"map":{"user_id":"id"}}	\N	\N	f	2025-10-05 06:39:28.788608+00
14	4	2	ensure_group	{"name":"Drivers"}	\N	\N	f	2025-10-05 06:39:28.788608+00
15	4	3	save_record	{"table":"user_group_memberships","data":{"user_id":"{user_id}","group_id":"{group_id}","role":"Driver"}}	\N	\N	f	2025-10-05 06:39:28.788608+00
16	4	4	load_record	{"table":"users","id_key":"user_id","context_key":"user"}	\N	\N	f	2025-10-05 06:39:28.788608+00
17	4	5	queue_notification	{"entity":"users","record_id":"{user_id}","event_type":"insert","payload":"{user}"}	\N	\N	f	2025-10-05 06:39:28.788608+00
18	5	1	map_fields	{"map":{"user_id":"id"}}	\N	\N	f	2025-10-05 06:39:28.789781+00
19	5	2	ensure_group	{"name":"Lawyers"}	\N	\N	f	2025-10-05 06:39:28.789781+00
20	5	3	save_record	{"table":"user_group_memberships","data":{"user_id":"{user_id}","group_id":"{group_id}","role":"Lawyer"}}	\N	\N	f	2025-10-05 06:39:28.789781+00
21	5	4	load_record	{"table":"users","id_key":"user_id","context_key":"user"}	\N	\N	f	2025-10-05 06:39:28.789781+00
22	5	5	queue_notification	{"entity":"users","record_id":"{user_id}","event_type":"insert","payload":"{user}"}	\N	\N	f	2025-10-05 06:39:28.789781+00
23	6	1	map_fields	{"map":{"user_id":"id"}}	\N	\N	f	2025-10-05 06:39:28.791156+00
24	6	2	ensure_group	{"name":"Fleet Engineers"}	\N	\N	f	2025-10-05 06:39:28.791156+00
25	6	3	save_record	{"table":"user_group_memberships","data":{"user_id":"{user_id}","group_id":"{group_id}","role":"Fleet Engineer"}}	\N	\N	f	2025-10-05 06:39:28.791156+00
26	6	4	load_record	{"table":"users","id_key":"user_id","context_key":"user"}	\N	\N	f	2025-10-05 06:39:28.791156+00
27	6	5	queue_notification	{"entity":"users","record_id":"{user_id}","event_type":"insert","payload":"{user}"}	\N	\N	f	2025-10-05 06:39:28.791156+00
28	7	1	map_fields	{"map":{"user_id":"id"}}	\N	\N	f	2025-10-05 06:39:28.792522+00
29	7	2	save_record	{"table":"users","data":{"full_name":"{full_name}","password":"{password}"},"context_key":"user_id"}	\N	\N	f	2025-10-05 06:39:28.792522+00
30	7	3	ensure_group	{"name":"Investigators"}	\N	\N	f	2025-10-05 06:39:28.792522+00
31	7	4	save_record	{"table":"user_group_memberships","data":{"user_id":"{user_id}","group_id":"{group_id}","role":"Investigator"}}	\N	\N	f	2025-10-05 06:39:28.792522+00
32	7	5	load_record	{"table":"users","id_key":"user_id","context_key":"user"}	\N	\N	f	2025-10-05 06:39:28.792522+00
33	7	6	queue_notification	{"entity":"users","record_id":"{user_id}","event_type":"insert","payload":"{user}"}	\N	\N	f	2025-10-05 06:39:28.792522+00
34	8	1	open_modal	{"modal":"Invoice Configuration"}	\N	\N	f	2025-10-05 06:39:28.816937+00
35	9	1	map_fields	{"map":{"id":"time_entry_id"}}	\N	\N	f	2025-10-05 06:39:28.822295+00
36	9	2	save_record	{"table":"time_entries","data":{"comments":"{comments}","status":"Approved"},"match":{"id":"{id}"}}	\N	\N	f	2025-10-05 06:39:28.822295+00
37	9	3	load_record	{"table":"time_entries","id_key":"id","context_key":"time_entry"}	\N	\N	f	2025-10-05 06:39:28.822295+00
38	9	4	queue_notification	{"entity":"time_entries","record_id":"{id}","payload":"{time_entry}"}	\N	\N	f	2025-10-05 06:39:28.822295+00
39	10	1	map_fields	{"map":{"id":"time_entry_id"}}	\N	\N	f	2025-10-05 06:39:28.824576+00
40	10	2	save_record	{"table":"time_entries","data":{"comments":"{comments}","status":"Rejected"},"match":{"id":"{time_entry_id}"}}	\N	\N	f	2025-10-05 06:39:28.824576+00
41	10	3	load_record	{"table":"time_entries","id_key":"id","context_key":"time_entry"}	\N	\N	f	2025-10-05 06:39:28.824576+00
42	10	4	queue_notification	{"entity":"time_entries","record_id":"{id}","payload":"{time_entry}"}	\N	\N	f	2025-10-05 06:39:28.824576+00
43	11	1	query_records	{"table":"inspection_assignment_rules","where":{"district_id":"{district_id}"},"context_key":"rules"}	\N	\N	f	2025-10-05 06:39:28.834937+00
44	11	2	map_fields	{"map":{"inspector_id":"rules.0.inspector_id"}}	\N	\N	f	2025-10-05 06:39:28.836916+00
45	11	3	save_record	{"table":"workplace_inspections","data":{"inspector_id":"{inspector_id}"},"match":{"id":"{id}"}}	\N	\N	f	2025-10-05 06:39:28.83882+00
46	12	1	query_records	{"table":"workplace_registrations","where":{"id":"{workplace_id}"},"context_key":"registration"}	\N	\N	f	2025-10-05 06:39:28.84387+00
47	12	2	map_fields	{"map":{"district_id":"registration.0.district","company_name":"registration.0.company_name","contact_person":"registration.0.contact_person","contact_email":"registration.0.contact_email","contact_phone":"registration.0.contact_phone","contact_telephone_number":"registration.0.contact_telephone_number","branch_id":"registration.0.branch_id","tenant_id":"registration.0.tenant_id"}}	\N	\N	f	2025-10-05 06:39:28.845785+00
48	12	3	query_records	{"table":"inspection_assignment_rules","where":{"district_id":"{district_id}"},"context_key":"rules"}	\N	\N	f	2025-10-05 06:39:28.847874+00
49	12	4	map_fields	{"map":{"inspector_id":"rules.0.inspector_id","assignee_id":"rules.0.inspector_id"}}	\N	\N	f	2025-10-05 06:39:28.849844+00
50	12	5	create_task	{"column_id" : 1, "title" : "Workplace Inspection - {company_name}", "description" : "Inspection for {company_name}", "assignee_id" : "{assignee_id}", "due_date" : "{due_date}"}	\N	\N	f	2025-10-05 06:39:28.852008+00
51	12	6	add_calendar_event	{"title" : "Workplace Inspection", "start_time" : "{due_date}", "category_id" : 1, "user_id" : "{assignee_id}"}	\N	\N	f	2025-10-05 06:39:28.854519+00
52	13	1	load_record	{"table":"ohs_incidents","id_key":"record_id","context_key":"incident"}	\N	\N	f	2025-10-05 06:39:29.038692+00
53	13	2	query_records	{"table":"incident_alert_rules","where":{"incident_type_id":"{classification}","severity":"{severity}","location_id":"{location_id}"},"context_key":"recipients"}	\N	\N	f	2025-10-05 06:39:29.038692+00
54	13	3	for_each_record	{"list_key":"recipients","steps":[{"type":"condition","field":"send_email","operator":"==","value":true},{"type":"email","to":"{email}","message":"Incident {record_id} reported"},{"type":"condition","field":"send_sms","operator":"==","value":true},{"type":"sms","to":"{phone}","message":"Incident {record_id} reported"},{"type":"condition","field":"send_push","operator":"==","value":true},{"type":"alert","user_id":"{send_alert_to}","title":"New Incident","body":"Incident {record_id} reported"}]}	\N	\N	f	2025-10-05 06:39:29.038692+00
55	14	1	save_record	{"table":"workplace_registrations","data":{"status":"approved"},"match":{"id":"{id}"}}	\N	\N	f	2025-10-05 06:39:29.112506+00
56	14	2	map_fields	{"map":{"tenant_id":"tenant_id"}}	\N	\N	f	2025-10-05 06:39:29.114547+00
57	14	3	create_invoice	{}	\N	\N	f	2025-10-05 06:39:29.116768+00
58	14	4	save_record	{"table":"workplace_registrations","data":{"invoice_id":"{invoice_id}"},"match":{"id":"{id}"}}	\N	\N	f	2025-10-05 06:39:29.118948+00
59	14	5	queue_notification	{"entity":"workplace_registrations","record_id":"{id}","event_type":"update","payload":{"invoice_id":"{invoice_id}"}}	\N	\N	f	2025-10-05 06:39:29.12114+00
60	14	6	open_modal	{"modal":"Workplace Invoice Preview"}	\N	\N	f	2025-10-05 06:39:29.123325+00
61	15	1	create_certificate	{"template_id" : 1, "submission_id_key" : "id", "status" : "issued"}	\N	\N	f	2025-10-05 06:39:29.127137+00
62	15	2	generate_certificate_document	{}	\N	\N	f	2025-10-05 06:39:29.127137+00
63	15	3	queue_notification	{"entity":"form_certificates","record_id":"{certificate_id}","event_type":"update"}	\N	\N	f	2025-10-05 06:39:29.127137+00
64	15	4	open_modal	{"modal":"Certificates"}	\N	\N	f	2025-10-05 06:39:29.127137+00
\.


--
-- Data for Name: workflow_tasks; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.workflow_tasks (id, instance_id, state_id, assignee_user_id, assignee_role, status, due_at, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: workflow_transitions; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.workflow_transitions (id, workflow_id, from_state_id, to_state_id, action, conditions, transition_order, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: workflow_triggers; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.workflow_triggers (id, workflow_id, event_name, isdeleted, updatedat) FROM stdin;
\.


--
-- Data for Name: workflows; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.workflows (id, tenant_id, department_id, name, trigger_event, definition, is_active, isdeleted, updatedat) FROM stdin;
1	\N	\N	Dashboard Card Permissions	dashboard.card.permissions	{"conditions":[]}	t	f	2025-10-05 06:39:28.703231+00
2	\N	\N	Vehicle Service Setup	vehicle.registered	{"conditions": []}	t	f	2025-10-05 06:39:28.714835+00
3	\N	\N	Hours Aggregation	hours.aggregate	{"description":"Aggregates work hours from time_clocks based on user IDs and date ranges","version":"1.0.0"}	t	f	2025-10-05 06:39:28.717491+00
4	\N	\N	Driver Created	form.45.updated	{"conditions":[]}	t	f	2025-10-05 06:39:28.787594+00
5	\N	\N	Lawyer Created	form.37.updated	{"conditions":[]}	t	f	2025-10-05 06:39:28.787594+00
6	\N	\N	Fleet Engineer Created	form.46.updated	{"conditions":[]}	t	f	2025-10-05 06:39:28.787594+00
7	\N	\N	Investigator Created	form.73.updated	{"conditions":[]}	t	f	2025-10-05 06:39:28.787594+00
8	\N	\N	Invoice Configuration	invoice.configure	{"conditions":[]}	t	f	2025-10-05 06:39:28.815169+00
9	\N	\N	Time Entries Approved	time_entries.approved	{"conditions": []}	t	f	2025-10-05 06:39:28.818773+00
10	\N	\N	Time Entries Rejected	time_entries.rejected	{"conditions": []}	t	f	2025-10-05 06:39:28.820371+00
11	\N	\N	WorkCOM Inspection Assignment	workplace.inspection.created	{"conditions": []}	t	f	2025-10-05 06:39:28.833287+00
12	\N	\N	WorkCOM Payment Verification	invoice.payment.verified	{"conditions": []}	t	f	2025-10-05 06:39:28.842174+00
13	\N	\N	Incident Alert Notifications	ohs.incidentCreated	{"conditions": []}	t	f	2025-10-05 06:39:29.036897+00
14	\N	\N	Workplace Registration Review	workplace.registration.created	{"conditions": []}	t	f	2025-10-05 06:39:29.110831+00
15	\N	\N	Workplace Registration Certificate	workplace.registration.certificate	{"conditions": []}	t	f	2025-10-05 06:39:29.125452+00
\.


--
-- Data for Name: workplace_registrations; Type: TABLE DATA; Schema: public; Owner: taf
--

COPY public.workplace_registrations (id, company_name, address, name_of_owners_of_business, trading_name, address_of_workplace, postal_address, date_of_business_commenced_operations_at_these_premises, details_of_ownership_of_premises, name_and_address_of_owner_of_the_building, details_of_business_activiy, main_activity_conducted_by_business, principal_articles_to_be_manufactured_repaired_or_sold, sales_type, goods_sold, has_site_previously_been_used_as_a_workplace, name_of_previous_occupier, contact_telephone_number, maximum_number_of_employees, committee_members, training_undergone, district, ohs_policy, minutes, tin, contact_person, contact_email, contact_phone, invoice_id, status, branch_id, assigned_reviewer_id, tenant_id, isdeleted, updatedat) FROM stdin;
\.


--
-- Name: account_ai_feedback_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: appeals_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: appraisal_templates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: attendance_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: audit_logs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: bank_detail_changes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: calendar_accounts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: calendar_availability_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: calendar_categories_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: calendar_event_documents_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: calendar_event_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: calendar_events_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: career_paths_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: career_steps_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: case_evidence_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: case_notes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: case_participants_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: case_tasks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: cash_sessions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: certificate_templates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: check_ins_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: companies_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: competencies_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: competency_assessments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: contract_approvals_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: contract_versions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: contracts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: corrective_actions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: countries_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: country_holidays_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: custom_field_values_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: custom_fields_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: customer_history_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: customer_settings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: dashboard_card_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: demo_graph_data_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: detail_view_elements_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: detail_views_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: disciplinary_actions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: disciplinary_cases_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: districts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: document_categories_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: document_folders_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: element_options_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: element_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

SELECT pg_catalog.setval('public.element_types_id_seq', 23, true);


--
-- Name: employee_authorized_locations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: employee_certificates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: employee_competencies_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: employee_custom_fields_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: employee_custom_values_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: employee_documents_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: employee_exits_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: employee_items_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: employee_location_changes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: employee_shifts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: employee_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: employees2locations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: employees2users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: event_categories_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: exit_approvals_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: exit_clearances_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: exit_feedback_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: exit_interviews_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: expense_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: feedback_notes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: feedback_requests_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: field_definitions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: final_settlements_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: fishbone_diagrams_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: form_buttons_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

SELECT pg_catalog.setval('public.form_buttons_id_seq', 7, true);


--
-- Name: form_categories_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: form_certificates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: form_definitions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: form_submission_reviews_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: form_submission_values_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: form_submissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: form_wizard_steps_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

SELECT pg_catalog.setval('public.form_wizard_steps_id_seq', 18, true);


--
-- Name: form_wizards_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

SELECT pg_catalog.setval('public.form_wizards_id_seq', 7, true);


--
-- Name: forms_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

SELECT pg_catalog.setval('public.forms_id_seq', 625, true);


--
-- Name: goal_alignment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: goal_documents_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: goal_milestones_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: goal_score_labels_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: goal_templates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: graphs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: incident_alert_rules_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: inspection_assignment_rules_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: inspection_requests_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: interview_logs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: invoice_payments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: invoice_settings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: job_opening_templates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: kanban_boards_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: kanban_columns_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

SELECT pg_catalog.setval('public.kanban_columns_id_seq', 15, true);


--
-- Name: kanban_comments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: kanban_tasks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: legacy_resources_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

SELECT pg_catalog.setval('public.legacy_resources_id_seq', 18, true);


--
-- Name: line_items_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: locations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: meeting_links_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: notification_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_action_signoffs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_actions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_assignment_rules_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_compliance_logs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_compliance_tasks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_emergency_contacts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_emergency_drills_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_fault_trees_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_field_incidents_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_five_whys_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_hazard_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_hazards_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_health_checks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_incident_custom_fields_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_incident_files_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_incident_logs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_incident_signoffs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_incident_statuses_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

SELECT pg_catalog.setval('public.ohs_incident_statuses_id_seq', 8, true);


--
-- Name: ohs_incident_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

SELECT pg_catalog.setval('public.ohs_incident_types_id_seq', 9, true);


--
-- Name: ohs_incidents_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_inspection_audits_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_inspection_items_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_inspection_templates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_inspection_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_inspections_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_issues_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_jsa_reviewers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_jsa_signoffs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_jsa_step_files_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_jsa_steps_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_jsa_training_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_jsa_versions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_jsas_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_medicals_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_needs_expectations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_regulations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_risk_matrices_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_risk_reviews_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_root_causes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_severities_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_stakeholders_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ohs_training_requirements_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: overtime_rules_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: payment_request_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: payment_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: payroll_anomalies_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: performance_goals_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: performance_reviews_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: permit_applications_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: permit_documents_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: permit_inspections_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: permit_signatures_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: permit_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: policy_acknowledgments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: policy_approvals_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: policy_targets_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: policy_templates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: projects_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: properties_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: property_rates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: push_subscriptions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: rate_invoices_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: rate_payments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: ratepayers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: receipts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: reimbursement_claims_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: resource_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

SELECT pg_catalog.setval('public.resource_types_id_seq', 7, true);


--
-- Name: resources_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: review_calibrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: review_cycles_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: review_documents_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: review_schedules_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: rfq_items_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: risk_assessment_files_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: risk_assessment_hazards_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: risk_assessment_ppe_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: risk_assessment_signoffs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: risk_assessment_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: risk_assessments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: risk_categories_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: risk_identifications_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: role_competencies_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: safety_alert_files_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: safety_alert_logs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: safety_alerts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: safety_document_versions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: safety_documents_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: safety_field_incidents_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: safety_incident_files_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: safety_incident_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: safety_incidents_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: scheduled_reports_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: service_connections_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: service_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: settings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: shift_swaps_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: shifts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: supervisor_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: table_column_settings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: table_views_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: tasks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: tax_core_request_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: tax_core_response_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: tax_ledger_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: tenant_admins_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: tenant_module_settings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: tenant_modules_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: tenant_tables_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: tenants_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: timesheets_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: training_answers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: training_badges_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: training_bookmarks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: training_categories_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: training_certificates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: training_contents_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: training_courses_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: training_enrollments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: training_feedback_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: training_path_courses_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: training_paths_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: training_questions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: training_quizzes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: training_results_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: training_sessions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: user_2fa_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: user_board_settings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: user_passkeys_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: user_settings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: user_tokens_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: vehicle_makes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: vehicle_models_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: vehicle_report_comments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: vehicle_report_parts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: vehicle_reports_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: vehicle_services_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: vehicle_trip_points_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: vehicle_trips_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: vehicle_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: vehicles_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: view_filters_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: violation_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: workcom_inspection_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: workcom_inspections_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: workflow_approvals_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: workflow_event_triggers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: workflow_instances_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: workflow_states_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: workflow_step_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

SELECT pg_catalog.setval('public.workflow_step_types_id_seq', 15, true);


--
-- Name: workflow_steps_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

SELECT pg_catalog.setval('public.workflow_steps_id_seq', 64, true);


--
-- Name: workflow_tasks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: workflow_transitions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: workflow_triggers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: workflows_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

SELECT pg_catalog.setval('public.workflows_id_seq', 15, true);


--
-- Name: workplace_registrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: taf
--

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


--
-- Name: account_ai_feedback account_ai_feedback_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.account_ai_feedback
    ADD CONSTRAINT account_ai_feedback_pkey PRIMARY KEY (id);


--
-- Name: appeals appeals_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.appeals
    ADD CONSTRAINT appeals_pkey PRIMARY KEY (id);


--
-- Name: applications applications_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.applications
    ADD CONSTRAINT applications_pkey PRIMARY KEY (application_id);


--
-- Name: appraisal_templates appraisal_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.appraisal_templates
    ADD CONSTRAINT appraisal_templates_pkey PRIMARY KEY (id);


--
-- Name: attendance attendance_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.attendance
    ADD CONSTRAINT attendance_pkey PRIMARY KEY (id);


--
-- Name: audit_logs audit_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.audit_logs
    ADD CONSTRAINT audit_logs_pkey PRIMARY KEY (id);


--
-- Name: auth_events auth_events_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.auth_events
    ADD CONSTRAINT auth_events_pkey PRIMARY KEY (event_id);


--
-- Name: auto_orders auto_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.auto_orders
    ADD CONSTRAINT auto_orders_pkey PRIMARY KEY (auto_order_id);


--
-- Name: bank_detail_changes bank_detail_changes_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.bank_detail_changes
    ADD CONSTRAINT bank_detail_changes_pkey PRIMARY KEY (id);


--
-- Name: branches branches_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.branches
    ADD CONSTRAINT branches_pkey PRIMARY KEY (branch_id);


--
-- Name: budgets budgets_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.budgets
    ADD CONSTRAINT budgets_pkey PRIMARY KEY (budget_id);


--
-- Name: calendar_accounts calendar_accounts_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.calendar_accounts
    ADD CONSTRAINT calendar_accounts_pkey PRIMARY KEY (id);


--
-- Name: calendar_availability calendar_availability_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.calendar_availability
    ADD CONSTRAINT calendar_availability_pkey PRIMARY KEY (id);


--
-- Name: calendar_categories calendar_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.calendar_categories
    ADD CONSTRAINT calendar_categories_pkey PRIMARY KEY (id);


--
-- Name: calendar_event_documents calendar_event_documents_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.calendar_event_documents
    ADD CONSTRAINT calendar_event_documents_pkey PRIMARY KEY (id);


--
-- Name: calendar_event_permissions calendar_event_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.calendar_event_permissions
    ADD CONSTRAINT calendar_event_permissions_pkey PRIMARY KEY (id);


--
-- Name: calendar_events calendar_events_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.calendar_events
    ADD CONSTRAINT calendar_events_pkey PRIMARY KEY (id);


--
-- Name: career_paths career_paths_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.career_paths
    ADD CONSTRAINT career_paths_pkey PRIMARY KEY (id);


--
-- Name: career_steps career_steps_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.career_steps
    ADD CONSTRAINT career_steps_pkey PRIMARY KEY (id);


--
-- Name: case_evidence case_evidence_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.case_evidence
    ADD CONSTRAINT case_evidence_pkey PRIMARY KEY (id);


--
-- Name: case_instructions case_instructions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.case_instructions
    ADD CONSTRAINT case_instructions_pkey PRIMARY KEY (case_instruction_id);


--
-- Name: case_notes case_notes_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.case_notes
    ADD CONSTRAINT case_notes_pkey PRIMARY KEY (id);


--
-- Name: case_participants case_participants_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.case_participants
    ADD CONSTRAINT case_participants_pkey PRIMARY KEY (id);


--
-- Name: case_tasks case_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.case_tasks
    ADD CONSTRAINT case_tasks_pkey PRIMARY KEY (id);


--
-- Name: cases cases_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.cases
    ADD CONSTRAINT cases_pkey PRIMARY KEY (case_id);


--
-- Name: cash_sessions cash_sessions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.cash_sessions
    ADD CONSTRAINT cash_sessions_pkey PRIMARY KEY (id);


--
-- Name: certificate_templates certificate_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.certificate_templates
    ADD CONSTRAINT certificate_templates_pkey PRIMARY KEY (id);


--
-- Name: check_ins check_ins_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.check_ins
    ADD CONSTRAINT check_ins_pkey PRIMARY KEY (id);


--
-- Name: clients clients_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.clients
    ADD CONSTRAINT clients_pkey PRIMARY KEY (client_id);


--
-- Name: companies companies_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.companies
    ADD CONSTRAINT companies_pkey PRIMARY KEY (id);


--
-- Name: competencies competencies_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.competencies
    ADD CONSTRAINT competencies_pkey PRIMARY KEY (id);


--
-- Name: competency_assessments competency_assessments_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.competency_assessments
    ADD CONSTRAINT competency_assessments_pkey PRIMARY KEY (id);


--
-- Name: contract_approvals contract_approvals_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.contract_approvals
    ADD CONSTRAINT contract_approvals_pkey PRIMARY KEY (id);


--
-- Name: contract_versions contract_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.contract_versions
    ADD CONSTRAINT contract_versions_pkey PRIMARY KEY (id);


--
-- Name: contracts contracts_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.contracts
    ADD CONSTRAINT contracts_pkey PRIMARY KEY (id);


--
-- Name: corrective_actions corrective_actions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.corrective_actions
    ADD CONSTRAINT corrective_actions_pkey PRIMARY KEY (id);


--
-- Name: countries countries_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.countries
    ADD CONSTRAINT countries_pkey PRIMARY KEY (id);


--
-- Name: country_holidays country_holidays_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.country_holidays
    ADD CONSTRAINT country_holidays_pkey PRIMARY KEY (id);


--
-- Name: custom_field_values custom_field_values_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.custom_field_values
    ADD CONSTRAINT custom_field_values_pkey PRIMARY KEY (id);


--
-- Name: custom_fields custom_fields_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.custom_fields
    ADD CONSTRAINT custom_fields_pkey PRIMARY KEY (id);


--
-- Name: customer_history customer_history_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.customer_history
    ADD CONSTRAINT customer_history_pkey PRIMARY KEY (id);


--
-- Name: customer_settings customer_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.customer_settings
    ADD CONSTRAINT customer_settings_pkey PRIMARY KEY (id);


--
-- Name: customers customers_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT customers_pkey PRIMARY KEY (customer_id);


--
-- Name: dashboard_card_permissions dashboard_card_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.dashboard_card_permissions
    ADD CONSTRAINT dashboard_card_permissions_pkey PRIMARY KEY (id);


--
-- Name: deduction_rates deduction_rates_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.deduction_rates
    ADD CONSTRAINT deduction_rates_pkey PRIMARY KEY (deduction_rate_id);


--
-- Name: deduction_types deduction_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.deduction_types
    ADD CONSTRAINT deduction_types_pkey PRIMARY KEY (deduction_type_id);


--
-- Name: demo_graph_data demo_graph_data_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.demo_graph_data
    ADD CONSTRAINT demo_graph_data_pkey PRIMARY KEY (id);


--
-- Name: departments departments_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.departments
    ADD CONSTRAINT departments_pkey PRIMARY KEY (department_id);


--
-- Name: detail_view_elements detail_view_elements_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.detail_view_elements
    ADD CONSTRAINT detail_view_elements_pkey PRIMARY KEY (id);


--
-- Name: detail_views detail_views_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.detail_views
    ADD CONSTRAINT detail_views_pkey PRIMARY KEY (id);


--
-- Name: disciplinary_actions disciplinary_actions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.disciplinary_actions
    ADD CONSTRAINT disciplinary_actions_pkey PRIMARY KEY (id);


--
-- Name: disciplinary_cases disciplinary_cases_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.disciplinary_cases
    ADD CONSTRAINT disciplinary_cases_pkey PRIMARY KEY (id);


--
-- Name: districts districts_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.districts
    ADD CONSTRAINT districts_pkey PRIMARY KEY (id);


--
-- Name: document_categories document_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.document_categories
    ADD CONSTRAINT document_categories_pkey PRIMARY KEY (id);


--
-- Name: document_comments document_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.document_comments
    ADD CONSTRAINT document_comments_pkey PRIMARY KEY (document_comment_id);


--
-- Name: document_folders document_folders_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.document_folders
    ADD CONSTRAINT document_folders_pkey PRIMARY KEY (id);


--
-- Name: document_metadata document_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.document_metadata
    ADD CONSTRAINT document_metadata_pkey PRIMARY KEY (document_metadata_id);


--
-- Name: document_permissions document_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.document_permissions
    ADD CONSTRAINT document_permissions_pkey PRIMARY KEY (document_permission_id);


--
-- Name: document_tags document_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.document_tags
    ADD CONSTRAINT document_tags_pkey PRIMARY KEY (document_tag_id);


--
-- Name: document_versions document_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.document_versions
    ADD CONSTRAINT document_versions_pkey PRIMARY KEY (document_version_id);


--
-- Name: documents documents_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.documents
    ADD CONSTRAINT documents_pkey PRIMARY KEY (document_id);


--
-- Name: element_options element_options_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.element_options
    ADD CONSTRAINT element_options_pkey PRIMARY KEY (id);


--
-- Name: element_types element_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.element_types
    ADD CONSTRAINT element_types_pkey PRIMARY KEY (id);


--
-- Name: employee_authorized_locations employee_authorized_locations_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.employee_authorized_locations
    ADD CONSTRAINT employee_authorized_locations_pkey PRIMARY KEY (id);


--
-- Name: employee_certificates employee_certificates_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.employee_certificates
    ADD CONSTRAINT employee_certificates_pkey PRIMARY KEY (id);


--
-- Name: employee_competencies employee_competencies_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.employee_competencies
    ADD CONSTRAINT employee_competencies_pkey PRIMARY KEY (id);


--
-- Name: employee_custom_fields employee_custom_fields_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.employee_custom_fields
    ADD CONSTRAINT employee_custom_fields_pkey PRIMARY KEY (id);


--
-- Name: employee_custom_values employee_custom_values_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.employee_custom_values
    ADD CONSTRAINT employee_custom_values_pkey PRIMARY KEY (id);


--
-- Name: employee_documents employee_documents_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.employee_documents
    ADD CONSTRAINT employee_documents_pkey PRIMARY KEY (id);


--
-- Name: employee_exits employee_exits_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.employee_exits
    ADD CONSTRAINT employee_exits_pkey PRIMARY KEY (id);


--
-- Name: employee_items employee_items_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.employee_items
    ADD CONSTRAINT employee_items_pkey PRIMARY KEY (id);


--
-- Name: employee_location_changes employee_location_changes_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.employee_location_changes
    ADD CONSTRAINT employee_location_changes_pkey PRIMARY KEY (id);


--
-- Name: employee_shifts employee_shifts_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.employee_shifts
    ADD CONSTRAINT employee_shifts_pkey PRIMARY KEY (id);


--
-- Name: employee_types employee_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.employee_types
    ADD CONSTRAINT employee_types_pkey PRIMARY KEY (id);


--
-- Name: employees2locations employees2locations_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.employees2locations
    ADD CONSTRAINT employees2locations_pkey PRIMARY KEY (id);


--
-- Name: employees2users employees2users_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.employees2users
    ADD CONSTRAINT employees2users_pkey PRIMARY KEY (id);


--
-- Name: event_categories event_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.event_categories
    ADD CONSTRAINT event_categories_pkey PRIMARY KEY (id);


--
-- Name: exit_approvals exit_approvals_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.exit_approvals
    ADD CONSTRAINT exit_approvals_pkey PRIMARY KEY (id);


--
-- Name: exit_clearances exit_clearances_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.exit_clearances
    ADD CONSTRAINT exit_clearances_pkey PRIMARY KEY (id);


--
-- Name: exit_feedback exit_feedback_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.exit_feedback
    ADD CONSTRAINT exit_feedback_pkey PRIMARY KEY (id);


--
-- Name: exit_interviews exit_interviews_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.exit_interviews
    ADD CONSTRAINT exit_interviews_pkey PRIMARY KEY (id);


--
-- Name: expense_types expense_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.expense_types
    ADD CONSTRAINT expense_types_pkey PRIMARY KEY (id);


--
-- Name: expenses expenses_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.expenses
    ADD CONSTRAINT expenses_pkey PRIMARY KEY (expense_id);


--
-- Name: feedback_notes feedback_notes_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.feedback_notes
    ADD CONSTRAINT feedback_notes_pkey PRIMARY KEY (id);


--
-- Name: feedback_requests feedback_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.feedback_requests
    ADD CONSTRAINT feedback_requests_pkey PRIMARY KEY (id);


--
-- Name: field_definitions field_definitions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.field_definitions
    ADD CONSTRAINT field_definitions_pkey PRIMARY KEY (id);


--
-- Name: final_settlements final_settlements_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.final_settlements
    ADD CONSTRAINT final_settlements_pkey PRIMARY KEY (id);


--
-- Name: fishbone_diagrams fishbone_diagrams_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.fishbone_diagrams
    ADD CONSTRAINT fishbone_diagrams_pkey PRIMARY KEY (id);


--
-- Name: form_buttons form_buttons_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.form_buttons
    ADD CONSTRAINT form_buttons_pkey PRIMARY KEY (id);


--
-- Name: form_categories form_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.form_categories
    ADD CONSTRAINT form_categories_pkey PRIMARY KEY (id);


--
-- Name: form_certificates form_certificates_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.form_certificates
    ADD CONSTRAINT form_certificates_pkey PRIMARY KEY (id);


--
-- Name: form_definitions form_definitions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.form_definitions
    ADD CONSTRAINT form_definitions_pkey PRIMARY KEY (id);


--
-- Name: form_submission_reviews form_submission_reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.form_submission_reviews
    ADD CONSTRAINT form_submission_reviews_pkey PRIMARY KEY (id);


--
-- Name: form_submission_values form_submission_values_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.form_submission_values
    ADD CONSTRAINT form_submission_values_pkey PRIMARY KEY (id);


--
-- Name: form_submissions form_submissions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.form_submissions
    ADD CONSTRAINT form_submissions_pkey PRIMARY KEY (id);


--
-- Name: form_wizard_steps form_wizard_steps_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.form_wizard_steps
    ADD CONSTRAINT form_wizard_steps_pkey PRIMARY KEY (id);


--
-- Name: form_wizards form_wizards_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.form_wizards
    ADD CONSTRAINT form_wizards_pkey PRIMARY KEY (id);


--
-- Name: forms forms_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.forms
    ADD CONSTRAINT forms_pkey PRIMARY KEY (id);


--
-- Name: goal_alignment goal_alignment_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.goal_alignment
    ADD CONSTRAINT goal_alignment_pkey PRIMARY KEY (id);


--
-- Name: goal_documents goal_documents_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.goal_documents
    ADD CONSTRAINT goal_documents_pkey PRIMARY KEY (id);


--
-- Name: goal_milestones goal_milestones_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.goal_milestones
    ADD CONSTRAINT goal_milestones_pkey PRIMARY KEY (id);


--
-- Name: goal_score_labels goal_score_labels_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.goal_score_labels
    ADD CONSTRAINT goal_score_labels_pkey PRIMARY KEY (id);


--
-- Name: goal_templates goal_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.goal_templates
    ADD CONSTRAINT goal_templates_pkey PRIMARY KEY (id);


--
-- Name: goods_receipts goods_receipts_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.goods_receipts
    ADD CONSTRAINT goods_receipts_pkey PRIMARY KEY (goods_receipt_id);


--
-- Name: graphs graphs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.graphs
    ADD CONSTRAINT graphs_pkey PRIMARY KEY (id);


--
-- Name: group_column_permissions group_column_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.group_column_permissions
    ADD CONSTRAINT group_column_permissions_pkey PRIMARY KEY (group_column_permission_id);


--
-- Name: group_module_permissions group_module_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.group_module_permissions
    ADD CONSTRAINT group_module_permissions_pkey PRIMARY KEY (group_module_permission_id);


--
-- Name: group_table_permissions group_table_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.group_table_permissions
    ADD CONSTRAINT group_table_permissions_pkey PRIMARY KEY (group_table_permission_id);


--
-- Name: groups groups_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.groups
    ADD CONSTRAINT groups_pkey PRIMARY KEY (group_id);


--
-- Name: idp_providers idp_providers_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.idp_providers
    ADD CONSTRAINT idp_providers_pkey PRIMARY KEY (provider_code);


--
-- Name: import_export_configs import_export_configs_name_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.import_export_configs
    ADD CONSTRAINT import_export_configs_name_key UNIQUE (name);


--
-- Name: import_export_configs import_export_configs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.import_export_configs
    ADD CONSTRAINT import_export_configs_pkey PRIMARY KEY (config_id);


--
-- Name: incident_alert_rules incident_alert_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.incident_alert_rules
    ADD CONSTRAINT incident_alert_rules_pkey PRIMARY KEY (id);


--
-- Name: ingredients ingredients_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ingredients
    ADD CONSTRAINT ingredients_pkey PRIMARY KEY (ingredients_id);


--
-- Name: ingredients_to_products ingredients_to_products_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ingredients_to_products
    ADD CONSTRAINT ingredients_to_products_pkey PRIMARY KEY (ingredients_to_products_id);


--
-- Name: inspection_assignment_rules inspection_assignment_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.inspection_assignment_rules
    ADD CONSTRAINT inspection_assignment_rules_pkey PRIMARY KEY (id);


--
-- Name: inspection_requests inspection_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.inspection_requests
    ADD CONSTRAINT inspection_requests_pkey PRIMARY KEY (id);


--
-- Name: interview_logs interview_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.interview_logs
    ADD CONSTRAINT interview_logs_pkey PRIMARY KEY (id);


--
-- Name: interviews interviews_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.interviews
    ADD CONSTRAINT interviews_pkey PRIMARY KEY (interview_id);


--
-- Name: inventory inventory_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.inventory
    ADD CONSTRAINT inventory_pkey PRIMARY KEY (inventory_id);


--
-- Name: inventory_receive inventory_receive_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.inventory_receive
    ADD CONSTRAINT inventory_receive_pkey PRIMARY KEY (inventory_receive_id);


--
-- Name: inventory_txn inventory_txn_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.inventory_txn
    ADD CONSTRAINT inventory_txn_pkey PRIMARY KEY (inventory_txn_id);


--
-- Name: invitations invitations_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.invitations
    ADD CONSTRAINT invitations_pkey PRIMARY KEY (invitation_id);


--
-- Name: invoice_payments invoice_payments_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.invoice_payments
    ADD CONSTRAINT invoice_payments_pkey PRIMARY KEY (id);


--
-- Name: invoice_settings invoice_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.invoice_settings
    ADD CONSTRAINT invoice_settings_pkey PRIMARY KEY (id);


--
-- Name: invoice_templates invoice_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.invoice_templates
    ADD CONSTRAINT invoice_templates_pkey PRIMARY KEY (invoice_template_id);


--
-- Name: invoice_types invoice_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.invoice_types
    ADD CONSTRAINT invoice_types_pkey PRIMARY KEY (invoice_type_id);


--
-- Name: invoices invoices_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.invoices
    ADD CONSTRAINT invoices_pkey PRIMARY KEY (invoice_id);


--
-- Name: items items_item_id_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.items
    ADD CONSTRAINT items_item_id_key UNIQUE (item_id);


--
-- Name: job_opening_templates job_opening_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.job_opening_templates
    ADD CONSTRAINT job_opening_templates_pkey PRIMARY KEY (id);


--
-- Name: kanban_boards kanban_boards_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.kanban_boards
    ADD CONSTRAINT kanban_boards_pkey PRIMARY KEY (id);


--
-- Name: kanban_columns kanban_columns_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.kanban_columns
    ADD CONSTRAINT kanban_columns_pkey PRIMARY KEY (id);


--
-- Name: kanban_comments kanban_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.kanban_comments
    ADD CONSTRAINT kanban_comments_pkey PRIMARY KEY (id);


--
-- Name: kanban_tasks kanban_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.kanban_tasks
    ADD CONSTRAINT kanban_tasks_pkey PRIMARY KEY (id);


--
-- Name: leave_balances leave_balances_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.leave_balances
    ADD CONSTRAINT leave_balances_pkey PRIMARY KEY (leave_balance_id);


--
-- Name: leave_requests leave_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.leave_requests
    ADD CONSTRAINT leave_requests_pkey PRIMARY KEY (leave_request_id);


--
-- Name: leave_types leave_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.leave_types
    ADD CONSTRAINT leave_types_pkey PRIMARY KEY (leave_type_id);


--
-- Name: legacy_resources legacy_resources_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.legacy_resources
    ADD CONSTRAINT legacy_resources_pkey PRIMARY KEY (id);


--
-- Name: line_items line_items_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.line_items
    ADD CONSTRAINT line_items_pkey PRIMARY KEY (id);


--
-- Name: lineitems_payments lineitems_payments_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.lineitems_payments
    ADD CONSTRAINT lineitems_payments_pkey PRIMARY KEY (sales_receipt_id);


--
-- Name: locations locations_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.locations
    ADD CONSTRAINT locations_pkey PRIMARY KEY (id);


--
-- Name: meeting_links meeting_links_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.meeting_links
    ADD CONSTRAINT meeting_links_pkey PRIMARY KEY (id);


--
-- Name: models models_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.models
    ADD CONSTRAINT models_pkey PRIMARY KEY (model_id);


--
-- Name: modules modules_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.modules
    ADD CONSTRAINT modules_pkey PRIMARY KEY (module_id);


--
-- Name: notification_log notification_log_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.notification_log
    ADD CONSTRAINT notification_log_pkey PRIMARY KEY (id);


--
-- Name: notification_queue notification_queue_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.notification_queue
    ADD CONSTRAINT notification_queue_pkey PRIMARY KEY (id);


--
-- Name: numbering_sequences numbering_sequences_unique; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.numbering_sequences
    ADD CONSTRAINT numbering_sequences_unique UNIQUE (org_id, type, year);


--
-- Name: ohs_action_signoffs ohs_action_signoffs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_action_signoffs
    ADD CONSTRAINT ohs_action_signoffs_pkey PRIMARY KEY (id);


--
-- Name: ohs_actions ohs_actions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_actions
    ADD CONSTRAINT ohs_actions_pkey PRIMARY KEY (id);


--
-- Name: ohs_assignment_rules ohs_assignment_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_assignment_rules
    ADD CONSTRAINT ohs_assignment_rules_pkey PRIMARY KEY (id);


--
-- Name: ohs_compliance_logs ohs_compliance_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_compliance_logs
    ADD CONSTRAINT ohs_compliance_logs_pkey PRIMARY KEY (id);


--
-- Name: ohs_compliance_tasks ohs_compliance_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_compliance_tasks
    ADD CONSTRAINT ohs_compliance_tasks_pkey PRIMARY KEY (id);


--
-- Name: ohs_emergency_contacts ohs_emergency_contacts_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_emergency_contacts
    ADD CONSTRAINT ohs_emergency_contacts_pkey PRIMARY KEY (id);


--
-- Name: ohs_emergency_drills ohs_emergency_drills_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_emergency_drills
    ADD CONSTRAINT ohs_emergency_drills_pkey PRIMARY KEY (id);


--
-- Name: ohs_fault_trees ohs_fault_trees_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_fault_trees
    ADD CONSTRAINT ohs_fault_trees_pkey PRIMARY KEY (id);


--
-- Name: ohs_field_incidents ohs_field_incidents_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_field_incidents
    ADD CONSTRAINT ohs_field_incidents_pkey PRIMARY KEY (id);


--
-- Name: ohs_five_whys ohs_five_whys_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_five_whys
    ADD CONSTRAINT ohs_five_whys_pkey PRIMARY KEY (id);


--
-- Name: ohs_hazard_types ohs_hazard_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_hazard_types
    ADD CONSTRAINT ohs_hazard_types_pkey PRIMARY KEY (id);


--
-- Name: ohs_hazards ohs_hazards_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_hazards
    ADD CONSTRAINT ohs_hazards_pkey PRIMARY KEY (id);


--
-- Name: ohs_health_checks ohs_health_checks_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_health_checks
    ADD CONSTRAINT ohs_health_checks_pkey PRIMARY KEY (id);


--
-- Name: ohs_incident_custom_fields ohs_incident_custom_fields_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_incident_custom_fields
    ADD CONSTRAINT ohs_incident_custom_fields_pkey PRIMARY KEY (id);


--
-- Name: ohs_incident_files ohs_incident_files_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_incident_files
    ADD CONSTRAINT ohs_incident_files_pkey PRIMARY KEY (id);


--
-- Name: ohs_incident_logs ohs_incident_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_incident_logs
    ADD CONSTRAINT ohs_incident_logs_pkey PRIMARY KEY (id);


--
-- Name: ohs_incident_signoffs ohs_incident_signoffs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_incident_signoffs
    ADD CONSTRAINT ohs_incident_signoffs_pkey PRIMARY KEY (id);


--
-- Name: ohs_incident_statuses ohs_incident_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_incident_statuses
    ADD CONSTRAINT ohs_incident_statuses_pkey PRIMARY KEY (id);


--
-- Name: ohs_incident_types ohs_incident_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_incident_types
    ADD CONSTRAINT ohs_incident_types_pkey PRIMARY KEY (id);


--
-- Name: ohs_incidents ohs_incidents_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_incidents
    ADD CONSTRAINT ohs_incidents_pkey PRIMARY KEY (id);


--
-- Name: ohs_inspection_audits ohs_inspection_audits_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_inspection_audits
    ADD CONSTRAINT ohs_inspection_audits_pkey PRIMARY KEY (id);


--
-- Name: ohs_inspection_items ohs_inspection_items_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_inspection_items
    ADD CONSTRAINT ohs_inspection_items_pkey PRIMARY KEY (id);


--
-- Name: ohs_inspection_templates ohs_inspection_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_inspection_templates
    ADD CONSTRAINT ohs_inspection_templates_pkey PRIMARY KEY (id);


--
-- Name: ohs_inspection_types ohs_inspection_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_inspection_types
    ADD CONSTRAINT ohs_inspection_types_pkey PRIMARY KEY (id);


--
-- Name: ohs_inspections ohs_inspections_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_inspections
    ADD CONSTRAINT ohs_inspections_pkey PRIMARY KEY (id);


--
-- Name: ohs_issues ohs_issues_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_issues
    ADD CONSTRAINT ohs_issues_pkey PRIMARY KEY (id);


--
-- Name: ohs_jsa_reviewers ohs_jsa_reviewers_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_jsa_reviewers
    ADD CONSTRAINT ohs_jsa_reviewers_pkey PRIMARY KEY (id);


--
-- Name: ohs_jsa_signoffs ohs_jsa_signoffs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_jsa_signoffs
    ADD CONSTRAINT ohs_jsa_signoffs_pkey PRIMARY KEY (id);


--
-- Name: ohs_jsa_step_files ohs_jsa_step_files_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_jsa_step_files
    ADD CONSTRAINT ohs_jsa_step_files_pkey PRIMARY KEY (id);


--
-- Name: ohs_jsa_steps ohs_jsa_steps_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_jsa_steps
    ADD CONSTRAINT ohs_jsa_steps_pkey PRIMARY KEY (id);


--
-- Name: ohs_jsa_training ohs_jsa_training_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_jsa_training
    ADD CONSTRAINT ohs_jsa_training_pkey PRIMARY KEY (id);


--
-- Name: ohs_jsa_versions ohs_jsa_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_jsa_versions
    ADD CONSTRAINT ohs_jsa_versions_pkey PRIMARY KEY (id);


--
-- Name: ohs_jsas ohs_jsas_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_jsas
    ADD CONSTRAINT ohs_jsas_pkey PRIMARY KEY (id);


--
-- Name: ohs_medicals ohs_medicals_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_medicals
    ADD CONSTRAINT ohs_medicals_pkey PRIMARY KEY (id);


--
-- Name: ohs_needs_expectations ohs_needs_expectations_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_needs_expectations
    ADD CONSTRAINT ohs_needs_expectations_pkey PRIMARY KEY (id);


--
-- Name: ohs_regulations ohs_regulations_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_regulations
    ADD CONSTRAINT ohs_regulations_pkey PRIMARY KEY (id);


--
-- Name: ohs_risk_matrices ohs_risk_matrices_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_risk_matrices
    ADD CONSTRAINT ohs_risk_matrices_pkey PRIMARY KEY (id);


--
-- Name: ohs_risk_reviews ohs_risk_reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_risk_reviews
    ADD CONSTRAINT ohs_risk_reviews_pkey PRIMARY KEY (id);


--
-- Name: ohs_root_causes ohs_root_causes_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_root_causes
    ADD CONSTRAINT ohs_root_causes_pkey PRIMARY KEY (id);


--
-- Name: ohs_severities ohs_severities_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_severities
    ADD CONSTRAINT ohs_severities_pkey PRIMARY KEY (id);


--
-- Name: ohs_stakeholders ohs_stakeholders_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_stakeholders
    ADD CONSTRAINT ohs_stakeholders_pkey PRIMARY KEY (id);


--
-- Name: ohs_training_requirements ohs_training_requirements_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ohs_training_requirements
    ADD CONSTRAINT ohs_training_requirements_pkey PRIMARY KEY (id);


--
-- Name: one_time_service_costs one_time_service_costs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.one_time_service_costs
    ADD CONSTRAINT one_time_service_costs_pkey PRIMARY KEY (one_time_service_cost_id);


--
-- Name: one_time_tokens one_time_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.one_time_tokens
    ADD CONSTRAINT one_time_tokens_pkey PRIMARY KEY (token_id);


--
-- Name: open_positions open_positions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.open_positions
    ADD CONSTRAINT open_positions_pkey PRIMARY KEY (open_position_id);


--
-- Name: orgs orgs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.orgs
    ADD CONSTRAINT orgs_pkey PRIMARY KEY (org_id);


--
-- Name: overtime_rules overtime_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.overtime_rules
    ADD CONSTRAINT overtime_rules_pkey PRIMARY KEY (id);


--
-- Name: page_configs page_configs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.page_configs
    ADD CONSTRAINT page_configs_pkey PRIMARY KEY (id);


--
-- Name: payment_items payment_items_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.payment_items
    ADD CONSTRAINT payment_items_pkey PRIMARY KEY (payment_item_id);


--
-- Name: payment_request payment_request_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.payment_request
    ADD CONSTRAINT payment_request_pkey PRIMARY KEY (id);


--
-- Name: payment_types payment_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.payment_types
    ADD CONSTRAINT payment_types_pkey PRIMARY KEY (id);


--
-- Name: payments payments_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.payments
    ADD CONSTRAINT payments_pkey PRIMARY KEY (payment_id);


--
-- Name: payroll_anomalies payroll_anomalies_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.payroll_anomalies
    ADD CONSTRAINT payroll_anomalies_pkey PRIMARY KEY (id);


--
-- Name: payslip_deductions payslip_deductions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.payslip_deductions
    ADD CONSTRAINT payslip_deductions_pkey PRIMARY KEY (payslip_deduction_id);


--
-- Name: payslips payslips_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.payslips
    ADD CONSTRAINT payslips_pkey PRIMARY KEY (payslip_id);


--
-- Name: performance_goals performance_goals_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.performance_goals
    ADD CONSTRAINT performance_goals_pkey PRIMARY KEY (id);


--
-- Name: performance_reviews performance_reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.performance_reviews
    ADD CONSTRAINT performance_reviews_pkey PRIMARY KEY (id);


--
-- Name: permissions permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.permissions
    ADD CONSTRAINT permissions_pkey PRIMARY KEY (id);


--
-- Name: permit_applications permit_applications_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.permit_applications
    ADD CONSTRAINT permit_applications_pkey PRIMARY KEY (id);


--
-- Name: permit_documents permit_documents_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.permit_documents
    ADD CONSTRAINT permit_documents_pkey PRIMARY KEY (id);


--
-- Name: permit_inspections permit_inspections_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.permit_inspections
    ADD CONSTRAINT permit_inspections_pkey PRIMARY KEY (id);


--
-- Name: permit_signatures permit_signatures_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.permit_signatures
    ADD CONSTRAINT permit_signatures_pkey PRIMARY KEY (id);


--
-- Name: permit_types permit_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.permit_types
    ADD CONSTRAINT permit_types_pkey PRIMARY KEY (id);


--
-- Name: policies policies_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.policies
    ADD CONSTRAINT policies_pkey PRIMARY KEY (policy_id);


--
-- Name: policy_acknowledgments policy_acknowledgments_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.policy_acknowledgments
    ADD CONSTRAINT policy_acknowledgments_pkey PRIMARY KEY (id);


--
-- Name: policy_approvals policy_approvals_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.policy_approvals
    ADD CONSTRAINT policy_approvals_pkey PRIMARY KEY (id);


--
-- Name: policy_targets policy_targets_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.policy_targets
    ADD CONSTRAINT policy_targets_pkey PRIMARY KEY (id);


--
-- Name: policy_templates policy_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.policy_templates
    ADD CONSTRAINT policy_templates_pkey PRIMARY KEY (id);


--
-- Name: pos_settings pos_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.pos_settings
    ADD CONSTRAINT pos_settings_pkey PRIMARY KEY (pos_settings_id);


--
-- Name: procurement_requests procurement_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.procurement_requests
    ADD CONSTRAINT procurement_requests_pkey PRIMARY KEY (procurement_request_id);


--
-- Name: procurements procurements_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.procurements
    ADD CONSTRAINT procurements_pkey PRIMARY KEY (procurement_id);


--
-- Name: product_batch_number product_batch_number_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.product_batch_number
    ADD CONSTRAINT product_batch_number_pkey PRIMARY KEY (product_batch_number_id);


--
-- Name: product_categories product_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.product_categories
    ADD CONSTRAINT product_categories_pkey PRIMARY KEY (category_id);


--
-- Name: product_daily_rec product_daily_rec_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.product_daily_rec
    ADD CONSTRAINT product_daily_rec_pkey PRIMARY KEY (product_daily_rec_id);


--
-- Name: product_discounts product_discounts_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.product_discounts
    ADD CONSTRAINT product_discounts_pkey PRIMARY KEY (discount_id);


--
-- Name: products_2_categories products_2_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.products_2_categories
    ADD CONSTRAINT products_2_categories_pkey PRIMARY KEY (product_category_id);


--
-- Name: products_2_taxcodes products_2_taxcodes_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.products_2_taxcodes
    ADD CONSTRAINT products_2_taxcodes_pkey PRIMARY KEY (product_tax_code_id);


--
-- Name: products products_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.products
    ADD CONSTRAINT products_pkey PRIMARY KEY (product_id);


--
-- Name: products_to_vendors products_to_vendors_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.products_to_vendors
    ADD CONSTRAINT products_to_vendors_pkey PRIMARY KEY (products_to_vendor_id);


--
-- Name: program_default_group_permissions program_default_group_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.program_default_group_permissions
    ADD CONSTRAINT program_default_group_permissions_pkey PRIMARY KEY (program_default_permission_id);


--
-- Name: program_default_groups program_default_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.program_default_groups
    ADD CONSTRAINT program_default_groups_pkey PRIMARY KEY (program_default_group_id);


--
-- Name: program_default_groups program_default_groups_program_id_group_name_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.program_default_groups
    ADD CONSTRAINT program_default_groups_program_id_group_name_key UNIQUE (program_id, group_name);


--
-- Name: program_enrollments program_enrollments_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.program_enrollments
    ADD CONSTRAINT program_enrollments_pkey PRIMARY KEY (program_enrollment_id);


--
-- Name: program_enrollments program_enrollments_program_id_org_id_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.program_enrollments
    ADD CONSTRAINT program_enrollments_program_id_org_id_key UNIQUE (program_id, org_id);


--
-- Name: program_modules program_modules_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.program_modules
    ADD CONSTRAINT program_modules_pkey PRIMARY KEY (program_module_id);


--
-- Name: programs programs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.programs
    ADD CONSTRAINT programs_pkey PRIMARY KEY (program_id);


--
-- Name: projects projects_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.projects
    ADD CONSTRAINT projects_pkey PRIMARY KEY (id);


--
-- Name: properties properties_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.properties
    ADD CONSTRAINT properties_pkey PRIMARY KEY (id);


--
-- Name: property_rates property_rates_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.property_rates
    ADD CONSTRAINT property_rates_pkey PRIMARY KEY (id);


--
-- Name: purchase_orders purchase_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.purchase_orders
    ADD CONSTRAINT purchase_orders_pkey PRIMARY KEY (purchase_order_id);


--
-- Name: push_subscriptions push_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.push_subscriptions
    ADD CONSTRAINT push_subscriptions_pkey PRIMARY KEY (id);


--
-- Name: quotations quotations_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.quotations
    ADD CONSTRAINT quotations_pkey PRIMARY KEY (quotation_id);


--
-- Name: rate_invoices rate_invoices_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rate_invoices
    ADD CONSTRAINT rate_invoices_pkey PRIMARY KEY (id);


--
-- Name: rate_limits rate_limits_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rate_limits
    ADD CONSTRAINT rate_limits_pkey PRIMARY KEY (key);


--
-- Name: rate_payments rate_payments_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rate_payments
    ADD CONSTRAINT rate_payments_pkey PRIMARY KEY (id);


--
-- Name: ratepayers ratepayers_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ratepayers
    ADD CONSTRAINT ratepayers_pkey PRIMARY KEY (id);


--
-- Name: receipts receipts_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.receipts
    ADD CONSTRAINT receipts_pkey PRIMARY KEY (id);


--
-- Name: refresh_tokens refresh_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.refresh_tokens
    ADD CONSTRAINT refresh_tokens_pkey PRIMARY KEY (token_id);


--
-- Name: reimbursement_claims reimbursement_claims_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.reimbursement_claims
    ADD CONSTRAINT reimbursement_claims_pkey PRIMARY KEY (id);


--
-- Name: resource_types resource_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.resource_types
    ADD CONSTRAINT resource_types_pkey PRIMARY KEY (id);


--
-- Name: resources resources_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.resources
    ADD CONSTRAINT resources_pkey PRIMARY KEY (id);


--
-- Name: resources resources_resource_type_id_resource_id_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.resources
    ADD CONSTRAINT resources_resource_type_id_resource_id_key UNIQUE (resource_type_id, resource_id);


--
-- Name: review_calibrations review_calibrations_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.review_calibrations
    ADD CONSTRAINT review_calibrations_pkey PRIMARY KEY (id);


--
-- Name: review_cycles review_cycles_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.review_cycles
    ADD CONSTRAINT review_cycles_pkey PRIMARY KEY (id);


--
-- Name: review_documents review_documents_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.review_documents
    ADD CONSTRAINT review_documents_pkey PRIMARY KEY (id);


--
-- Name: review_schedules review_schedules_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.review_schedules
    ADD CONSTRAINT review_schedules_pkey PRIMARY KEY (id);


--
-- Name: rfq_approval_instances rfq_approval_instances_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_approval_instances
    ADD CONSTRAINT rfq_approval_instances_pkey PRIMARY KEY (approval_instance_id);


--
-- Name: rfq_approval_levels rfq_approval_levels_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_approval_levels
    ADD CONSTRAINT rfq_approval_levels_pkey PRIMARY KEY (rfq_approval_levels_id);


--
-- Name: rfq_attachments rfq_attachments_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_attachments
    ADD CONSTRAINT rfq_attachments_pkey PRIMARY KEY (rfq_attachment_id);


--
-- Name: rfq_awards rfq_awards_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_awards
    ADD CONSTRAINT rfq_awards_pkey PRIMARY KEY (award_id);


--
-- Name: rfq_contracts rfq_contracts_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_contracts
    ADD CONSTRAINT rfq_contracts_pkey PRIMARY KEY (contract_id);


--
-- Name: rfq_conversations rfq_conversations_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_conversations
    ADD CONSTRAINT rfq_conversations_pkey PRIMARY KEY (conversation_id);


--
-- Name: rfq_events rfq_events_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_events
    ADD CONSTRAINT rfq_events_pkey PRIMARY KEY (event_id);


--
-- Name: rfq_headers rfq_headers_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_headers
    ADD CONSTRAINT rfq_headers_pkey PRIMARY KEY (rfq_id);


--
-- Name: rfq_invites rfq_invites_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_invites
    ADD CONSTRAINT rfq_invites_pkey PRIMARY KEY (invite_id);


--
-- Name: rfq_items rfq_items_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_items
    ADD CONSTRAINT rfq_items_pkey PRIMARY KEY (id);


--
-- Name: rfq_message_attachments rfq_message_attachments_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_message_attachments
    ADD CONSTRAINT rfq_message_attachments_pkey PRIMARY KEY (message_attachment_id);


--
-- Name: rfq_messages rfq_messages_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_messages
    ADD CONSTRAINT rfq_messages_pkey PRIMARY KEY (message_id);


--
-- Name: rfq_scoring_notes rfq_scoring_notes_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_scoring_notes
    ADD CONSTRAINT rfq_scoring_notes_pkey PRIMARY KEY (note_id);


--
-- Name: rfq_sections rfq_sections_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_sections
    ADD CONSTRAINT rfq_sections_pkey PRIMARY KEY (rfq_section_id);


--
-- Name: rfq_shortlists rfq_shortlists_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_shortlists
    ADD CONSTRAINT rfq_shortlists_pkey PRIMARY KEY (shortlist_id);


--
-- Name: rfq_shortlists rfq_shortlists_rfq_id_vendor_id_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_shortlists
    ADD CONSTRAINT rfq_shortlists_rfq_id_vendor_id_key UNIQUE (rfq_id, vendor_id);


--
-- Name: rfq_template_attachments rfq_template_attachments_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_template_attachments
    ADD CONSTRAINT rfq_template_attachments_pkey PRIMARY KEY (rfq_template_attachment_id);


--
-- Name: rfq_template_sections rfq_template_sections_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_template_sections
    ADD CONSTRAINT rfq_template_sections_pkey PRIMARY KEY (rfq_template_section_id);


--
-- Name: rfq_templates rfq_templates_code_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_templates
    ADD CONSTRAINT rfq_templates_code_key UNIQUE (code);


--
-- Name: rfq_templates rfq_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_templates
    ADD CONSTRAINT rfq_templates_pkey PRIMARY KEY (rfq_template_id);


--
-- Name: rfqs rfqs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfqs
    ADD CONSTRAINT rfqs_pkey PRIMARY KEY (id);


--
-- Name: risk_assessment_files risk_assessment_files_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.risk_assessment_files
    ADD CONSTRAINT risk_assessment_files_pkey PRIMARY KEY (id);


--
-- Name: risk_assessment_hazards risk_assessment_hazards_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.risk_assessment_hazards
    ADD CONSTRAINT risk_assessment_hazards_pkey PRIMARY KEY (id);


--
-- Name: risk_assessment_ppe risk_assessment_ppe_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.risk_assessment_ppe
    ADD CONSTRAINT risk_assessment_ppe_pkey PRIMARY KEY (id);


--
-- Name: risk_assessment_signoffs risk_assessment_signoffs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.risk_assessment_signoffs
    ADD CONSTRAINT risk_assessment_signoffs_pkey PRIMARY KEY (id);


--
-- Name: risk_assessment_types risk_assessment_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.risk_assessment_types
    ADD CONSTRAINT risk_assessment_types_pkey PRIMARY KEY (id);


--
-- Name: risk_assessments risk_assessments_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.risk_assessments
    ADD CONSTRAINT risk_assessments_pkey PRIMARY KEY (id);


--
-- Name: risk_categories risk_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.risk_categories
    ADD CONSTRAINT risk_categories_pkey PRIMARY KEY (id);


--
-- Name: risk_identifications risk_identifications_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.risk_identifications
    ADD CONSTRAINT risk_identifications_pkey PRIMARY KEY (id);


--
-- Name: role_competencies role_competencies_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.role_competencies
    ADD CONSTRAINT role_competencies_pkey PRIMARY KEY (id);


--
-- Name: safety_alert_files safety_alert_files_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.safety_alert_files
    ADD CONSTRAINT safety_alert_files_pkey PRIMARY KEY (id);


--
-- Name: safety_alert_logs safety_alert_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.safety_alert_logs
    ADD CONSTRAINT safety_alert_logs_pkey PRIMARY KEY (id);


--
-- Name: safety_alerts safety_alerts_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.safety_alerts
    ADD CONSTRAINT safety_alerts_pkey PRIMARY KEY (id);


--
-- Name: safety_document_versions safety_document_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.safety_document_versions
    ADD CONSTRAINT safety_document_versions_pkey PRIMARY KEY (id);


--
-- Name: safety_documents safety_documents_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.safety_documents
    ADD CONSTRAINT safety_documents_pkey PRIMARY KEY (id);


--
-- Name: safety_field_incidents safety_field_incidents_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.safety_field_incidents
    ADD CONSTRAINT safety_field_incidents_pkey PRIMARY KEY (id);


--
-- Name: safety_incident_files safety_incident_files_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.safety_incident_files
    ADD CONSTRAINT safety_incident_files_pkey PRIMARY KEY (id);


--
-- Name: safety_incident_types safety_incident_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.safety_incident_types
    ADD CONSTRAINT safety_incident_types_pkey PRIMARY KEY (id);


--
-- Name: safety_incidents safety_incidents_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.safety_incidents
    ADD CONSTRAINT safety_incidents_pkey PRIMARY KEY (id);


--
-- Name: salaries salaries_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.salaries
    ADD CONSTRAINT salaries_pkey PRIMARY KEY (salary_id);


--
-- Name: sales_receipts sales_receipts_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.sales_receipts
    ADD CONSTRAINT sales_receipts_pkey PRIMARY KEY (sales_receipt_id);


--
-- Name: sales_tax_types sales_tax_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.sales_tax_types
    ADD CONSTRAINT sales_tax_types_pkey PRIMARY KEY (salestax_id);


--
-- Name: scheduled_reports scheduled_reports_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.scheduled_reports
    ADD CONSTRAINT scheduled_reports_pkey PRIMARY KEY (id);


--
-- Name: service_connections service_connections_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.service_connections
    ADD CONSTRAINT service_connections_pkey PRIMARY KEY (id);


--
-- Name: service_types service_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.service_types
    ADD CONSTRAINT service_types_pkey PRIMARY KEY (id);


--
-- Name: sessions sessions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.sessions
    ADD CONSTRAINT sessions_pkey PRIMARY KEY (session_id);


--
-- Name: settings settings_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.settings
    ADD CONSTRAINT settings_pkey PRIMARY KEY (id);


--
-- Name: shift_swaps shift_swaps_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.shift_swaps
    ADD CONSTRAINT shift_swaps_pkey PRIMARY KEY (id);


--
-- Name: shifts shifts_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.shifts
    ADD CONSTRAINT shifts_pkey PRIMARY KEY (id);


--
-- Name: software_info software_info_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.software_info
    ADD CONSTRAINT software_info_pkey PRIMARY KEY (software_info_id);


--
-- Name: storage_connectors storage_connectors_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.storage_connectors
    ADD CONSTRAINT storage_connectors_pkey PRIMARY KEY (storage_connector_id);


--
-- Name: supervisor_types supervisor_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.supervisor_types
    ADD CONSTRAINT supervisor_types_pkey PRIMARY KEY (id);


--
-- Name: sync_hook_logs sync_hook_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.sync_hook_logs
    ADD CONSTRAINT sync_hook_logs_pkey PRIMARY KEY (log_id);


--
-- Name: sync_hooks sync_hooks_name_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.sync_hooks
    ADD CONSTRAINT sync_hooks_name_key UNIQUE (name);


--
-- Name: sync_hooks sync_hooks_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.sync_hooks
    ADD CONSTRAINT sync_hooks_pkey PRIMARY KEY (hook_id);


--
-- Name: table_column_settings table_column_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.table_column_settings
    ADD CONSTRAINT table_column_settings_pkey PRIMARY KEY (id);


--
-- Name: table_views table_views_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.table_views
    ADD CONSTRAINT table_views_pkey PRIMARY KEY (id);


--
-- Name: tasks tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.tasks
    ADD CONSTRAINT tasks_pkey PRIMARY KEY (id);


--
-- Name: tax_core_request tax_core_request_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.tax_core_request
    ADD CONSTRAINT tax_core_request_pkey PRIMARY KEY (id);


--
-- Name: tax_core_response tax_core_response_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.tax_core_response
    ADD CONSTRAINT tax_core_response_pkey PRIMARY KEY (id);


--
-- Name: tax_ledger tax_ledger_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.tax_ledger
    ADD CONSTRAINT tax_ledger_pkey PRIMARY KEY (id);


--
-- Name: tenant_admins tenant_admins_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.tenant_admins
    ADD CONSTRAINT tenant_admins_pkey PRIMARY KEY (id);


--
-- Name: tenant_idp_configs tenant_idp_configs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.tenant_idp_configs
    ADD CONSTRAINT tenant_idp_configs_pkey PRIMARY KEY (root_org_id, provider_code);


--
-- Name: tenant_module_settings tenant_module_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.tenant_module_settings
    ADD CONSTRAINT tenant_module_settings_pkey PRIMARY KEY (id);


--
-- Name: tenant_modules tenant_modules_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.tenant_modules
    ADD CONSTRAINT tenant_modules_pkey PRIMARY KEY (id);


--
-- Name: tenant_tables tenant_tables_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.tenant_tables
    ADD CONSTRAINT tenant_tables_pkey PRIMARY KEY (id);


--
-- Name: tenants tenants_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.tenants
    ADD CONSTRAINT tenants_pkey PRIMARY KEY (id);


--
-- Name: time_clock_aggregates time_clock_aggregates_org_id_user_id_start_date_end_date_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.time_clock_aggregates
    ADD CONSTRAINT time_clock_aggregates_org_id_user_id_start_date_end_date_key UNIQUE (org_id, user_id, start_date, end_date);


--
-- Name: time_clock_aggregates time_clock_aggregates_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.time_clock_aggregates
    ADD CONSTRAINT time_clock_aggregates_pkey PRIMARY KEY (time_clock_aggregate_id);


--
-- Name: time_clocks time_clocks_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.time_clocks
    ADD CONSTRAINT time_clocks_pkey PRIMARY KEY (time_clocks_id);


--
-- Name: time_entries time_entries_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.time_entries
    ADD CONSTRAINT time_entries_pkey PRIMARY KEY (time_entry_id);


--
-- Name: timesheets timesheets_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.timesheets
    ADD CONSTRAINT timesheets_pkey PRIMARY KEY (id);


--
-- Name: training_answers training_answers_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.training_answers
    ADD CONSTRAINT training_answers_pkey PRIMARY KEY (id);


--
-- Name: training_badges training_badges_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.training_badges
    ADD CONSTRAINT training_badges_pkey PRIMARY KEY (id);


--
-- Name: training_bookmarks training_bookmarks_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.training_bookmarks
    ADD CONSTRAINT training_bookmarks_pkey PRIMARY KEY (id);


--
-- Name: training_categories training_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.training_categories
    ADD CONSTRAINT training_categories_pkey PRIMARY KEY (id);


--
-- Name: training_certificates training_certificates_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.training_certificates
    ADD CONSTRAINT training_certificates_pkey PRIMARY KEY (id);


--
-- Name: training_contents training_contents_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.training_contents
    ADD CONSTRAINT training_contents_pkey PRIMARY KEY (id);


--
-- Name: training_courses training_courses_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.training_courses
    ADD CONSTRAINT training_courses_pkey PRIMARY KEY (id);


--
-- Name: training_enrollments training_enrollments_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.training_enrollments
    ADD CONSTRAINT training_enrollments_pkey PRIMARY KEY (id);


--
-- Name: training_feedback training_feedback_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.training_feedback
    ADD CONSTRAINT training_feedback_pkey PRIMARY KEY (id);


--
-- Name: training_path_courses training_path_courses_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.training_path_courses
    ADD CONSTRAINT training_path_courses_pkey PRIMARY KEY (id);


--
-- Name: training_paths training_paths_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.training_paths
    ADD CONSTRAINT training_paths_pkey PRIMARY KEY (id);


--
-- Name: training_questions training_questions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.training_questions
    ADD CONSTRAINT training_questions_pkey PRIMARY KEY (id);


--
-- Name: training_quizzes training_quizzes_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.training_quizzes
    ADD CONSTRAINT training_quizzes_pkey PRIMARY KEY (id);


--
-- Name: training_results training_results_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.training_results
    ADD CONSTRAINT training_results_pkey PRIMARY KEY (id);


--
-- Name: training_sessions training_sessions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.training_sessions
    ADD CONSTRAINT training_sessions_pkey PRIMARY KEY (id);


--
-- Name: document_metadata uq_document_metadata_doc_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.document_metadata
    ADD CONSTRAINT uq_document_metadata_doc_key UNIQUE (document_id, metadata_key);


--
-- Name: document_tags uq_document_tag; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.document_tags
    ADD CONSTRAINT uq_document_tag UNIQUE (document_id, tag);


--
-- Name: rfq_scoring_notes uq_rfq_scoring_notes_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_scoring_notes
    ADD CONSTRAINT uq_rfq_scoring_notes_key UNIQUE (rfq_id, vendor_id, criterion_key);


--
-- Name: user_2fa user_2fa_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_2fa
    ADD CONSTRAINT user_2fa_pkey PRIMARY KEY (id);


--
-- Name: user_board_settings user_board_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_board_settings
    ADD CONSTRAINT user_board_settings_pkey PRIMARY KEY (id);


--
-- Name: user_branch_memberships user_branch_memberships_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_branch_memberships
    ADD CONSTRAINT user_branch_memberships_pkey PRIMARY KEY (membership_id);


--
-- Name: user_branch_memberships user_branch_memberships_user_id_branch_id_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_branch_memberships
    ADD CONSTRAINT user_branch_memberships_user_id_branch_id_key UNIQUE (user_id, branch_id);


--
-- Name: user_column_permissions user_column_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_column_permissions
    ADD CONSTRAINT user_column_permissions_pkey PRIMARY KEY (user_column_permission_id);


--
-- Name: user_emails user_emails_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_emails
    ADD CONSTRAINT user_emails_pkey PRIMARY KEY (user_email_id);


--
-- Name: user_emails user_emails_user_id_email_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_emails
    ADD CONSTRAINT user_emails_user_id_email_key UNIQUE (user_id, email);


--
-- Name: user_faces user_faces_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_faces
    ADD CONSTRAINT user_faces_pkey PRIMARY KEY (id);


--
-- Name: user_group_memberships user_group_memberships_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_group_memberships
    ADD CONSTRAINT user_group_memberships_pkey PRIMARY KEY (membership_id);


--
-- Name: user_identities user_identities_provider_code_subject_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_identities
    ADD CONSTRAINT user_identities_provider_code_subject_key UNIQUE (provider_code, subject);


--
-- Name: user_mfa_factors user_mfa_factors_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_mfa_factors
    ADD CONSTRAINT user_mfa_factors_pkey PRIMARY KEY (factor_id);


--
-- Name: user_mfa_totp user_mfa_totp_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_mfa_totp
    ADD CONSTRAINT user_mfa_totp_pkey PRIMARY KEY (factor_id);


--
-- Name: user_mfa_webauthn user_mfa_webauthn_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_mfa_webauthn
    ADD CONSTRAINT user_mfa_webauthn_pkey PRIMARY KEY (factor_id);


--
-- Name: user_module_permissions user_module_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_module_permissions
    ADD CONSTRAINT user_module_permissions_pkey PRIMARY KEY (user_module_permission_id);


--
-- Name: user_org_memberships user_org_memberships_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_org_memberships
    ADD CONSTRAINT user_org_memberships_pkey PRIMARY KEY (membership_id);


--
-- Name: user_org_memberships user_org_memberships_user_id_org_id_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_org_memberships
    ADD CONSTRAINT user_org_memberships_user_id_org_id_key UNIQUE (user_id, org_id);


--
-- Name: user_passkeys user_passkeys_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_passkeys
    ADD CONSTRAINT user_passkeys_pkey PRIMARY KEY (id);


--
-- Name: user_passwords user_passwords_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_passwords
    ADD CONSTRAINT user_passwords_pkey PRIMARY KEY (user_id);


--
-- Name: user_phones user_phones_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_phones
    ADD CONSTRAINT user_phones_pkey PRIMARY KEY (phone_id);


--
-- Name: user_phones user_phones_user_id_phone_number_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_phones
    ADD CONSTRAINT user_phones_user_id_phone_number_key UNIQUE (user_id, phone_number);


--
-- Name: user_recovery_codes user_recovery_codes_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_recovery_codes
    ADD CONSTRAINT user_recovery_codes_pkey PRIMARY KEY (user_id, code_hash);


--
-- Name: user_settings user_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_settings
    ADD CONSTRAINT user_settings_pkey PRIMARY KEY (id);


--
-- Name: user_table_permissions user_table_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_table_permissions
    ADD CONSTRAINT user_table_permissions_pkey PRIMARY KEY (user_table_permission_id);


--
-- Name: user_tokens user_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_tokens
    ADD CONSTRAINT user_tokens_pkey PRIMARY KEY (id);


--
-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.users
    ADD CONSTRAINT users_pkey PRIMARY KEY (user_id);


--
-- Name: users_profiles users_profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.users_profiles
    ADD CONSTRAINT users_profiles_pkey PRIMARY KEY (user_profile_id);


--
-- Name: vehicle_makes vehicle_makes_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vehicle_makes
    ADD CONSTRAINT vehicle_makes_pkey PRIMARY KEY (id);


--
-- Name: vehicle_models vehicle_models_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vehicle_models
    ADD CONSTRAINT vehicle_models_pkey PRIMARY KEY (id);


--
-- Name: vehicle_report_comments vehicle_report_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vehicle_report_comments
    ADD CONSTRAINT vehicle_report_comments_pkey PRIMARY KEY (id);


--
-- Name: vehicle_report_parts vehicle_report_parts_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vehicle_report_parts
    ADD CONSTRAINT vehicle_report_parts_pkey PRIMARY KEY (id);


--
-- Name: vehicle_reports vehicle_reports_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vehicle_reports
    ADD CONSTRAINT vehicle_reports_pkey PRIMARY KEY (id);


--
-- Name: vehicle_services vehicle_services_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vehicle_services
    ADD CONSTRAINT vehicle_services_pkey PRIMARY KEY (id);


--
-- Name: vehicle_trip_points vehicle_trip_points_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vehicle_trip_points
    ADD CONSTRAINT vehicle_trip_points_pkey PRIMARY KEY (id);


--
-- Name: vehicle_trips vehicle_trips_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vehicle_trips
    ADD CONSTRAINT vehicle_trips_pkey PRIMARY KEY (id);


--
-- Name: vehicle_types vehicle_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vehicle_types
    ADD CONSTRAINT vehicle_types_pkey PRIMARY KEY (id);


--
-- Name: vehicles vehicles_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vehicles
    ADD CONSTRAINT vehicles_pkey PRIMARY KEY (id);


--
-- Name: vendor_addresses vendor_addresses_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_addresses
    ADD CONSTRAINT vendor_addresses_pkey PRIMARY KEY (vendor_address_id);


--
-- Name: vendor_bank_accounts vendor_bank_accounts_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_bank_accounts
    ADD CONSTRAINT vendor_bank_accounts_pkey PRIMARY KEY (vendor_bank_account_id);


--
-- Name: vendor_capabilities vendor_capabilities_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_capabilities
    ADD CONSTRAINT vendor_capabilities_pkey PRIMARY KEY (vendor_capability_id);


--
-- Name: vendor_certificates vendor_certificates_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_certificates
    ADD CONSTRAINT vendor_certificates_pkey PRIMARY KEY (vendor_certificate_id);


--
-- Name: vendor_contacts vendor_contacts_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_contacts
    ADD CONSTRAINT vendor_contacts_pkey PRIMARY KEY (vendor_contact_id);


--
-- Name: vendor_documents vendor_documents_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_documents
    ADD CONSTRAINT vendor_documents_pkey PRIMARY KEY (vendor_document_id);


--
-- Name: vendor_emails vendor_emails_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_emails
    ADD CONSTRAINT vendor_emails_pkey PRIMARY KEY (vendor_email_id);


--
-- Name: vendor_invoices vendor_invoices_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_invoices
    ADD CONSTRAINT vendor_invoices_pkey PRIMARY KEY (vendor_invoice_id);


--
-- Name: vendor_performance_metrics vendor_performance_metrics_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_performance_metrics
    ADD CONSTRAINT vendor_performance_metrics_pkey PRIMARY KEY (vendor_performance_metric_id);


--
-- Name: vendor_phone_numbers vendor_phone_numbers_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_phone_numbers
    ADD CONSTRAINT vendor_phone_numbers_pkey PRIMARY KEY (vendor_phone_id);


--
-- Name: vendor_quote_items vendor_quote_items_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_quote_items
    ADD CONSTRAINT vendor_quote_items_pkey PRIMARY KEY (quote_item_id);


--
-- Name: vendor_quotes vendor_quotes_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_quotes
    ADD CONSTRAINT vendor_quotes_pkey PRIMARY KEY (quote_id);


--
-- Name: vendor_supporting_docs vendor_supporting_docs_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_supporting_docs
    ADD CONSTRAINT vendor_supporting_docs_pkey PRIMARY KEY (vendor_supporting_doc_id);


--
-- Name: vendors vendors_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendors
    ADD CONSTRAINT vendors_pkey PRIMARY KEY (vendor_id);


--
-- Name: view_filters view_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.view_filters
    ADD CONSTRAINT view_filters_pkey PRIMARY KEY (id);


--
-- Name: violation_types violation_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.violation_types
    ADD CONSTRAINT violation_types_pkey PRIMARY KEY (id);


--
-- Name: work_types work_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.work_types
    ADD CONSTRAINT work_types_pkey PRIMARY KEY (work_type_id);


--
-- Name: workcom_inspection_types workcom_inspection_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.workcom_inspection_types
    ADD CONSTRAINT workcom_inspection_types_pkey PRIMARY KEY (id);


--
-- Name: workcom_inspections workcom_inspections_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.workcom_inspections
    ADD CONSTRAINT workcom_inspections_pkey PRIMARY KEY (id);


--
-- Name: workflow_approvals workflow_approvals_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.workflow_approvals
    ADD CONSTRAINT workflow_approvals_pkey PRIMARY KEY (id);


--
-- Name: workflow_event_triggers workflow_event_triggers_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.workflow_event_triggers
    ADD CONSTRAINT workflow_event_triggers_pkey PRIMARY KEY (id);


--
-- Name: workflow_instances workflow_instances_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.workflow_instances
    ADD CONSTRAINT workflow_instances_pkey PRIMARY KEY (id);


--
-- Name: workflow_states workflow_states_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.workflow_states
    ADD CONSTRAINT workflow_states_pkey PRIMARY KEY (id);


--
-- Name: workflow_step_types workflow_step_types_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.workflow_step_types
    ADD CONSTRAINT workflow_step_types_pkey PRIMARY KEY (id);


--
-- Name: workflow_steps workflow_steps_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.workflow_steps
    ADD CONSTRAINT workflow_steps_pkey PRIMARY KEY (id);


--
-- Name: workflow_tasks workflow_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.workflow_tasks
    ADD CONSTRAINT workflow_tasks_pkey PRIMARY KEY (id);


--
-- Name: workflow_transitions workflow_transitions_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.workflow_transitions
    ADD CONSTRAINT workflow_transitions_pkey PRIMARY KEY (id);


--
-- Name: workflow_triggers workflow_triggers_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.workflow_triggers
    ADD CONSTRAINT workflow_triggers_pkey PRIMARY KEY (id);


--
-- Name: workflows workflows_name_key; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.workflows
    ADD CONSTRAINT workflows_name_key UNIQUE (name);


--
-- Name: workflows workflows_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.workflows
    ADD CONSTRAINT workflows_pkey PRIMARY KEY (id);


--
-- Name: workplace_registrations workplace_registrations_pkey; Type: CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.workplace_registrations
    ADD CONSTRAINT workplace_registrations_pkey PRIMARY KEY (id);


--
-- Name: audit_logs_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX audit_logs_branch_idx ON public.audit_logs USING btree (branch_id);


--
-- Name: audit_logs_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX audit_logs_tenant_idx ON public.audit_logs USING btree (tenant_id);


--
-- Name: calendar_accounts_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX calendar_accounts_branch_idx ON public.calendar_accounts USING btree (branch_id);


--
-- Name: calendar_accounts_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX calendar_accounts_tenant_idx ON public.calendar_accounts USING btree (tenant_id);


--
-- Name: calendar_availability_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX calendar_availability_branch_idx ON public.calendar_availability USING btree (branch_id);


--
-- Name: calendar_availability_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX calendar_availability_tenant_idx ON public.calendar_availability USING btree (tenant_id);


--
-- Name: calendar_event_documents_org_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX calendar_event_documents_org_idx ON public.calendar_event_documents USING btree (org_id);


--
-- Name: calendar_event_permissions_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX calendar_event_permissions_branch_idx ON public.calendar_event_permissions USING btree (branch_id);


--
-- Name: calendar_event_permissions_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX calendar_event_permissions_tenant_idx ON public.calendar_event_permissions USING btree (tenant_id);


--
-- Name: calendar_events_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX calendar_events_branch_idx ON public.calendar_events USING btree (branch_id);


--
-- Name: calendar_events_category_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX calendar_events_category_idx ON public.calendar_events USING btree (category_id);


--
-- Name: calendar_events_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX calendar_events_tenant_idx ON public.calendar_events USING btree (tenant_id);


--
-- Name: corrective_actions_incident_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX corrective_actions_incident_idx ON public.corrective_actions USING btree (incident_id);


--
-- Name: dcp_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX dcp_branch_idx ON public.dashboard_card_permissions USING btree (branch_id);


--
-- Name: dcp_group_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX dcp_group_idx ON public.dashboard_card_permissions USING btree (group_id);


--
-- Name: dcp_slug_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX dcp_slug_idx ON public.dashboard_card_permissions USING btree (card_slug);


--
-- Name: dcp_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX dcp_tenant_idx ON public.dashboard_card_permissions USING btree (tenant_id);


--
-- Name: dcp_user_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX dcp_user_idx ON public.dashboard_card_permissions USING btree (user_id);


--
-- Name: detail_views_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX detail_views_branch_idx ON public.detail_views USING btree (branch_id);


--
-- Name: detail_views_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX detail_views_tenant_idx ON public.detail_views USING btree (tenant_id);


--
-- Name: document_categories_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX document_categories_branch_idx ON public.document_categories USING btree (branch_id);


--
-- Name: document_categories_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX document_categories_tenant_idx ON public.document_categories USING btree (tenant_id);


--
-- Name: documents_category_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX documents_category_idx ON public.documents USING btree (category_id);


--
-- Name: dve_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX dve_branch_idx ON public.detail_view_elements USING btree (branch_id);


--
-- Name: dve_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX dve_tenant_idx ON public.detail_view_elements USING btree (tenant_id);


--
-- Name: dve_view_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX dve_view_idx ON public.detail_view_elements USING btree (detail_view_id);


--
-- Name: fishbone_diagrams_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX fishbone_diagrams_branch_idx ON public.fishbone_diagrams USING btree (branch_id);


--
-- Name: fishbone_diagrams_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX fishbone_diagrams_tenant_idx ON public.fishbone_diagrams USING btree (tenant_id);


--
-- Name: form_buttons_form_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX form_buttons_form_idx ON public.form_buttons USING btree (form_id);


--
-- Name: form_submission_reviews_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX form_submission_reviews_branch_idx ON public.form_submission_reviews USING btree (branch_id);


--
-- Name: form_submission_reviews_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX form_submission_reviews_tenant_idx ON public.form_submission_reviews USING btree (tenant_id);


--
-- Name: form_wizards_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX form_wizards_branch_idx ON public.form_wizards USING btree (branch_id);


--
-- Name: form_wizards_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX form_wizards_tenant_idx ON public.form_wizards USING btree (tenant_id);


--
-- Name: forms_share_slug_unique; Type: INDEX; Schema: public; Owner: taf
--

CREATE UNIQUE INDEX forms_share_slug_unique ON public.forms USING btree (share_slug) WHERE (share_slug IS NOT NULL);


--
-- Name: fws_form_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX fws_form_idx ON public.form_wizard_steps USING btree (form_id);


--
-- Name: fws_wizard_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX fws_wizard_idx ON public.form_wizard_steps USING btree (wizard_id);


--
-- Name: graphs_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX graphs_branch_idx ON public.graphs USING btree (branch_id);


--
-- Name: graphs_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX graphs_tenant_idx ON public.graphs USING btree (tenant_id);


--
-- Name: idx_doc_metadata_case_lookup; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_doc_metadata_case_lookup ON public.document_metadata USING btree (metadata_value) WHERE ((metadata_key)::text = 'case_id'::text);


--
-- Name: idx_doc_metadata_client_lookup; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_doc_metadata_client_lookup ON public.document_metadata USING btree (metadata_value) WHERE ((metadata_key)::text = 'client_id'::text);


--
-- Name: idx_doc_metadata_doc; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_doc_metadata_doc ON public.document_metadata USING btree (document_id);


--
-- Name: idx_doc_metadata_doc_key; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_doc_metadata_doc_key ON public.document_metadata USING btree (document_id, metadata_key);


--
-- Name: idx_doc_metadata_key; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_doc_metadata_key ON public.document_metadata USING btree (metadata_key);


--
-- Name: idx_doc_metadata_value; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_doc_metadata_value ON public.document_metadata USING btree (metadata_value) WHERE (searchable = true);


--
-- Name: idx_doc_tags_system; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_doc_tags_system ON public.document_tags USING btree (tag) WHERE ((tag_type)::text = 'system'::text);


--
-- Name: idx_document_tags_doc; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_document_tags_doc ON public.document_tags USING btree (document_id);


--
-- Name: idx_document_tags_parent; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_document_tags_parent ON public.document_tags USING btree (parent_tag_id);


--
-- Name: idx_document_tags_tag; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_document_tags_tag ON public.document_tags USING btree (tag);


--
-- Name: idx_documents_parent; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_documents_parent ON public.documents USING btree (parent_document_id) WHERE (parent_document_id IS NOT NULL);


--
-- Name: idx_import_export_configs_name; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_import_export_configs_name ON public.import_export_configs USING btree (name) WHERE (isdeleted = false);


--
-- Name: idx_import_export_configs_org; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_import_export_configs_org ON public.import_export_configs USING btree (org_id) WHERE (isdeleted = false);


--
-- Name: idx_import_export_configs_table; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_import_export_configs_table ON public.import_export_configs USING btree (table_name) WHERE (isdeleted = false);


--
-- Name: idx_import_export_configs_type; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_import_export_configs_type ON public.import_export_configs USING btree (type) WHERE (isdeleted = false);


--
-- Name: idx_payment_items_method; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_payment_items_method ON public.payment_items USING btree (method);


--
-- Name: idx_payment_items_payment_id; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_payment_items_payment_id ON public.payment_items USING btree (payment_id);


--
-- Name: idx_payments_reference; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_payments_reference ON public.payments USING btree (reference_table, reference_id);


--
-- Name: idx_rfq_attachments_rfq; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_attachments_rfq ON public.rfq_attachments USING btree (rfq_id);


--
-- Name: idx_rfq_awards_rfq; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_awards_rfq ON public.rfq_awards USING btree (rfq_id);


--
-- Name: idx_rfq_contracts_number; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_contracts_number ON public.rfq_contracts USING btree (contract_number);


--
-- Name: idx_rfq_contracts_rfq; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_contracts_rfq ON public.rfq_contracts USING btree (rfq_id);


--
-- Name: idx_rfq_contracts_vendor; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_contracts_vendor ON public.rfq_contracts USING btree (vendor_id);


--
-- Name: idx_rfq_conversations_rfq; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_conversations_rfq ON public.rfq_conversations USING btree (rfq_id);


--
-- Name: idx_rfq_conversations_scope; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_conversations_scope ON public.rfq_conversations USING btree (rfq_id, audience);


--
-- Name: idx_rfq_conversations_vendor; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_conversations_vendor ON public.rfq_conversations USING btree (rfq_id, vendor_id) WHERE (vendor_id IS NOT NULL);


--
-- Name: idx_rfq_events_payload_gin; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_events_payload_gin ON public.rfq_events USING gin (payload);


--
-- Name: idx_rfq_events_rfq; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_events_rfq ON public.rfq_events USING btree (rfq_id, created_at);


--
-- Name: idx_rfq_headers_org_type; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_headers_org_type ON public.rfq_headers USING btree (org_id, type);


--
-- Name: idx_rfq_headers_status_due; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_headers_status_due ON public.rfq_headers USING btree (status, due_at);


--
-- Name: idx_rfq_invites_status; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_invites_status ON public.rfq_invites USING btree (rfq_id, status);


--
-- Name: idx_rfq_items_rfq; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_items_rfq ON public.rfq_items USING btree (rfq_id);


--
-- Name: idx_rfq_items_specs; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_items_specs ON public.rfq_items USING gin (required_specs);


--
-- Name: idx_rfq_message_attachments_msg; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_message_attachments_msg ON public.rfq_message_attachments USING btree (message_id);


--
-- Name: idx_rfq_messages_conv; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_messages_conv ON public.rfq_messages USING btree (conversation_id, created_at);


--
-- Name: idx_rfq_messages_rfq; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_messages_rfq ON public.rfq_messages USING btree (rfq_id, created_at);


--
-- Name: idx_rfq_messages_status; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_messages_status ON public.rfq_messages USING btree (status);


--
-- Name: idx_rfq_scoring_notes_rfq; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_scoring_notes_rfq ON public.rfq_scoring_notes USING btree (rfq_id);


--
-- Name: idx_rfq_sections_rfq; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_sections_rfq ON public.rfq_sections USING btree (rfq_id);


--
-- Name: idx_rfq_shortlists_rfq; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_shortlists_rfq ON public.rfq_shortlists USING btree (rfq_id);


--
-- Name: idx_rfq_template_attachments_template; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_template_attachments_template ON public.rfq_template_attachments USING btree (rfq_template_id, sort_order) WHERE (is_deleted = false);


--
-- Name: idx_rfq_template_sections_template; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_template_sections_template ON public.rfq_template_sections USING btree (rfq_template_id, sort_order) WHERE (is_deleted = false);


--
-- Name: idx_rfq_templates_org_name; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_rfq_templates_org_name ON public.rfq_templates USING btree (org_id, lower((name)::text)) WHERE (is_deleted = false);


--
-- Name: idx_sync_hook_logs_created; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_sync_hook_logs_created ON public.sync_hook_logs USING btree (created_at DESC);


--
-- Name: idx_sync_hook_logs_hook; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_sync_hook_logs_hook ON public.sync_hook_logs USING btree (hook_id, created_at DESC);


--
-- Name: idx_sync_hook_logs_status; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_sync_hook_logs_status ON public.sync_hook_logs USING btree (status, created_at DESC) WHERE ((status)::text = 'error'::text);


--
-- Name: idx_sync_hooks_priority; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_sync_hooks_priority ON public.sync_hooks USING btree (priority, hook_id) WHERE (is_active = true);


--
-- Name: idx_sync_hooks_trigger; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_sync_hooks_trigger ON public.sync_hooks USING btree (trigger_table, is_active) WHERE (is_active = true);


--
-- Name: idx_vendor_addresses_vendor; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_vendor_addresses_vendor ON public.vendor_addresses USING btree (vendor_id, address_type) WHERE (isdeleted = false);


--
-- Name: idx_vendor_capabilities_vendor; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_vendor_capabilities_vendor ON public.vendor_capabilities USING btree (vendor_id) WHERE (isdeleted = false);


--
-- Name: idx_vendor_certificates_vendor; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_vendor_certificates_vendor ON public.vendor_certificates USING btree (vendor_id) WHERE (isdeleted = false);


--
-- Name: idx_vendor_contacts_vendor; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_vendor_contacts_vendor ON public.vendor_contacts USING btree (vendor_id) WHERE (isdeleted = false);


--
-- Name: idx_vendor_documents_vendor; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_vendor_documents_vendor ON public.vendor_documents USING btree (vendor_id) WHERE (isdeleted = false);


--
-- Name: idx_vendor_performance_vendor_period; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_vendor_performance_vendor_period ON public.vendor_performance_metrics USING btree (vendor_id, period_end DESC);


--
-- Name: idx_vendor_quote_items_quote; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_vendor_quote_items_quote ON public.vendor_quote_items USING btree (quote_id);


--
-- Name: idx_vendor_quotes_rfq_vendor; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_vendor_quotes_rfq_vendor ON public.vendor_quotes USING btree (rfq_id, vendor_id);


--
-- Name: idx_vendor_quotes_status; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_vendor_quotes_status ON public.vendor_quotes USING btree (rfq_id, status);


--
-- Name: idx_vendor_supporting_docs_vendor; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_vendor_supporting_docs_vendor ON public.vendor_supporting_docs USING btree (vendor_id) WHERE (isdeleted = false);


--
-- Name: idx_vendors_org_status; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX idx_vendors_org_status ON public.vendors USING btree (org_id, lifecycle_status);


--
-- Name: inspection_requests_workplace_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX inspection_requests_workplace_idx ON public.inspection_requests USING btree (workplace_id);


--
-- Name: kanban_boards_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX kanban_boards_branch_idx ON public.kanban_boards USING btree (branch_id);


--
-- Name: kanban_boards_cat_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX kanban_boards_cat_idx ON public.kanban_boards USING btree (calendar_category_id);


--
-- Name: kanban_boards_project_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX kanban_boards_project_idx ON public.kanban_boards USING btree (project_id);


--
-- Name: kanban_boards_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX kanban_boards_tenant_idx ON public.kanban_boards USING btree (tenant_id);


--
-- Name: kanban_columns_board_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX kanban_columns_board_idx ON public.kanban_columns USING btree (board_id);


--
-- Name: kanban_columns_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX kanban_columns_branch_idx ON public.kanban_columns USING btree (branch_id);


--
-- Name: kanban_columns_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX kanban_columns_tenant_idx ON public.kanban_columns USING btree (tenant_id);


--
-- Name: kanban_comments_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX kanban_comments_branch_idx ON public.kanban_comments USING btree (branch_id);


--
-- Name: kanban_comments_task_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX kanban_comments_task_idx ON public.kanban_comments USING btree (task_id);


--
-- Name: kanban_comments_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX kanban_comments_tenant_idx ON public.kanban_comments USING btree (tenant_id);


--
-- Name: kanban_tasks_assignee_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX kanban_tasks_assignee_idx ON public.kanban_tasks USING btree (assignee_id);


--
-- Name: kanban_tasks_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX kanban_tasks_branch_idx ON public.kanban_tasks USING btree (branch_id);


--
-- Name: kanban_tasks_column_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX kanban_tasks_column_idx ON public.kanban_tasks USING btree (column_id);


--
-- Name: kanban_tasks_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX kanban_tasks_tenant_idx ON public.kanban_tasks USING btree (tenant_id);


--
-- Name: legacy_resources_name_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE UNIQUE INDEX legacy_resources_name_idx ON public.legacy_resources USING btree (name);


--
-- Name: meeting_links_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX meeting_links_branch_idx ON public.meeting_links USING btree (branch_id);


--
-- Name: meeting_links_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX meeting_links_tenant_idx ON public.meeting_links USING btree (tenant_id);


--
-- Name: ohs_action_signoffs_item_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_action_signoffs_item_idx ON public.ohs_action_signoffs USING btree (item_id);


--
-- Name: ohs_fault_trees_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_fault_trees_branch_idx ON public.ohs_fault_trees USING btree (branch_id);


--
-- Name: ohs_fault_trees_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_fault_trees_tenant_idx ON public.ohs_fault_trees USING btree (tenant_id);


--
-- Name: ohs_incident_logs_incident_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_incident_logs_incident_idx ON public.ohs_incident_logs USING btree (incident_id);


--
-- Name: ohs_incident_signoffs_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_incident_signoffs_idx ON public.ohs_incident_signoffs USING btree (incident_id);


--
-- Name: ohs_issues_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_issues_branch_idx ON public.ohs_issues USING btree (branch_id);


--
-- Name: ohs_issues_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_issues_tenant_idx ON public.ohs_issues USING btree (tenant_id);


--
-- Name: ohs_jsa_reviewers_jsa_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_jsa_reviewers_jsa_idx ON public.ohs_jsa_reviewers USING btree (jsa_id);


--
-- Name: ohs_jsa_signoffs_jsa_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_jsa_signoffs_jsa_idx ON public.ohs_jsa_signoffs USING btree (jsa_id);


--
-- Name: ohs_jsa_step_files_step_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_jsa_step_files_step_idx ON public.ohs_jsa_step_files USING btree (jsa_step_id);


--
-- Name: ohs_jsa_steps_jsa_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_jsa_steps_jsa_idx ON public.ohs_jsa_steps USING btree (jsa_id);


--
-- Name: ohs_jsa_training_jsa_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_jsa_training_jsa_idx ON public.ohs_jsa_training USING btree (jsa_id);


--
-- Name: ohs_jsa_versions_jsa_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_jsa_versions_jsa_idx ON public.ohs_jsa_versions USING btree (jsa_id);


--
-- Name: ohs_stakeholders_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_stakeholders_branch_idx ON public.ohs_stakeholders USING btree (branch_id);


--
-- Name: ohs_stakeholders_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_stakeholders_tenant_idx ON public.ohs_stakeholders USING btree (tenant_id);


--
-- Name: ohs_training_requirements_course_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_training_requirements_course_idx ON public.ohs_training_requirements USING btree (course_id);


--
-- Name: ohs_training_requirements_location_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_training_requirements_location_idx ON public.ohs_training_requirements USING btree (location_id);


--
-- Name: ohs_training_requirements_project_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_training_requirements_project_idx ON public.ohs_training_requirements USING btree (project_id);


--
-- Name: ohs_training_requirements_role_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX ohs_training_requirements_role_idx ON public.ohs_training_requirements USING btree (role_id);


--
-- Name: one_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX one_branch_idx ON public.ohs_needs_expectations USING btree (branch_id);


--
-- Name: one_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX one_tenant_idx ON public.ohs_needs_expectations USING btree (tenant_id);


--
-- Name: orgs_by_parent; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX orgs_by_parent ON public.orgs USING btree (parent_org_id);


--
-- Name: orgs_by_root; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX orgs_by_root ON public.orgs USING btree (root_org_id);


--
-- Name: orgs_path_gist; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX orgs_path_gist ON public.orgs USING gist (path);


--
-- Name: page_configs_page_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX page_configs_page_idx ON public.page_configs USING btree (page);


--
-- Name: permissions_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX permissions_branch_idx ON public.permissions USING btree (branch_id);


--
-- Name: permissions_department_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX permissions_department_idx ON public.permissions USING btree (department_id);


--
-- Name: permissions_district_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX permissions_district_idx ON public.permissions USING btree (district_id);


--
-- Name: permissions_resource_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX permissions_resource_idx ON public.permissions USING btree (resource_id);


--
-- Name: permissions_resource_type_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX permissions_resource_type_idx ON public.permissions USING btree (resource_type_id);


--
-- Name: permissions_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX permissions_tenant_idx ON public.permissions USING btree (tenant_id);


--
-- Name: permit_documents_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX permit_documents_branch_idx ON public.permit_documents USING btree (branch_id);


--
-- Name: permit_documents_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX permit_documents_tenant_idx ON public.permit_documents USING btree (tenant_id);


--
-- Name: permit_inspections_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX permit_inspections_branch_idx ON public.permit_inspections USING btree (branch_id);


--
-- Name: permit_inspections_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX permit_inspections_tenant_idx ON public.permit_inspections USING btree (tenant_id);


--
-- Name: permit_signatures_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX permit_signatures_branch_idx ON public.permit_signatures USING btree (branch_id);


--
-- Name: permit_signatures_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX permit_signatures_tenant_idx ON public.permit_signatures USING btree (tenant_id);


--
-- Name: projects_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX projects_branch_idx ON public.projects USING btree (branch_id);


--
-- Name: projects_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX projects_tenant_idx ON public.projects USING btree (tenant_id);


--
-- Name: resources_type_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX resources_type_idx ON public.resources USING btree (resource_type_id);


--
-- Name: rfq_approval_instances_rfq_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX rfq_approval_instances_rfq_idx ON public.rfq_approval_instances USING btree (rfq_id);


--
-- Name: risk_assessment_files_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessment_files_branch_idx ON public.risk_assessment_files USING btree (branch_id);


--
-- Name: risk_assessment_files_ra_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessment_files_ra_idx ON public.risk_assessment_files USING btree (risk_assessment_id);


--
-- Name: risk_assessment_files_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessment_files_tenant_idx ON public.risk_assessment_files USING btree (tenant_id);


--
-- Name: risk_assessment_hazards_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessment_hazards_branch_idx ON public.risk_assessment_hazards USING btree (branch_id);


--
-- Name: risk_assessment_hazards_ra_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessment_hazards_ra_idx ON public.risk_assessment_hazards USING btree (risk_assessment_id);


--
-- Name: risk_assessment_hazards_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessment_hazards_tenant_idx ON public.risk_assessment_hazards USING btree (tenant_id);


--
-- Name: risk_assessment_ppe_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessment_ppe_branch_idx ON public.risk_assessment_ppe USING btree (branch_id);


--
-- Name: risk_assessment_ppe_ra_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessment_ppe_ra_idx ON public.risk_assessment_ppe USING btree (risk_assessment_id);


--
-- Name: risk_assessment_ppe_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessment_ppe_tenant_idx ON public.risk_assessment_ppe USING btree (tenant_id);


--
-- Name: risk_assessment_signoffs_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessment_signoffs_branch_idx ON public.risk_assessment_signoffs USING btree (branch_id);


--
-- Name: risk_assessment_signoffs_ra_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessment_signoffs_ra_idx ON public.risk_assessment_signoffs USING btree (risk_assessment_id);


--
-- Name: risk_assessment_signoffs_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessment_signoffs_tenant_idx ON public.risk_assessment_signoffs USING btree (tenant_id);


--
-- Name: risk_assessment_types_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessment_types_branch_idx ON public.risk_assessment_types USING btree (branch_id);


--
-- Name: risk_assessment_types_form_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessment_types_form_idx ON public.risk_assessment_types USING btree (form_id);


--
-- Name: risk_assessment_types_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessment_types_tenant_idx ON public.risk_assessment_types USING btree (tenant_id);


--
-- Name: risk_assessments_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessments_branch_idx ON public.risk_assessments USING btree (branch_id);


--
-- Name: risk_assessments_incident_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessments_incident_idx ON public.risk_assessments USING btree (incident_id);


--
-- Name: risk_assessments_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessments_tenant_idx ON public.risk_assessments USING btree (tenant_id);


--
-- Name: risk_assessments_type_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_assessments_type_idx ON public.risk_assessments USING btree (risk_assessment_type_id);


--
-- Name: risk_categories_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_categories_branch_idx ON public.risk_categories USING btree (branch_id);


--
-- Name: risk_categories_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_categories_tenant_idx ON public.risk_categories USING btree (tenant_id);


--
-- Name: risk_identifications_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_identifications_branch_idx ON public.risk_identifications USING btree (branch_id);


--
-- Name: risk_identifications_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX risk_identifications_tenant_idx ON public.risk_identifications USING btree (tenant_id);


--
-- Name: safety_alert_logs_alert_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX safety_alert_logs_alert_idx ON public.safety_alert_logs USING btree (alert_id);


--
-- Name: service_connections_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX service_connections_branch_idx ON public.service_connections USING btree (branch_id);


--
-- Name: service_connections_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX service_connections_tenant_idx ON public.service_connections USING btree (tenant_id);


--
-- Name: service_connections_user_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX service_connections_user_idx ON public.service_connections USING btree (user_id);


--
-- Name: service_types_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX service_types_branch_idx ON public.service_types USING btree (branch_id);


--
-- Name: service_types_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX service_types_tenant_idx ON public.service_types USING btree (tenant_id);


--
-- Name: tcs_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX tcs_branch_idx ON public.table_column_settings USING btree (branch_id);


--
-- Name: tcs_table_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX tcs_table_idx ON public.table_column_settings USING btree (table_name);


--
-- Name: tcs_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX tcs_tenant_idx ON public.table_column_settings USING btree (tenant_id);


--
-- Name: tcs_user_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX tcs_user_idx ON public.table_column_settings USING btree (user_id);


--
-- Name: tenant_tables_name_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX tenant_tables_name_idx ON public.tenant_tables USING btree (table_name);


--
-- Name: tenant_tables_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX tenant_tables_tenant_idx ON public.tenant_tables USING btree (tenant_id);


--
-- Name: tenant_tables_user_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX tenant_tables_user_idx ON public.tenant_tables USING btree (user_id);


--
-- Name: training_paths_country_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX training_paths_country_idx ON public.training_paths USING btree (country_id);


--
-- Name: training_paths_department_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX training_paths_department_idx ON public.training_paths USING btree (department_id);


--
-- Name: training_paths_role_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX training_paths_role_idx ON public.training_paths USING btree (role_id);


--
-- Name: training_paths_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX training_paths_tenant_idx ON public.training_paths USING btree (tenant_id);


--
-- Name: uq_pos_settings_org_branch; Type: INDEX; Schema: public; Owner: taf
--

CREATE UNIQUE INDEX uq_pos_settings_org_branch ON public.pos_settings USING btree (org_id, branch_id) WHERE (isdeleted = false);


--
-- Name: uq_rfq_invite_unique; Type: INDEX; Schema: public; Owner: taf
--

CREATE UNIQUE INDEX uq_rfq_invite_unique ON public.rfq_invites USING btree (rfq_id, vendor_id);


--
-- Name: uq_rfq_org_number; Type: INDEX; Schema: public; Owner: taf
--

CREATE UNIQUE INDEX uq_rfq_org_number ON public.rfq_headers USING btree (org_id, rfq_number) WHERE (rfq_number IS NOT NULL);


--
-- Name: user_board_settings_board_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX user_board_settings_board_idx ON public.user_board_settings USING btree (board_id);


--
-- Name: user_board_settings_user_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX user_board_settings_user_idx ON public.user_board_settings USING btree (user_id);


--
-- Name: user_emails_one_primary; Type: INDEX; Schema: public; Owner: taf
--

CREATE UNIQUE INDEX user_emails_one_primary ON public.user_emails USING btree (user_id) WHERE is_primary;


--
-- Name: user_emails_verified_unique; Type: INDEX; Schema: public; Owner: taf
--

CREATE UNIQUE INDEX user_emails_verified_unique ON public.user_emails USING btree (email) WHERE (verified_at IS NOT NULL);


--
-- Name: user_phones_one_primary; Type: INDEX; Schema: public; Owner: taf
--

CREATE UNIQUE INDEX user_phones_one_primary ON public.user_phones USING btree (user_id) WHERE is_primary;


--
-- Name: user_phones_verified_unique; Type: INDEX; Schema: public; Owner: taf
--

CREATE UNIQUE INDEX user_phones_verified_unique ON public.user_phones USING btree (phone_number) WHERE (verified_at IS NOT NULL);


--
-- Name: vehicle_makes_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_makes_branch_idx ON public.vehicle_makes USING btree (branch_id);


--
-- Name: vehicle_makes_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_makes_tenant_idx ON public.vehicle_makes USING btree (tenant_id);


--
-- Name: vehicle_models_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_models_branch_idx ON public.vehicle_models USING btree (branch_id);


--
-- Name: vehicle_models_make_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_models_make_idx ON public.vehicle_models USING btree (make_id);


--
-- Name: vehicle_models_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_models_tenant_idx ON public.vehicle_models USING btree (tenant_id);


--
-- Name: vehicle_report_comments_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_report_comments_branch_idx ON public.vehicle_report_comments USING btree (branch_id);


--
-- Name: vehicle_report_comments_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_report_comments_tenant_idx ON public.vehicle_report_comments USING btree (tenant_id);


--
-- Name: vehicle_report_parts_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_report_parts_branch_idx ON public.vehicle_report_parts USING btree (branch_id);


--
-- Name: vehicle_report_parts_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_report_parts_tenant_idx ON public.vehicle_report_parts USING btree (tenant_id);


--
-- Name: vehicle_reports_assigned_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_reports_assigned_idx ON public.vehicle_reports USING btree (assigned_to);


--
-- Name: vehicle_reports_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_reports_tenant_idx ON public.vehicle_reports USING btree (tenant_id);


--
-- Name: vehicle_reports_updated_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_reports_updated_idx ON public.vehicle_reports USING btree (updatedat);


--
-- Name: vehicle_reports_vehicle_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_reports_vehicle_idx ON public.vehicle_reports USING btree (vehicle_id);


--
-- Name: vehicle_services_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_services_branch_idx ON public.vehicle_services USING btree (branch_id);


--
-- Name: vehicle_services_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_services_tenant_idx ON public.vehicle_services USING btree (tenant_id);


--
-- Name: vehicle_trip_points_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_trip_points_branch_idx ON public.vehicle_trip_points USING btree (branch_id);


--
-- Name: vehicle_trip_points_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_trip_points_tenant_idx ON public.vehicle_trip_points USING btree (tenant_id);


--
-- Name: vehicle_trip_points_trip_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_trip_points_trip_idx ON public.vehicle_trip_points USING btree (trip_id);


--
-- Name: vehicle_trips_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_trips_branch_idx ON public.vehicle_trips USING btree (branch_id);


--
-- Name: vehicle_trips_driver_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_trips_driver_idx ON public.vehicle_trips USING btree (driver_id);


--
-- Name: vehicle_trips_status_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_trips_status_idx ON public.vehicle_trips USING btree (status);


--
-- Name: vehicle_trips_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_trips_tenant_idx ON public.vehicle_trips USING btree (tenant_id);


--
-- Name: vehicle_types_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_types_branch_idx ON public.vehicle_types USING btree (branch_id);


--
-- Name: vehicle_types_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicle_types_tenant_idx ON public.vehicle_types USING btree (tenant_id);


--
-- Name: vehicles_branch_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicles_branch_idx ON public.vehicles USING btree (branch_id);


--
-- Name: vehicles_tenant_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX vehicles_tenant_idx ON public.vehicles USING btree (tenant_id);


--
-- Name: workcom_inspections_request_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX workcom_inspections_request_idx ON public.workcom_inspections USING btree (inspection_request_id);


--
-- Name: workcom_inspections_workplace_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX workcom_inspections_workplace_idx ON public.workcom_inspections USING btree (workplace_id);


--
-- Name: workflow_event_triggers_event_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX workflow_event_triggers_event_idx ON public.workflow_event_triggers USING btree (event_name);


--
-- Name: workflow_event_triggers_form_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX workflow_event_triggers_form_idx ON public.workflow_event_triggers USING btree (form_id);


--
-- Name: workflow_event_triggers_table_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX workflow_event_triggers_table_idx ON public.workflow_event_triggers USING btree (table_name);


--
-- Name: workflow_triggers_event_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX workflow_triggers_event_idx ON public.workflow_triggers USING btree (event_name);


--
-- Name: workflow_triggers_wf_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX workflow_triggers_wf_idx ON public.workflow_triggers USING btree (workflow_id);


--
-- Name: workplace_registrations_email_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX workplace_registrations_email_idx ON public.workplace_registrations USING btree (contact_email);


--
-- Name: workplace_registrations_invoice_id_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX workplace_registrations_invoice_id_idx ON public.workplace_registrations USING btree (invoice_id);


--
-- Name: workplace_registrations_reviewer_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX workplace_registrations_reviewer_idx ON public.workplace_registrations USING btree (assigned_reviewer_id);


--
-- Name: workplace_registrations_status_idx; Type: INDEX; Schema: public; Owner: taf
--

CREATE INDEX workplace_registrations_status_idx ON public.workplace_registrations USING btree (status);


--
-- Name: notification_queue notification_notify; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER notification_notify AFTER INSERT ON public.notification_queue FOR EACH ROW EXECUTE FUNCTION public.notify_notification_queue();


--
-- Name: orgs trg_orgs_root_path; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_orgs_root_path BEFORE INSERT OR UPDATE OF parent_org_id ON public.orgs FOR EACH ROW EXECUTE FUNCTION public.orgs_set_root_path();


--
-- Name: time_entries trg_set_time_entry_rate; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_time_entry_rate BEFORE INSERT ON public.time_entries FOR EACH ROW EXECUTE FUNCTION public.set_time_entry_rate();


--
-- Name: account_ai_feedback trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.account_ai_feedback FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: appeals trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.appeals FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: applications trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.applications FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: appraisal_templates trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.appraisal_templates FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: attendance trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.attendance FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: audit_logs trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.audit_logs FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: auto_orders trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.auto_orders FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: bank_detail_changes trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.bank_detail_changes FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: branches trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.branches FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: budgets trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.budgets FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: calendar_accounts trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.calendar_accounts FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: calendar_availability trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.calendar_availability FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: calendar_categories trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.calendar_categories FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: calendar_event_documents trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.calendar_event_documents FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: calendar_event_permissions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.calendar_event_permissions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: calendar_events trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.calendar_events FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: career_paths trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.career_paths FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: career_steps trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.career_steps FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: case_evidence trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.case_evidence FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: case_instructions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.case_instructions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: case_notes trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.case_notes FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: case_participants trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.case_participants FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: case_tasks trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.case_tasks FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: cases trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.cases FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: cash_sessions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.cash_sessions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: certificate_templates trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.certificate_templates FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: check_ins trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.check_ins FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: clients trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.clients FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: companies trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.companies FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: competencies trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.competencies FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: competency_assessments trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.competency_assessments FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: contract_approvals trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.contract_approvals FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: contract_versions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.contract_versions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: contracts trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.contracts FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: corrective_actions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.corrective_actions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: countries trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.countries FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: country_holidays trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.country_holidays FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: custom_field_values trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.custom_field_values FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: custom_fields trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.custom_fields FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: customer_history trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.customer_history FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: customer_settings trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.customer_settings FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: customers trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.customers FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: dashboard_card_permissions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.dashboard_card_permissions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: deduction_rates trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.deduction_rates FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: deduction_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.deduction_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: demo_graph_data trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.demo_graph_data FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: departments trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.departments FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: detail_view_elements trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.detail_view_elements FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: detail_views trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.detail_views FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: disciplinary_actions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.disciplinary_actions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: disciplinary_cases trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.disciplinary_cases FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: districts trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.districts FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: document_categories trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.document_categories FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: document_comments trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.document_comments FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: document_folders trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.document_folders FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: document_metadata trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.document_metadata FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: document_permissions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.document_permissions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: document_tags trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.document_tags FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: document_versions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.document_versions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: documents trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.documents FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: element_options trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.element_options FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: element_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.element_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: employee_authorized_locations trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.employee_authorized_locations FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: employee_certificates trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.employee_certificates FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: employee_competencies trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.employee_competencies FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: employee_custom_fields trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.employee_custom_fields FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: employee_custom_values trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.employee_custom_values FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: employee_documents trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.employee_documents FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: employee_exits trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.employee_exits FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: employee_items trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.employee_items FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: employee_shifts trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.employee_shifts FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: employee_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.employee_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: employees2locations trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.employees2locations FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: employees2users trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.employees2users FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: event_categories trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.event_categories FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: exit_approvals trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.exit_approvals FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: exit_clearances trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.exit_clearances FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: exit_feedback trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.exit_feedback FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: exit_interviews trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.exit_interviews FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: expense_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.expense_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: expenses trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.expenses FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: feedback_notes trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.feedback_notes FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: feedback_requests trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.feedback_requests FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: field_definitions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.field_definitions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: final_settlements trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.final_settlements FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: fishbone_diagrams trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.fishbone_diagrams FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: form_buttons trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.form_buttons FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: form_categories trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.form_categories FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: form_certificates trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.form_certificates FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: form_definitions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.form_definitions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: form_submission_reviews trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.form_submission_reviews FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: form_submission_values trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.form_submission_values FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: form_submissions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.form_submissions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: form_wizard_steps trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.form_wizard_steps FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: form_wizards trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.form_wizards FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: forms trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.forms FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: goal_alignment trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.goal_alignment FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: goal_documents trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.goal_documents FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: goal_milestones trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.goal_milestones FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: goal_score_labels trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.goal_score_labels FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: goal_templates trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.goal_templates FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: goods_receipts trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.goods_receipts FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: graphs trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.graphs FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: group_column_permissions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.group_column_permissions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: group_module_permissions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.group_module_permissions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: group_table_permissions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.group_table_permissions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: groups trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.groups FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: import_export_configs trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.import_export_configs FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: incident_alert_rules trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.incident_alert_rules FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ingredients trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ingredients FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ingredients_to_products trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ingredients_to_products FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: inspection_assignment_rules trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.inspection_assignment_rules FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: inspection_requests trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.inspection_requests FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: interview_logs trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.interview_logs FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: interviewers trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.interviewers FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: interviews trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.interviews FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: inventory trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.inventory FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: inventory_receive trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.inventory_receive FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: inventory_txn trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.inventory_txn FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: invoice_payments trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.invoice_payments FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: invoice_settings trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.invoice_settings FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: invoice_templates trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.invoice_templates FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: invoice_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.invoice_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: invoices trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.invoices FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: items trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.items FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: job_opening_templates trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.job_opening_templates FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: kanban_boards trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.kanban_boards FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: kanban_columns trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.kanban_columns FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: kanban_comments trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.kanban_comments FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: kanban_tasks trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.kanban_tasks FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: leave_requests trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.leave_requests FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: leave_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.leave_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: legacy_resources trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.legacy_resources FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: line_items trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.line_items FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: lineitems_payments trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.lineitems_payments FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: locations trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.locations FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: meeting_links trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.meeting_links FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: models trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.models FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: modules trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.modules FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: notification_log trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.notification_log FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: notification_queue trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.notification_queue FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_action_signoffs trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_action_signoffs FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_actions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_actions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_assignment_rules trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_assignment_rules FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_compliance_logs trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_compliance_logs FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_compliance_tasks trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_compliance_tasks FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_emergency_contacts trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_emergency_contacts FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_emergency_drills trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_emergency_drills FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_fault_trees trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_fault_trees FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_field_incidents trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_field_incidents FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_five_whys trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_five_whys FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_hazard_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_hazard_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_hazards trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_hazards FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_health_checks trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_health_checks FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_incident_custom_fields trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_incident_custom_fields FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_incident_files trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_incident_files FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_incident_logs trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_incident_logs FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_incident_signoffs trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_incident_signoffs FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_incident_statuses trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_incident_statuses FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_incident_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_incident_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_incidents trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_incidents FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_inspection_audits trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_inspection_audits FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_inspection_items trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_inspection_items FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_inspection_templates trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_inspection_templates FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_inspection_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_inspection_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_inspections trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_inspections FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_issues trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_issues FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_jsa_reviewers trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_jsa_reviewers FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_jsa_signoffs trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_jsa_signoffs FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_jsa_step_files trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_jsa_step_files FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_jsa_steps trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_jsa_steps FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_jsa_training trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_jsa_training FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_jsa_versions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_jsa_versions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_jsas trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_jsas FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_medicals trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_medicals FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_needs_expectations trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_needs_expectations FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_regulations trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_regulations FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_risk_matrices trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_risk_matrices FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_risk_reviews trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_risk_reviews FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_root_causes trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_root_causes FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_severities trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_severities FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_stakeholders trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_stakeholders FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ohs_training_requirements trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ohs_training_requirements FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: one_time_service_costs trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.one_time_service_costs FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: open_positions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.open_positions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: orgs trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.orgs FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: overtime_rules trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.overtime_rules FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: page_configs trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.page_configs FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: payment_items trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.payment_items FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: payment_request trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.payment_request FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: payment_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.payment_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: payments trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.payments FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: payroll_anomalies trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.payroll_anomalies FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: payslip_deductions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.payslip_deductions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: payslips trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.payslips FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: performance_goals trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.performance_goals FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: performance_reviews trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.performance_reviews FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: permissions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.permissions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: permit_applications trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.permit_applications FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: permit_documents trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.permit_documents FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: permit_inspections trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.permit_inspections FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: permit_signatures trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.permit_signatures FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: permit_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.permit_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: policies trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.policies FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: policy_acknowledgments trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.policy_acknowledgments FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: policy_approvals trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.policy_approvals FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: policy_targets trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.policy_targets FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: policy_templates trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.policy_templates FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: pos_settings trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.pos_settings FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: procurement_requests trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.procurement_requests FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: procurements trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.procurements FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: product_batch_number trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.product_batch_number FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: product_categories trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.product_categories FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: product_daily_rec trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.product_daily_rec FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: product_discounts trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.product_discounts FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: products trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.products FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: products_2_categories trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.products_2_categories FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: products_2_taxcodes trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.products_2_taxcodes FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: products_to_vendors trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.products_to_vendors FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: program_default_group_permissions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.program_default_group_permissions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: program_default_groups trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.program_default_groups FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: program_enrollments trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.program_enrollments FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: program_modules trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.program_modules FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: programs trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.programs FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: projects trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.projects FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: properties trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.properties FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: property_rates trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.property_rates FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: purchase_orders trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.purchase_orders FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: push_subscriptions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.push_subscriptions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: quotations trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.quotations FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rate_invoices trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rate_invoices FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rate_payments trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rate_payments FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: ratepayers trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.ratepayers FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: receipts trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.receipts FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: reimbursement_claims trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.reimbursement_claims FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: resource_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.resource_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: resources trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.resources FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: review_calibrations trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.review_calibrations FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: review_cycles trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.review_cycles FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: review_documents trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.review_documents FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: review_schedules trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.review_schedules FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rfq_approval_levels trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rfq_approval_levels FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rfq_attachments trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rfq_attachments FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rfq_contracts trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rfq_contracts FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rfq_conversations trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rfq_conversations FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rfq_headers trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rfq_headers FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rfq_invites trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rfq_invites FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rfq_items trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rfq_items FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rfq_message_attachments trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rfq_message_attachments FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rfq_messages trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rfq_messages FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rfq_scoring_notes trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rfq_scoring_notes FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rfq_sections trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rfq_sections FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rfq_shortlists trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rfq_shortlists FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rfq_template_attachments trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rfq_template_attachments FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rfq_template_sections trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rfq_template_sections FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: rfq_templates trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.rfq_templates FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: risk_assessment_files trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.risk_assessment_files FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: risk_assessment_hazards trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.risk_assessment_hazards FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: risk_assessment_ppe trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.risk_assessment_ppe FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: risk_assessment_signoffs trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.risk_assessment_signoffs FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: risk_assessment_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.risk_assessment_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: risk_assessments trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.risk_assessments FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: risk_categories trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.risk_categories FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: risk_identifications trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.risk_identifications FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: role_competencies trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.role_competencies FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: safety_alert_files trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.safety_alert_files FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: safety_alert_logs trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.safety_alert_logs FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: safety_alerts trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.safety_alerts FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: safety_document_versions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.safety_document_versions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: safety_documents trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.safety_documents FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: safety_field_incidents trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.safety_field_incidents FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: safety_incident_files trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.safety_incident_files FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: safety_incident_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.safety_incident_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: safety_incidents trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.safety_incidents FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: salaries trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.salaries FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: sales_receipts trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.sales_receipts FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: sales_tax_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.sales_tax_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: scheduled_reports trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.scheduled_reports FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: service_connections trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.service_connections FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: service_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.service_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: settings trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.settings FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: shift_swaps trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.shift_swaps FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: shifts trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.shifts FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: software_info trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.software_info FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: storage_connectors trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.storage_connectors FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: supervisor_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.supervisor_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: table_column_settings trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.table_column_settings FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: table_views trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.table_views FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: tasks trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.tasks FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: tax_core_request trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.tax_core_request FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: tax_core_response trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.tax_core_response FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: tax_ledger trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.tax_ledger FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: tenant_admins trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.tenant_admins FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: tenant_module_settings trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.tenant_module_settings FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: tenant_modules trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.tenant_modules FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: tenant_tables trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.tenant_tables FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: tenants trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.tenants FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: time_clock_aggregates trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.time_clock_aggregates FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: time_clocks trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.time_clocks FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: time_entries trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.time_entries FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: timesheets trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.timesheets FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: training_answers trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.training_answers FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: training_badges trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.training_badges FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: training_bookmarks trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.training_bookmarks FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: training_categories trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.training_categories FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: training_certificates trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.training_certificates FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: training_contents trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.training_contents FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: training_courses trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.training_courses FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: training_enrollments trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.training_enrollments FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: training_feedback trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.training_feedback FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: training_path_courses trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.training_path_courses FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: training_paths trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.training_paths FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: training_questions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.training_questions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: training_quizzes trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.training_quizzes FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: training_results trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.training_results FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: training_sessions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.training_sessions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: user_2fa trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.user_2fa FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: user_board_settings trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.user_board_settings FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: user_branch_memberships trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.user_branch_memberships FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: user_column_permissions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.user_column_permissions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: user_emails trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.user_emails FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: user_faces trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.user_faces FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: user_group_memberships trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.user_group_memberships FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: user_mfa_factors trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.user_mfa_factors FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: user_module_permissions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.user_module_permissions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: user_org_memberships trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.user_org_memberships FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: user_passkeys trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.user_passkeys FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: user_passwords trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.user_passwords FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: user_phones trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.user_phones FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: user_settings trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.user_settings FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: user_table_permissions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.user_table_permissions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: user_tokens trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.user_tokens FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: users trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.users FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: users_profiles trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.users_profiles FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vehicle_makes trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vehicle_makes FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vehicle_models trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vehicle_models FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vehicle_report_comments trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vehicle_report_comments FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vehicle_report_parts trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vehicle_report_parts FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vehicle_reports trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vehicle_reports FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vehicle_services trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vehicle_services FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vehicle_trip_points trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vehicle_trip_points FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vehicle_trips trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vehicle_trips FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vehicle_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vehicle_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vehicles trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vehicles FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vendor_addresses trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vendor_addresses FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vendor_bank_accounts trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vendor_bank_accounts FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vendor_capabilities trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vendor_capabilities FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vendor_certificates trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vendor_certificates FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vendor_contacts trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vendor_contacts FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vendor_documents trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vendor_documents FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vendor_emails trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vendor_emails FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vendor_invoices trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vendor_invoices FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vendor_performance_metrics trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vendor_performance_metrics FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vendor_phone_numbers trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vendor_phone_numbers FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vendor_quotes trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vendor_quotes FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vendor_supporting_docs trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vendor_supporting_docs FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: vendors trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.vendors FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: view_filters trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.view_filters FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: violation_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.violation_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: work_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.work_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: workcom_inspection_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.workcom_inspection_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: workcom_inspections trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.workcom_inspections FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: workflow_approvals trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.workflow_approvals FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: workflow_event_triggers trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.workflow_event_triggers FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: workflow_instances trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.workflow_instances FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: workflow_states trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.workflow_states FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: workflow_step_types trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.workflow_step_types FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: workflow_steps trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.workflow_steps FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: workflow_tasks trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.workflow_tasks FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: workflow_transitions trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.workflow_transitions FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: workflow_triggers trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.workflow_triggers FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: workflows trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.workflows FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: workplace_registrations trg_set_updatedat; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trg_set_updatedat BEFORE UPDATE ON public.workplace_registrations FOR EACH ROW EXECUTE FUNCTION public.set_updatedat();


--
-- Name: program_enrollments trigger_create_default_program_groups; Type: TRIGGER; Schema: public; Owner: taf
--

CREATE TRIGGER trigger_create_default_program_groups AFTER INSERT OR UPDATE ON public.program_enrollments FOR EACH ROW EXECUTE FUNCTION public.create_default_program_groups();


--
-- Name: auto_orders auto_orders_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.auto_orders
    ADD CONSTRAINT auto_orders_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.products(product_id) ON DELETE CASCADE;


--
-- Name: branches branches_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.branches
    ADD CONSTRAINT branches_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: budgets budgets_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.budgets
    ADD CONSTRAINT budgets_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: case_instructions case_instructions_case_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.case_instructions
    ADD CONSTRAINT case_instructions_case_id_fkey FOREIGN KEY (case_id) REFERENCES public.cases(case_id) ON DELETE CASCADE;


--
-- Name: case_instructions case_instructions_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.case_instructions
    ADD CONSTRAINT case_instructions_created_by_fkey FOREIGN KEY (created_by) REFERENCES public.users(user_id);


--
-- Name: cases cases_client_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.cases
    ADD CONSTRAINT cases_client_id_fkey FOREIGN KEY (client_id) REFERENCES public.clients(client_id) ON DELETE CASCADE;


--
-- Name: cases cases_lead_rep_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.cases
    ADD CONSTRAINT cases_lead_rep_id_fkey FOREIGN KEY (lead_rep_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: cases cases_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.cases
    ADD CONSTRAINT cases_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: cases cases_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.cases
    ADD CONSTRAINT cases_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: clients clients_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.clients
    ADD CONSTRAINT clients_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: clients clients_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.clients
    ADD CONSTRAINT clients_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id);


--
-- Name: customers customers_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT customers_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: customers customers_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT customers_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id);


--
-- Name: deduction_rates deduction_rates_deduction_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.deduction_rates
    ADD CONSTRAINT deduction_rates_deduction_type_id_fkey FOREIGN KEY (deduction_type_id) REFERENCES public.deduction_types(deduction_type_id);


--
-- Name: deduction_types deduction_types_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.deduction_types
    ADD CONSTRAINT deduction_types_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: departments departments_branch_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.departments
    ADD CONSTRAINT departments_branch_id_fkey FOREIGN KEY (branch_id) REFERENCES public.orgs(org_id);


--
-- Name: document_metadata document_metadata_document_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.document_metadata
    ADD CONSTRAINT document_metadata_document_id_fkey FOREIGN KEY (document_id) REFERENCES public.documents(document_id) ON DELETE CASCADE;


--
-- Name: document_tags document_tags_parent_tag_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.document_tags
    ADD CONSTRAINT document_tags_parent_tag_id_fkey FOREIGN KEY (parent_tag_id) REFERENCES public.document_tags(document_tag_id) ON DELETE CASCADE;


--
-- Name: documents documents_parent_document_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.documents
    ADD CONSTRAINT documents_parent_document_id_fkey FOREIGN KEY (parent_document_id) REFERENCES public.documents(document_id) ON DELETE SET NULL;


--
-- Name: expenses expenses_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.expenses
    ADD CONSTRAINT expenses_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id);


--
-- Name: goods_receipts goods_receipts_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.goods_receipts
    ADD CONSTRAINT goods_receipts_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: goods_receipts goods_receipts_purchase_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.goods_receipts
    ADD CONSTRAINT goods_receipts_purchase_order_id_fkey FOREIGN KEY (purchase_order_id) REFERENCES public.purchase_orders(purchase_order_id) ON DELETE CASCADE;


--
-- Name: group_column_permissions group_column_permissions_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.group_column_permissions
    ADD CONSTRAINT group_column_permissions_group_id_fkey FOREIGN KEY (group_id) REFERENCES public.groups(group_id) ON DELETE CASCADE;


--
-- Name: group_module_permissions group_module_permissions_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.group_module_permissions
    ADD CONSTRAINT group_module_permissions_group_id_fkey FOREIGN KEY (group_id) REFERENCES public.groups(group_id) ON DELETE CASCADE;


--
-- Name: group_module_permissions group_module_permissions_module_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.group_module_permissions
    ADD CONSTRAINT group_module_permissions_module_id_fkey FOREIGN KEY (module_id) REFERENCES public.modules(module_id) ON DELETE CASCADE;


--
-- Name: group_table_permissions group_table_permissions_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.group_table_permissions
    ADD CONSTRAINT group_table_permissions_group_id_fkey FOREIGN KEY (group_id) REFERENCES public.groups(group_id) ON DELETE CASCADE;


--
-- Name: groups groups_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.groups
    ADD CONSTRAINT groups_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id);


--
-- Name: groups groups_parent_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.groups
    ADD CONSTRAINT groups_parent_group_id_fkey FOREIGN KEY (parent_group_id) REFERENCES public.groups(group_id);


--
-- Name: import_export_configs import_export_configs_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.import_export_configs
    ADD CONSTRAINT import_export_configs_created_by_fkey FOREIGN KEY (created_by) REFERENCES public.users(user_id) ON DELETE SET NULL;


--
-- Name: import_export_configs import_export_configs_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.import_export_configs
    ADD CONSTRAINT import_export_configs_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: ingredients ingredients_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ingredients
    ADD CONSTRAINT ingredients_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: ingredients_to_products ingredients_to_products_ingredients_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ingredients_to_products
    ADD CONSTRAINT ingredients_to_products_ingredients_id_fkey FOREIGN KEY (ingredients_id) REFERENCES public.ingredients(ingredients_id) ON DELETE CASCADE;


--
-- Name: ingredients_to_products ingredients_to_products_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ingredients_to_products
    ADD CONSTRAINT ingredients_to_products_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: ingredients_to_products ingredients_to_products_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.ingredients_to_products
    ADD CONSTRAINT ingredients_to_products_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.products(product_id) ON DELETE CASCADE;


--
-- Name: interviewers interviewers_interview_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.interviewers
    ADD CONSTRAINT interviewers_interview_id_fkey FOREIGN KEY (interview_id) REFERENCES public.interviews(interview_id) ON DELETE CASCADE;


--
-- Name: interviewers interviewers_interviewer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.interviewers
    ADD CONSTRAINT interviewers_interviewer_id_fkey FOREIGN KEY (interviewer_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: interviews interviews_application_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.interviews
    ADD CONSTRAINT interviews_application_id_fkey FOREIGN KEY (application_id) REFERENCES public.applications(application_id) ON DELETE CASCADE;


--
-- Name: inventory inventory_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.inventory
    ADD CONSTRAINT inventory_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id);


--
-- Name: inventory inventory_product_batch_number_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.inventory
    ADD CONSTRAINT inventory_product_batch_number_id_fkey FOREIGN KEY (product_batch_number_id) REFERENCES public.product_batch_number(product_batch_number_id) ON DELETE CASCADE;


--
-- Name: inventory_receive inventory_receive_branch_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.inventory_receive
    ADD CONSTRAINT inventory_receive_branch_id_fkey FOREIGN KEY (branch_id) REFERENCES public.branches(branch_id) ON DELETE CASCADE;


--
-- Name: inventory_receive inventory_receive_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.inventory_receive
    ADD CONSTRAINT inventory_receive_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: inventory_receive inventory_receive_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.inventory_receive
    ADD CONSTRAINT inventory_receive_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: inventory_receive inventory_receive_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.inventory_receive
    ADD CONSTRAINT inventory_receive_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: inventory_txn inventory_txn_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.inventory_txn
    ADD CONSTRAINT inventory_txn_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id);


--
-- Name: inventory_txn inventory_txn_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.inventory_txn
    ADD CONSTRAINT inventory_txn_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.products(product_id);


--
-- Name: inventory_txn inventory_txn_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.inventory_txn
    ADD CONSTRAINT inventory_txn_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id);


--
-- Name: invitations invitations_inviter_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.invitations
    ADD CONSTRAINT invitations_inviter_user_id_fkey FOREIGN KEY (inviter_user_id) REFERENCES public.users(user_id);


--
-- Name: invoice_types invoice_types_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.invoice_types
    ADD CONSTRAINT invoice_types_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: invoices invoices_invoice_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.invoices
    ADD CONSTRAINT invoices_invoice_template_id_fkey FOREIGN KEY (invoice_template_id) REFERENCES public.invoice_templates(invoice_template_id);


--
-- Name: invoices invoices_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.invoices
    ADD CONSTRAINT invoices_type_id_fkey FOREIGN KEY (type_id) REFERENCES public.invoice_types(invoice_type_id);


--
-- Name: items items_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.items
    ADD CONSTRAINT items_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: leave_balances leave_balances_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.leave_balances
    ADD CONSTRAINT leave_balances_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: leave_balances leave_balances_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.leave_balances
    ADD CONSTRAINT leave_balances_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: leave_requests leave_requests_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.leave_requests
    ADD CONSTRAINT leave_requests_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE SET NULL;


--
-- Name: leave_requests leave_requests_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.leave_requests
    ADD CONSTRAINT leave_requests_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE SET NULL;


--
-- Name: leave_types leave_types_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.leave_types
    ADD CONSTRAINT leave_types_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE SET NULL;


--
-- Name: modules modules_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.modules
    ADD CONSTRAINT modules_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id);


--
-- Name: modules modules_parent_module_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.modules
    ADD CONSTRAINT modules_parent_module_id_fkey FOREIGN KEY (parent_module_id) REFERENCES public.modules(module_id);


--
-- Name: notification_queue notification_queue_branch_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.notification_queue
    ADD CONSTRAINT notification_queue_branch_id_fkey FOREIGN KEY (branch_id) REFERENCES public.orgs(org_id);


--
-- Name: notification_queue notification_queue_tenant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.notification_queue
    ADD CONSTRAINT notification_queue_tenant_id_fkey FOREIGN KEY (tenant_id) REFERENCES public.orgs(org_id);


--
-- Name: notification_queue notification_queue_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.notification_queue
    ADD CONSTRAINT notification_queue_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id);


--
-- Name: one_time_service_costs one_time_service_costs_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.one_time_service_costs
    ADD CONSTRAINT one_time_service_costs_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id);


--
-- Name: one_time_tokens one_time_tokens_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.one_time_tokens
    ADD CONSTRAINT one_time_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: orgs orgs_parent_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.orgs
    ADD CONSTRAINT orgs_parent_org_id_fkey FOREIGN KEY (parent_org_id) REFERENCES public.orgs(org_id);


--
-- Name: orgs orgs_root_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.orgs
    ADD CONSTRAINT orgs_root_org_id_fkey FOREIGN KEY (root_org_id) REFERENCES public.orgs(org_id);


--
-- Name: page_configs page_configs_branch_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.page_configs
    ADD CONSTRAINT page_configs_branch_id_fkey FOREIGN KEY (branch_id) REFERENCES public.orgs(org_id);


--
-- Name: page_configs page_configs_tenant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.page_configs
    ADD CONSTRAINT page_configs_tenant_id_fkey FOREIGN KEY (tenant_id) REFERENCES public.orgs(org_id);


--
-- Name: payment_items payment_items_payment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.payment_items
    ADD CONSTRAINT payment_items_payment_id_fkey FOREIGN KEY (payment_id) REFERENCES public.payments(payment_id) ON DELETE CASCADE;


--
-- Name: payments payments_client_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.payments
    ADD CONSTRAINT payments_client_id_fkey FOREIGN KEY (client_id) REFERENCES public.clients(client_id);


--
-- Name: payments payments_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.payments
    ADD CONSTRAINT payments_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id);


--
-- Name: payslip_deductions payslip_deductions_deduction_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.payslip_deductions
    ADD CONSTRAINT payslip_deductions_deduction_type_id_fkey FOREIGN KEY (deduction_type_id) REFERENCES public.deduction_types(deduction_type_id);


--
-- Name: payslip_deductions payslip_deductions_payslip_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.payslip_deductions
    ADD CONSTRAINT payslip_deductions_payslip_id_fkey FOREIGN KEY (payslip_id) REFERENCES public.payslips(payslip_id);


--
-- Name: payslips payslips_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.payslips
    ADD CONSTRAINT payslips_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id);


--
-- Name: payslips payslips_time_clock_aggregate_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.payslips
    ADD CONSTRAINT payslips_time_clock_aggregate_id_fkey FOREIGN KEY (time_clock_aggregate_id) REFERENCES public.time_clock_aggregates(time_clock_aggregate_id);


--
-- Name: payslips payslips_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.payslips
    ADD CONSTRAINT payslips_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: procurement_requests procurement_requests_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.procurement_requests
    ADD CONSTRAINT procurement_requests_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: procurements procurements_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.procurements
    ADD CONSTRAINT procurements_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: product_batch_number product_batch_number_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.product_batch_number
    ADD CONSTRAINT product_batch_number_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.products(product_id) ON DELETE CASCADE;


--
-- Name: product_discounts product_discounts_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.product_discounts
    ADD CONSTRAINT product_discounts_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: product_discounts product_discounts_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.product_discounts
    ADD CONSTRAINT product_discounts_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.products(product_id) ON DELETE CASCADE;


--
-- Name: products_2_categories products_2_categories_category_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.products_2_categories
    ADD CONSTRAINT products_2_categories_category_id_fkey FOREIGN KEY (category_id) REFERENCES public.product_categories(category_id) ON DELETE CASCADE;


--
-- Name: products_2_categories products_2_categories_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.products_2_categories
    ADD CONSTRAINT products_2_categories_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.products(product_id) ON DELETE CASCADE;


--
-- Name: products_2_taxcodes products_2_taxcodes_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.products_2_taxcodes
    ADD CONSTRAINT products_2_taxcodes_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.products(product_id) ON DELETE CASCADE;


--
-- Name: products_2_taxcodes products_2_taxcodes_taxcode_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.products_2_taxcodes
    ADD CONSTRAINT products_2_taxcodes_taxcode_id_fkey FOREIGN KEY (taxcode_id) REFERENCES public.sales_tax_types(salestax_id) ON DELETE CASCADE;


--
-- Name: products products_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.products
    ADD CONSTRAINT products_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: products_to_vendors products_to_vendors_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.products_to_vendors
    ADD CONSTRAINT products_to_vendors_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.products(product_id) ON DELETE CASCADE;


--
-- Name: products_to_vendors products_to_vendors_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.products_to_vendors
    ADD CONSTRAINT products_to_vendors_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: program_default_group_permissions program_default_group_permissions_module_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.program_default_group_permissions
    ADD CONSTRAINT program_default_group_permissions_module_id_fkey FOREIGN KEY (module_id) REFERENCES public.modules(module_id);


--
-- Name: program_default_group_permissions program_default_group_permissions_program_default_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.program_default_group_permissions
    ADD CONSTRAINT program_default_group_permissions_program_default_group_id_fkey FOREIGN KEY (program_default_group_id) REFERENCES public.program_default_groups(program_default_group_id) ON DELETE CASCADE;


--
-- Name: program_default_groups program_default_groups_program_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.program_default_groups
    ADD CONSTRAINT program_default_groups_program_id_fkey FOREIGN KEY (program_id) REFERENCES public.programs(program_id) ON DELETE CASCADE;


--
-- Name: program_enrollments program_enrollments_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.program_enrollments
    ADD CONSTRAINT program_enrollments_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id);


--
-- Name: program_enrollments program_enrollments_program_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.program_enrollments
    ADD CONSTRAINT program_enrollments_program_id_fkey FOREIGN KEY (program_id) REFERENCES public.programs(program_id) ON DELETE CASCADE;


--
-- Name: program_modules program_modules_module_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.program_modules
    ADD CONSTRAINT program_modules_module_id_fkey FOREIGN KEY (module_id) REFERENCES public.modules(module_id);


--
-- Name: program_modules program_modules_program_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.program_modules
    ADD CONSTRAINT program_modules_program_id_fkey FOREIGN KEY (program_id) REFERENCES public.programs(program_id) ON DELETE CASCADE;


--
-- Name: programs programs_owner_root_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.programs
    ADD CONSTRAINT programs_owner_root_org_id_fkey FOREIGN KEY (owner_root_org_id) REFERENCES public.orgs(org_id);


--
-- Name: purchase_orders purchase_orders_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.purchase_orders
    ADD CONSTRAINT purchase_orders_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: purchase_orders purchase_orders_rfq_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.purchase_orders
    ADD CONSTRAINT purchase_orders_rfq_id_fkey FOREIGN KEY (rfq_id) REFERENCES public.rfq_headers(rfq_id) ON DELETE SET NULL;


--
-- Name: purchase_orders purchase_orders_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.purchase_orders
    ADD CONSTRAINT purchase_orders_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: refresh_tokens refresh_tokens_session_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.refresh_tokens
    ADD CONSTRAINT refresh_tokens_session_id_fkey FOREIGN KEY (session_id) REFERENCES public.sessions(session_id) ON DELETE CASCADE;


--
-- Name: resources resources_resource_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.resources
    ADD CONSTRAINT resources_resource_type_id_fkey FOREIGN KEY (resource_type_id) REFERENCES public.resource_types(id) ON DELETE CASCADE;


--
-- Name: rfq_approval_instances rfq_approval_instances_rfq_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_approval_instances
    ADD CONSTRAINT rfq_approval_instances_rfq_id_fkey FOREIGN KEY (rfq_id) REFERENCES public.rfq_headers(rfq_id) ON DELETE CASCADE;


--
-- Name: rfq_approval_levels rfq_approval_levels_approver_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_approval_levels
    ADD CONSTRAINT rfq_approval_levels_approver_user_id_fkey FOREIGN KEY (approver_user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: rfq_attachments rfq_attachments_rfq_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_attachments
    ADD CONSTRAINT rfq_attachments_rfq_id_fkey FOREIGN KEY (rfq_id) REFERENCES public.rfq_headers(rfq_id) ON DELETE CASCADE;


--
-- Name: rfq_awards rfq_awards_rfq_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_awards
    ADD CONSTRAINT rfq_awards_rfq_id_fkey FOREIGN KEY (rfq_id) REFERENCES public.rfq_headers(rfq_id) ON DELETE CASCADE;


--
-- Name: rfq_awards rfq_awards_rfq_item_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_awards
    ADD CONSTRAINT rfq_awards_rfq_item_id_fkey FOREIGN KEY (rfq_item_id) REFERENCES public.rfq_items(id) ON DELETE SET NULL;


--
-- Name: rfq_awards rfq_awards_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_awards
    ADD CONSTRAINT rfq_awards_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE RESTRICT;


--
-- Name: rfq_contracts rfq_contracts_rfq_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_contracts
    ADD CONSTRAINT rfq_contracts_rfq_id_fkey FOREIGN KEY (rfq_id) REFERENCES public.rfq_headers(rfq_id) ON DELETE CASCADE;


--
-- Name: rfq_contracts rfq_contracts_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_contracts
    ADD CONSTRAINT rfq_contracts_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE RESTRICT;


--
-- Name: rfq_conversations rfq_conversations_rfq_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_conversations
    ADD CONSTRAINT rfq_conversations_rfq_id_fkey FOREIGN KEY (rfq_id) REFERENCES public.rfq_headers(rfq_id) ON DELETE CASCADE;


--
-- Name: rfq_conversations rfq_conversations_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_conversations
    ADD CONSTRAINT rfq_conversations_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: rfq_events rfq_events_rfq_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_events
    ADD CONSTRAINT rfq_events_rfq_id_fkey FOREIGN KEY (rfq_id) REFERENCES public.rfq_headers(rfq_id) ON DELETE CASCADE;


--
-- Name: rfq_headers rfq_headers_tender_box_opened_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_headers
    ADD CONSTRAINT rfq_headers_tender_box_opened_by_fkey FOREIGN KEY (tender_box_opened_by) REFERENCES public.users(user_id);


--
-- Name: rfq_invites rfq_invites_contact_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_invites
    ADD CONSTRAINT rfq_invites_contact_id_fkey FOREIGN KEY (contact_id) REFERENCES public.vendor_contacts(vendor_contact_id) ON DELETE SET NULL;


--
-- Name: rfq_invites rfq_invites_rfq_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_invites
    ADD CONSTRAINT rfq_invites_rfq_id_fkey FOREIGN KEY (rfq_id) REFERENCES public.rfq_headers(rfq_id) ON DELETE CASCADE;


--
-- Name: rfq_invites rfq_invites_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_invites
    ADD CONSTRAINT rfq_invites_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: rfq_invites rfq_invites_vendor_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_invites
    ADD CONSTRAINT rfq_invites_vendor_user_id_fkey FOREIGN KEY (vendor_user_id) REFERENCES public.users(user_id) ON DELETE SET NULL;


--
-- Name: rfq_items rfq_items_rfq_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_items
    ADD CONSTRAINT rfq_items_rfq_id_fkey FOREIGN KEY (rfq_id) REFERENCES public.rfq_headers(rfq_id) ON DELETE CASCADE;


--
-- Name: rfq_message_attachments rfq_message_attachments_message_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_message_attachments
    ADD CONSTRAINT rfq_message_attachments_message_id_fkey FOREIGN KEY (message_id) REFERENCES public.rfq_messages(message_id) ON DELETE CASCADE;


--
-- Name: rfq_messages rfq_messages_conversation_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_messages
    ADD CONSTRAINT rfq_messages_conversation_id_fkey FOREIGN KEY (conversation_id) REFERENCES public.rfq_conversations(conversation_id) ON DELETE CASCADE;


--
-- Name: rfq_messages rfq_messages_origin_message_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_messages
    ADD CONSTRAINT rfq_messages_origin_message_id_fkey FOREIGN KEY (origin_message_id) REFERENCES public.rfq_messages(message_id) ON DELETE SET NULL;


--
-- Name: rfq_messages rfq_messages_parent_message_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_messages
    ADD CONSTRAINT rfq_messages_parent_message_id_fkey FOREIGN KEY (parent_message_id) REFERENCES public.rfq_messages(message_id) ON DELETE SET NULL;


--
-- Name: rfq_messages rfq_messages_rfq_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_messages
    ADD CONSTRAINT rfq_messages_rfq_id_fkey FOREIGN KEY (rfq_id) REFERENCES public.rfq_headers(rfq_id) ON DELETE CASCADE;


--
-- Name: rfq_messages rfq_messages_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_messages
    ADD CONSTRAINT rfq_messages_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE SET NULL;


--
-- Name: rfq_scoring_notes rfq_scoring_notes_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_scoring_notes
    ADD CONSTRAINT rfq_scoring_notes_created_by_fkey FOREIGN KEY (created_by) REFERENCES public.users(user_id) ON DELETE SET NULL;


--
-- Name: rfq_scoring_notes rfq_scoring_notes_rfq_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_scoring_notes
    ADD CONSTRAINT rfq_scoring_notes_rfq_id_fkey FOREIGN KEY (rfq_id) REFERENCES public.rfq_headers(rfq_id) ON DELETE CASCADE;


--
-- Name: rfq_scoring_notes rfq_scoring_notes_updated_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_scoring_notes
    ADD CONSTRAINT rfq_scoring_notes_updated_by_fkey FOREIGN KEY (updated_by) REFERENCES public.users(user_id) ON DELETE SET NULL;


--
-- Name: rfq_scoring_notes rfq_scoring_notes_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_scoring_notes
    ADD CONSTRAINT rfq_scoring_notes_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: rfq_sections rfq_sections_rfq_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_sections
    ADD CONSTRAINT rfq_sections_rfq_id_fkey FOREIGN KEY (rfq_id) REFERENCES public.rfq_headers(rfq_id) ON DELETE CASCADE;


--
-- Name: rfq_shortlists rfq_shortlists_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_shortlists
    ADD CONSTRAINT rfq_shortlists_created_by_fkey FOREIGN KEY (created_by) REFERENCES public.users(user_id) ON DELETE SET NULL;


--
-- Name: rfq_shortlists rfq_shortlists_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_shortlists
    ADD CONSTRAINT rfq_shortlists_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE SET NULL;


--
-- Name: rfq_shortlists rfq_shortlists_rfq_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_shortlists
    ADD CONSTRAINT rfq_shortlists_rfq_id_fkey FOREIGN KEY (rfq_id) REFERENCES public.rfq_headers(rfq_id) ON DELETE CASCADE;


--
-- Name: rfq_shortlists rfq_shortlists_updated_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_shortlists
    ADD CONSTRAINT rfq_shortlists_updated_by_fkey FOREIGN KEY (updated_by) REFERENCES public.users(user_id) ON DELETE SET NULL;


--
-- Name: rfq_shortlists rfq_shortlists_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_shortlists
    ADD CONSTRAINT rfq_shortlists_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: rfq_template_attachments rfq_template_attachments_rfq_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_template_attachments
    ADD CONSTRAINT rfq_template_attachments_rfq_template_id_fkey FOREIGN KEY (rfq_template_id) REFERENCES public.rfq_templates(rfq_template_id) ON DELETE CASCADE;


--
-- Name: rfq_template_sections rfq_template_sections_rfq_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_template_sections
    ADD CONSTRAINT rfq_template_sections_rfq_template_id_fkey FOREIGN KEY (rfq_template_id) REFERENCES public.rfq_templates(rfq_template_id) ON DELETE CASCADE;


--
-- Name: rfq_templates rfq_templates_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_templates
    ADD CONSTRAINT rfq_templates_created_by_fkey FOREIGN KEY (created_by) REFERENCES public.users(user_id);


--
-- Name: rfq_templates rfq_templates_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfq_templates
    ADD CONSTRAINT rfq_templates_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: rfqs rfqs_procurement_request_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfqs
    ADD CONSTRAINT rfqs_procurement_request_id_fkey FOREIGN KEY (procurement_request_id) REFERENCES public.procurement_requests(procurement_request_id) ON DELETE CASCADE;


--
-- Name: rfqs rfqs_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.rfqs
    ADD CONSTRAINT rfqs_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: salaries salaries_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.salaries
    ADD CONSTRAINT salaries_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: salaries salaries_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.salaries
    ADD CONSTRAINT salaries_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: sales_receipts sales_receipts_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.sales_receipts
    ADD CONSTRAINT sales_receipts_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: sessions sessions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.sessions
    ADD CONSTRAINT sessions_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: sync_hook_logs sync_hook_logs_hook_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.sync_hook_logs
    ADD CONSTRAINT sync_hook_logs_hook_id_fkey FOREIGN KEY (hook_id) REFERENCES public.sync_hooks(hook_id) ON DELETE CASCADE;


--
-- Name: tenant_idp_configs tenant_idp_configs_provider_code_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.tenant_idp_configs
    ADD CONSTRAINT tenant_idp_configs_provider_code_fkey FOREIGN KEY (provider_code) REFERENCES public.idp_providers(provider_code);


--
-- Name: time_clock_aggregates time_clock_aggregates_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.time_clock_aggregates
    ADD CONSTRAINT time_clock_aggregates_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id);


--
-- Name: time_clock_aggregates time_clock_aggregates_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.time_clock_aggregates
    ADD CONSTRAINT time_clock_aggregates_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id);


--
-- Name: time_clocks time_clocks_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.time_clocks
    ADD CONSTRAINT time_clocks_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id);


--
-- Name: time_clocks time_clocks_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.time_clocks
    ADD CONSTRAINT time_clocks_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id);


--
-- Name: time_entries time_entries_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.time_entries
    ADD CONSTRAINT time_entries_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: time_entries time_entries_work_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.time_entries
    ADD CONSTRAINT time_entries_work_type_id_fkey FOREIGN KEY (work_type_id) REFERENCES public.work_types(work_type_id);


--
-- Name: user_branch_memberships user_branch_memberships_branch_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_branch_memberships
    ADD CONSTRAINT user_branch_memberships_branch_id_fkey FOREIGN KEY (branch_id) REFERENCES public.branches(branch_id) ON DELETE CASCADE;


--
-- Name: user_branch_memberships user_branch_memberships_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_branch_memberships
    ADD CONSTRAINT user_branch_memberships_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: user_column_permissions user_column_permissions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_column_permissions
    ADD CONSTRAINT user_column_permissions_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: user_emails user_emails_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_emails
    ADD CONSTRAINT user_emails_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: user_faces user_faces_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_faces
    ADD CONSTRAINT user_faces_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: user_group_memberships user_group_memberships_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_group_memberships
    ADD CONSTRAINT user_group_memberships_group_id_fkey FOREIGN KEY (group_id) REFERENCES public.groups(group_id) ON DELETE CASCADE;


--
-- Name: user_group_memberships user_group_memberships_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_group_memberships
    ADD CONSTRAINT user_group_memberships_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: user_identities user_identities_provider_code_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_identities
    ADD CONSTRAINT user_identities_provider_code_fkey FOREIGN KEY (provider_code) REFERENCES public.idp_providers(provider_code);


--
-- Name: user_identities user_identities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_identities
    ADD CONSTRAINT user_identities_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: user_mfa_factors user_mfa_factors_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_mfa_factors
    ADD CONSTRAINT user_mfa_factors_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: user_mfa_totp user_mfa_totp_factor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_mfa_totp
    ADD CONSTRAINT user_mfa_totp_factor_id_fkey FOREIGN KEY (factor_id) REFERENCES public.user_mfa_factors(factor_id) ON DELETE CASCADE;


--
-- Name: user_mfa_webauthn user_mfa_webauthn_factor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_mfa_webauthn
    ADD CONSTRAINT user_mfa_webauthn_factor_id_fkey FOREIGN KEY (factor_id) REFERENCES public.user_mfa_factors(factor_id) ON DELETE CASCADE;


--
-- Name: user_module_permissions user_module_permissions_module_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_module_permissions
    ADD CONSTRAINT user_module_permissions_module_id_fkey FOREIGN KEY (module_id) REFERENCES public.modules(module_id) ON DELETE CASCADE;


--
-- Name: user_module_permissions user_module_permissions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_module_permissions
    ADD CONSTRAINT user_module_permissions_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: user_org_memberships user_org_memberships_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_org_memberships
    ADD CONSTRAINT user_org_memberships_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: user_org_memberships user_org_memberships_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_org_memberships
    ADD CONSTRAINT user_org_memberships_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: user_passwords user_passwords_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_passwords
    ADD CONSTRAINT user_passwords_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: user_phones user_phones_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_phones
    ADD CONSTRAINT user_phones_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: user_recovery_codes user_recovery_codes_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_recovery_codes
    ADD CONSTRAINT user_recovery_codes_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: user_table_permissions user_table_permissions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.user_table_permissions
    ADD CONSTRAINT user_table_permissions_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: users_profiles users_profiles_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.users_profiles
    ADD CONSTRAINT users_profiles_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(user_id) ON DELETE CASCADE;


--
-- Name: vendor_addresses vendor_addresses_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_addresses
    ADD CONSTRAINT vendor_addresses_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: vendor_bank_accounts vendor_bank_accounts_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_bank_accounts
    ADD CONSTRAINT vendor_bank_accounts_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: vendor_capabilities vendor_capabilities_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_capabilities
    ADD CONSTRAINT vendor_capabilities_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: vendor_certificates vendor_certificates_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_certificates
    ADD CONSTRAINT vendor_certificates_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: vendor_contacts vendor_contacts_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_contacts
    ADD CONSTRAINT vendor_contacts_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: vendor_documents vendor_documents_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_documents
    ADD CONSTRAINT vendor_documents_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: vendor_emails vendor_emails_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_emails
    ADD CONSTRAINT vendor_emails_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: vendor_invoices vendor_invoices_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_invoices
    ADD CONSTRAINT vendor_invoices_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: vendor_invoices vendor_invoices_purchase_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_invoices
    ADD CONSTRAINT vendor_invoices_purchase_order_id_fkey FOREIGN KEY (purchase_order_id) REFERENCES public.purchase_orders(purchase_order_id) ON DELETE CASCADE;


--
-- Name: vendor_performance_metrics vendor_performance_metrics_reviewer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_performance_metrics
    ADD CONSTRAINT vendor_performance_metrics_reviewer_id_fkey FOREIGN KEY (reviewer_id) REFERENCES public.users(user_id);


--
-- Name: vendor_performance_metrics vendor_performance_metrics_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_performance_metrics
    ADD CONSTRAINT vendor_performance_metrics_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: vendor_phone_numbers vendor_phone_numbers_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_phone_numbers
    ADD CONSTRAINT vendor_phone_numbers_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: vendor_quote_items vendor_quote_items_quote_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_quote_items
    ADD CONSTRAINT vendor_quote_items_quote_id_fkey FOREIGN KEY (quote_id) REFERENCES public.vendor_quotes(quote_id) ON DELETE CASCADE;


--
-- Name: vendor_quote_items vendor_quote_items_rfq_item_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_quote_items
    ADD CONSTRAINT vendor_quote_items_rfq_item_id_fkey FOREIGN KEY (rfq_item_id) REFERENCES public.rfq_items(id) ON DELETE SET NULL;


--
-- Name: vendor_quotes vendor_quotes_invite_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_quotes
    ADD CONSTRAINT vendor_quotes_invite_id_fkey FOREIGN KEY (invite_id) REFERENCES public.rfq_invites(invite_id) ON DELETE SET NULL;


--
-- Name: vendor_quotes vendor_quotes_rfq_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_quotes
    ADD CONSTRAINT vendor_quotes_rfq_id_fkey FOREIGN KEY (rfq_id) REFERENCES public.rfq_headers(rfq_id) ON DELETE CASCADE;


--
-- Name: vendor_quotes vendor_quotes_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_quotes
    ADD CONSTRAINT vendor_quotes_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: vendor_supporting_docs vendor_supporting_docs_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendor_supporting_docs
    ADD CONSTRAINT vendor_supporting_docs_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendors(vendor_id) ON DELETE CASCADE;


--
-- Name: vendors vendors_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.vendors
    ADD CONSTRAINT vendors_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: work_types work_types_org_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: taf
--

ALTER TABLE ONLY public.work_types
    ADD CONSTRAINT work_types_org_id_fkey FOREIGN KEY (org_id) REFERENCES public.orgs(org_id) ON DELETE CASCADE;


--
-- Name: auto_attach_updatedat_trigger; Type: EVENT TRIGGER; Schema: -; Owner: taf
--

CREATE EVENT TRIGGER auto_attach_updatedat_trigger ON ddl_command_end
         WHEN TAG IN ('CREATE TABLE', 'CREATE TABLE AS', 'ALTER TABLE')
   EXECUTE FUNCTION public.attach_updatedat_trigger();


ALTER EVENT TRIGGER auto_attach_updatedat_trigger OWNER TO taf;

--
--

