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

COPY public.roles (id, name, guard_name, created_at, updated_at, "nameEn") FROM stdin;
17	Owner	admin	2021-08-19 21:53:01	2023-09-22 11:50:34	المالك
18	Guest	admin	2021-12-14 17:22:16	2024-02-09 01:12:03	ضيف
22	المناديب	admin	2024-12-04 22:03:08	2024-12-04 22:03:08	\N
23	الإدارة	admin	2024-12-04 22:03:32	2024-12-04 22:03:32	\N
\.


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

COPY public.room_reservations (id, "Date", "Room", created_at, updated_at) FROM stdin;
\.


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

COPY public.rooms (id, "Code", "Floor", "Bulding_Name", "Adults_Num", "Childs_Num", "Beds_Num", "Desc", "Price", "Reserved", created_at, updated_at, "RoomsType", "DescEn") FROM stdin;
\.


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

COPY public.rooms_types (id, "Arabic_Name", "English_Name", created_at, updated_at) FROM stdin;
1	غرفة افتراضية	Default Room	2022-08-29 08:43:55	2024-02-09 01:00:23
\.


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

COPY public.rqst_transports (id, "Code", "Date", "Time", "Arrival_Date", "Arrival_Time", "Reference_Num", "Weight", "Note", "Payment_Method", "Insurance", "Pay", "Value", "Type", "Sender_Name", "Sender_Governorate", "Sender_City", "Sender_Place", "Sender_Address", "Sender_Phone1", "Sender_Phone2", "Sender_Location", "Receiver_Name", "Receiver_Governorate", "Receiver_City", "Receiver_Place", "Receiver_Address", "Receiver_Phone1", "Receiver_Phone2", "Receiver_Location", "Safe", "Coin", "Draw", "Cost_Center", "Driver", "Car", "Driver_Precent", "Driver_Value", "Contractor", "Contractor_Precent", "Contractor_Value", "Expenses_Precent", "Expenses_Value", "The_Net", "Sender", "Received", "Transfer", created_at, updated_at, "User") FROM stdin;
\.


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

COPY public.safe_transfer_columns (id, "Date", "Code", "Time", "Amount", "From_Safe", "To_Safe", "User", "Coin", "Cost_Center", "Note", "Delegate", created_at, updated_at, "Branch") FROM stdin;
1	1	1	1	1	1	1	1	1	1	1	1	\N	2022-10-06 11:31:50	1
\.


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

COPY public.safe_transfer_columns_sechdules (id, "Date", "Code", "Time", "Amount", "From_Safe", "To_Safe", "User", "Coin", "Cost_Center", "Note", "Delegate", created_at, updated_at, "Branch") FROM stdin;
1	1	1	1	1	1	1	1	1	1	1	1	\N	2022-10-06 13:53:22	1
\.


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

COPY public.safe_transfer_filter_twos (id, "Code", "Date", "Draw", "Amount", "Note", "From_Safe", "To_Safe", "Coin", "Cost_Center", "User", "Status", "File", "OldAmount", "Edit", "Delegate", "Time", "ID", "Type", created_at, updated_at, "Branch") FROM stdin;
1	2	2022-10-06	1	2000	\N	30	32	1	\N	11	0	\N	2000	0	\N	01:45:20 pm	7	0	2022-10-06 13:53:23	2022-10-06 13:53:23	3
\.


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

COPY public.safe_transfer_filters (id, "Code", "Date", "Draw", "Amount", "Note", "From_Safe", "To_Safe", "Coin", "Cost_Center", "User", "Status", "File", "OldAmount", "Edit", "Delegate", "Time", "ID", "Type", created_at, updated_at, "Branch") FROM stdin;
1	2	2022-10-06	1	2000	\N	30	32	1	\N	11	0	\N	2000	0	\N	01:45:20 pm	7	0	2022-10-06 13:53:23	2022-10-06 13:53:23	3
\.


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

COPY public.safe_transfers (id, "Code", "Date", "Draw", "Amount", "Note", "From_Safe", "To_Safe", "Coin", "Cost_Center", "User", created_at, updated_at, "Status", "File", "OldAmount", "Edit", "Time", "Delegate", arr, "Branch") FROM stdin;
\.


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

COPY public.safes_banks (id, "Code", "Date", "Name", "Type", "Note", "Account", "User", arr, created_at, updated_at, "Branch", "Service_Fee", "NameEn") FROM stdin;
3	3	2021-06-20	الخزينة الرئيسية	1	\N	30	1	\N	\N	2024-02-09 00:18:47	3	\N	Main Safe
4	4	2021-06-20	البنك الاهلي	2	\N	32	1	\N	\N	2024-02-09 00:20:06	3	\N	SNB
\.


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

COPY public.sales (id, "Code", "Date", "Draw", "Payment_Method", "Status", "Refernce_Number", "Note", "Product_Numbers", "Total_Qty", "Total_Discount", "Total_BF_Taxes", "Total_Taxes", "Total_Price", "Pay", presenter, annual_interest, monthly_installment, "Years_Number", total, "installment_Num", "Date_First_installment", "Quote", "SalesOrder", "Safe", "Client", "Delegate", "Executor", "Store", "Coin", "Cost_Center", "User", created_at, updated_at, "Ship", arr, "Check_Type", "Check_Number", "Due_Date", "ShipStatus", "Cash", "Visa", "Sale_Type", "Hold", "Shift_Code", emp, "Store_Code", "Later_Due", "Later_Collection", "Client_Address", "Delivery", "Delivery_Status", "Sale_User", "Sent", "TaxBill", "TaxCode", "ProfitPrecent", "TaxOnTotal", "TaxOnTotalType", "ProfitTax", "ContractNumber", "PayFees", "ServiceFee", "CompanyPrecent", "Time", "Branch", "CustomerGroup", "Total_Cost", uuid, "longId", "hashKey", "submissionId", "statusBill", "DiscountTax", "RecivedDate", "InstallCompany", "File", "ResturantOrderType", "DeliveryTime", "RecivedOrderTime", "RecivedOrder", "KitchenEndTime", "KitchenEnd", "Witer", "TakeawayTime", "TakeawayStatus", "Table", "Total_Wight_Bill", "Edit", "Delete", "Edit_New_Code", "Total_Net", "Residual", "Current_Credit", "DiscountBill", "ServiceType", "ServiceFees", "ServiceValue", bill_lat, bill_lng, "App", "Shipping_Price", "Warranty_Expire_Date", "Use_Qty") FROM stdin;
\.


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

COPY public.sales_bills_columns (id, "Date", "Code", "Time", "Refrence_Number", "Branch", "Store", "Payment_Method", "Safe", "Type", "Shipping", "Cost_Center", "ShiftCode", "Executor", "User", "Coin", "Due_Date", "Delegate", "Note", "Total_Return", "Total_Price", "Total_Discount", "Total_Tax", "Total_Net", "Paid", "Residual", "Product_Code", "Product_Name", "Unit", "Av_Qty", "Qty", "Price", "Discount", "Total_BF_Tax", "Tax", "Total", "Group", "Brand", "Exp_Date", "Product_Store", created_at, updated_at, "Client", "Rate", "Name_Width") FROM stdin;
1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	\N	2022-10-03 18:54:03	1	\N	\N
\.


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

COPY public.sales_bills_columns_sechdules (id, "Date", "Code", "Time", "Refrence_Number", "Branch", "Store", "Payment_Method", "Safe", "Type", "Shipping", "Cost_Center", "ShiftCode", "Executor", "User", "Coin", "Due_Date", "Delegate", "Note", "Total_Return", "Total_Price", "Total_Discount", "Total_Tax", "Total_Net", "Paid", "Residual", "Product_Code", "Product_Name", "Unit", "Av_Qty", "Qty", "Price", "Discount", "Total_BF_Tax", "Tax", "Total", "Group", "Brand", "Exp_Date", "Product_Store", created_at, updated_at, "Client", "Rate", "Name_Width") FROM stdin;
1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	\N	2022-10-03 19:30:06	1	\N	\N
\.


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

COPY public.sales_bills_filter_twos (id, "Code", "Date", "Payment_Method", "Status", "Refernce_Number", "Note", "Product_Numbers", "Total_Qty", "Total_Discount", "Total_BF_Taxes", "Total_Taxes", "Total_Price", "Pay", "Safe", "Client", "Executor", "Delegate", "Store", "Coin", "Cost_Center", "User", "Ship", "Shift_Code", "Later_Due", "Later_Collection", "Delivery", "ProfitPrecent", "TaxOnTotal", "TaxOnTotalType", "ProfitTax", "InstallCompany", "ServiceFee", "CompanyPrecent", "Time", "Branch", "CustomerGroup", created_at, updated_at, "ID", "Type") FROM stdin;
\.


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

COPY public.sales_bills_filters (id, "Code", "Date", "Payment_Method", "Status", "Refernce_Number", "Note", "Product_Numbers", "Total_Qty", "Total_Discount", "Total_BF_Taxes", "Total_Taxes", "Total_Price", "Pay", "Safe", "Client", "Executor", "Delegate", "Store", "Coin", "Cost_Center", "User", "Ship", "Shift_Code", "Later_Due", "Later_Collection", "Delivery", "ProfitPrecent", "TaxOnTotal", "TaxOnTotalType", "ProfitTax", "InstallCompany", "ServiceFee", "CompanyPrecent", "Time", "Branch", "CustomerGroup", created_at, updated_at, "Type", "ID") FROM stdin;
\.


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

COPY public.sales_contracts (id, "Code", "Date", "System", "Unit", "Client", "Delegate", "Contract_Num", "Value", "Deposit", "Residual", created_at, updated_at, "Safe", "Coin", "Draw", "Recipt") FROM stdin;
\.


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

COPY public.sales_fifo_qties (id, "Sales_Qty", "Sales_ID", "Fifo_ID", "Store", "Product", "Cost_Price", "Purchases_Date", created_at, updated_at) FROM stdin;
\.


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

COPY public.sales_gifts (id, "Code", "Date", "Draw", "Note", "Product_Numbers", "Total_Qty", "Total_Price", "Total_Cost", "Client", "Store", "Coin", "Cost_Center", "Edit", "Delete", "Edit_New_Code", "User", created_at, updated_at, "Account") FROM stdin;
\.


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

COPY public.sales_maint_fifo_qties (id, "Sales_Qty", "Sales_ID", "Fifo_ID", "Store", "Product", "Cost_Price", "Purchases_Date", created_at, updated_at) FROM stdin;
\.


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

COPY public.sales_orders (id, "Code", "Date", "Draw", "Payment_Method", "Status", "Refernce_Number", "Note", "Product_Numbers", "Total_Qty", "Total_Discount", "Total_BF_Taxes", "Total_Taxes", "Total_Price", "Pay", presenter, annual_interest, monthly_installment, "Years_Number", total, "installment_Num", "Date_First_installment", "Quote", "Safe", "Client", "Delegate", "Executor", "Store", "Coin", "Cost_Center", "User", arr, created_at, updated_at, "ToSales", "Hold", "Later_Due", "Sale_Date", "CuponCode", "Shipping", "Delivery_Status", "Order_Type", "Name", "Email", "Phone", "OtherPhone", "Address_Name", "Special_MarkAdd", "StreetAdd", "BulidingAdd", "FloorAdd", "FlatAdd", "Governrate", "City", "Place", "LocationAdd", "Address_DetailsAdd", "ProfitPrecent", "InstallCompany", "ContractNumber", "PayFees", "ServiceFee", "CompanyPrecent", "Cancel_Order", "Time", "Delegate_Recived", "Delegate_Recived_Time", "To_Sales_Time", "Cancel_Order_Time", "Hold_Qty", "ResturantOrderType", "DeliveryTime", "RecivedOrderTime", "RecivedOrder", "KitchenEndTime", "KitchenEnd", "Witer", "TakeawayStatus", "TakeawayTime", "Table", "Total_Wight_Bill", "TaxBill", "TaxCode", "TaxOnTotal", "TaxOnTotalType", "Check_Type", "Due_Date", "Check_Number", "Shift_Code", "Client_Address", "Delivery", "ProfitTax", "Branch", "CustomerGroup", "Total_Cost", "File", "Edit", "Delete", "Edit_New_Code", "Total_Net", "Residual", "DiscountTax", "Current_Credit", "Ship", "DiscountBill", "Shipping_Price") FROM stdin;
\.


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

COPY public.sales_petrols (id, "Code", "Date", "Draw", "Note", "Counter_Name", "Pervious_Read", "Petrol_Name", "Current_Raed", "Value", "Total", "Consumption", "Cash", "Calibers", "Counter", "Coin", "Safe", "Store", "Recipient", "User", arr, created_at, updated_at) FROM stdin;
\.


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

COPY public.sales_subscribes (id, "Code", "Date", "Draw", "Payment_Method", "Later_Due", "Product_Numbers", "Total_Price", "Notes", "Coin", "Delegate", "Account", "User", arr, created_at, updated_at, "Safe", "Delete", "Edit", "Edit_New_Code", "Current_Credit") FROM stdin;
\.


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

COPY public.scientific_materials (id, "Arabic_Name", "English_Name", created_at, updated_at) FROM stdin;
1	ماده ١	ماده ١	2024-01-19 10:58:57	2024-01-19 10:58:57
\.


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

COPY public.secretariat_export_goods (id, "Code", "Date", "Note", "Product_Numbers", "Total_Qty", "Account", "Store", "User", arr, created_at, updated_at, "Status", "StoreGoods", "Total_Recived_Qty", "Total_Price", "Draw", "Coin", "Safe") FROM stdin;
\.


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

COPY public.secretariat_import_goods (id, "Code", "Date", "Note", "Product_Numbers", "Total_Qty", "Account", "Store", "User", arr, created_at, updated_at) FROM stdin;
\.


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

COPY public.secretariat_qties (id, "Product_Code", "P_Ar_Name", "P_En_Name", "V_Name", "VV_Name", "Qty", "Product", "V1", "V2", "Store", "Unit", created_at, updated_at, "PP_Code", "PPP_Code", "PPPP_Code") FROM stdin;
\.


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

COPY public.secretariat_stores (id, "Arabic_Name", "English_Name", created_at, updated_at, "Account") FROM stdin;
\.


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

COPY public.select_a_p_i_s (id, id_, name, created_at, updated_at) FROM stdin;
1	1	Meet1	2021-08-25 00:43:55	2021-08-25 00:43:55
2	2	Meet 2	2021-08-25 00:43:55	2021-08-25 00:43:55
\.


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

COPY public.server_d_b_s (id, "DB_Name", created_at, updated_at) FROM stdin;
\.


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

COPY public.services_reals (id, "Arabic_Name", "English_Name", created_at, updated_at) FROM stdin;
\.


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

COPY public.settlements (id, "Code", "Date", "Draw", "Total_Dificit", "Total_Excess", "Total_Dificit_Price", "Total_Excess_Price", "Inv_ID", "Account_Excess", "Account_Dificit", "Store", "Coin", "Cost_Center", "User", arr, created_at, updated_at, "Note", "Time", "Branch") FROM stdin;
\.


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

COPY public.sewing_accessories (id, "Product", "Qty", "Price", "Total", "Cost", "TotalCost", "SewingOrder", created_at, updated_at) FROM stdin;
\.


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

COPY public.sewing_al_kabkat (id, "Arabic_Name", "English_Name", "Image", "SewingType", created_at, updated_at, "Delete", "Sort_Order") FROM stdin;
\.


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

COPY public.sewing_al_taktak (id, "Arabic_Name", "English_Name", "Image", "SewingType", created_at, updated_at, "Delete", "Sort_Order") FROM stdin;
\.


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

COPY public.sewing_buttons (id, "Arabic_Name", "English_Name", "Image", "SewingType", created_at, updated_at, "Delete", "Sort_Order") FROM stdin;
\.


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

COPY public.sewing_chest_pocket_fillings (id, "Arabic_Name", "English_Name", "Image", "SewingType", created_at, updated_at, "Delete", "Sort_Order") FROM stdin;
\.


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

COPY public.sewing_chest_pockets (id, "Arabic_Name", "English_Name", "Image", "SewingType", created_at, updated_at, "Delete", "Sort_Order") FROM stdin;
\.


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

COPY public.sewing_collar_paddings (id, "Arabic_Name", "English_Name", "Image", "SewingType", created_at, updated_at, "Delete", "Sort_Order") FROM stdin;
\.


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

COPY public.sewing_collars (id, "Arabic_Name", "English_Name", "Image", "SewingType", created_at, updated_at, "Delete", "Sort_Order") FROM stdin;
\.


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

COPY public.sewing_cseed_sleeves (id, "Arabic_Name", "English_Name", "Image", "SewingType", created_at, updated_at, "Delete", "Sort_Order") FROM stdin;
\.


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

COPY public.sewing_cupcake_fillings (id, "Arabic_Name", "English_Name", "Image", "SewingType", created_at, updated_at, "Delete", "Sort_Order") FROM stdin;
\.


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

COPY public.sewing_embroideries (id, "Arabic_Name", "English_Name", "Image", "SewingType", created_at, updated_at, "Delete", "Sort_Order") FROM stdin;
\.


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

COPY public.sewing_order_modules (id, "Sleeves", "CseedSleeves", "AlKabkat", "AlTaktak", "SidePocket", "CupcakeFilling", "Collar", "CollarPadding", "ChestPocket", "ChestPocketFilling", "Seeds", "SeedFilling", "Embroidery", "Buttons", "SewingOrder", created_at, updated_at, "DXF_File", "Kabak_Sewing", "Product", "Product_Cost") FROM stdin;
\.


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

COPY public.sewing_orders (id, "Code", "Date", "Time", "RecivedDate", "Draw", "Payment_Method", "Status", "Refernce_Number", "Notes", "Qty", "DXF_Height_cm", "SizeName", "L", "LB", "B", "S", "AH", "CH", chest_full, "BK", "HD", cuff, gusset_len, gusset_width_mm, front, net_chest, neck_size, front_shoulder_height, shoulder_height, back_neck_depth, front_neck_depth, back_down_shoulder, shoulder_opening, hand_cuff, arm_rotation, arm_length, arm_elbow_width, neck_height, "Pocket_chest_height", neck_height_qalap, hand_length_kabk, hand_rotation_kabk, "Total_Price", "TotalTax", "Total_af_Tax", "Discount", "Total_Af_Discount", "The_Net", "Pay", "DXF_File", "Branch", "RecivedBranch", "Safe", "Coin", "Cost_Center", "Delegate", "Client", "Product", "SewingType", "TaxType", created_at, updated_at, "User", "Execute", "Kabak_Width", "Kabak_Sewing", "SewingSort", "TotalCost", "Done_Pay", neck_size_qalap, "B_Net", "BK_Net", "HD_Net", "IshtakTopWidth", "IshtakBottomWidth", "SideTopWidth", "SideBottomWidth") FROM stdin;
\.


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

COPY public.sewing_request_details (id, "SewingRequest", "Type", "Product", "Qty", "Price", "Total", created_at, updated_at) FROM stdin;
\.


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

COPY public.sewing_requests (id, "Code", "Date", "Time", "RecivedDate", "Draw", "Payment_Method", "Status", "Refernce_Number", "Notes", "Total_Price", "TotalTax", "Total_af_Tax", "Discount", "Total_Af_Discount", "The_Net", "Pay", "SewingSort", "Qty", "SewingCost", "Branch", "RecivedBranch", "Safe", "Coin", "Cost_Center", "Delegate", "Client", "TaxType", "User", "SewingOrderID", "Transferred", created_at, updated_at, "OutsideSewingType") FROM stdin;
\.


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

COPY public.sewing_seed_fillings (id, "Arabic_Name", "English_Name", "Image", "SewingType", created_at, updated_at, "Delete", "Sort_Order") FROM stdin;
\.


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

COPY public.sewing_seeds (id, "Arabic_Name", "English_Name", "Image", "SewingType", created_at, updated_at, "Delete", "Sort_Order") FROM stdin;
\.


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

COPY public.sewing_side_pockets (id, "Arabic_Name", "English_Name", "Image", "SewingType", created_at, updated_at, "Delete", "Sort_Order") FROM stdin;
\.


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

COPY public.sewing_sleeves (id, "Arabic_Name", "English_Name", "Image", "SewingType", created_at, updated_at, "Guest", "Delete", "Type", "Sort_Order") FROM stdin;
\.


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

COPY public.sewing_types (id, "Arabic_Name", "English_Name", "Image", "Status", created_at, updated_at, "Price_Normal", "Price_Urgent", "Max_Price", "Min_Price", "Sewing_Price_Normal", "Sewing_Price_Urgent", "Sewing_Max_Price", "Sewing_Min_Price") FROM stdin;
\.


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

COPY public.shifts (id, "Code", "Date", "Note", "Total_Cash", "Total_Later", "Total_Visa", "Total", "Pass", "Emp", "User", arr, created_at, updated_at, "Close", "Amount", "Total_Recipt", "Total_Payment", "Store", "Safe", "Total_Later_Not_Paid", "Total_Later_Paid", "Total_Installment", "Total_Checks", "Total_Delivery", "Total_Installment_Companies", "Close_Date", "Open_Amount", "Open_Note", "Apps") FROM stdin;
\.


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

COPY public.shipment_moves (id, "Code", "Barcode", "Date", "Time", "Sender", "Sender_Name", "Reciver", "Reciver_Name", "Status", "Status_Code", "Delegate", "Driver", "Note", "User", "Shipment_ID", created_at, updated_at, "Shipment_Dist_ID", "Shipment_Unload_ID", "Shipment_Recived_ID") FROM stdin;
\.


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

COPY public.shipment_receipts (id, "Recived_Store", "Code", "Date", "Total_Cash", "Total_Later", "Total_Price", "Tickets_Numbers", "Status", "ShippingList", arr, created_at, updated_at) FROM stdin;
\.


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

COPY public.shipment_receipts_clients (id, "Code", "Date", "ShipmentReceipts", "ShipmentReceiptsList", "Total_Price", "Total_Qty", "Pay", "Payment_Method", "Safe", "Coin", "Draw", arr, created_at, updated_at) FROM stdin;
\.


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

COPY public.shipment_receipts_lists (id, "Shipping_List", "Code", "Sender_Name", "Addressees_Name", "Total_Qty", "Total_Price", "Payment_Method", "Notes", "Ticket", "ShipmentReceipts", "Status", arr, created_at, updated_at) FROM stdin;
\.


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

COPY public.shipment_requests (id, "Code", "Date", "Time", "Status", "Pieces_Num", "Desc", "Weight", "Length", "Width", "Height", "Note", "Payment_Method", "Breakable", "Delivery_To_Others", "Opening_Package", "Sender_Name", "Sender_Governorate", "Sender_City", "Sender_Place", "Sender_Address", "Sender_Phone1", "Sender_Phone2", "Sender_Location", "Receiver_Name", "Receiver_Governorate", "Receiver_City", "Receiver_Place", "Receiver_Address", "Receiver_Phone1", "Receiver_Phone2", "Receiver_Location", "Delegate", "Sender", "Received", "Shipment_Cost", "Total", "User", "Pay", "Safe", "Coin", "Draw", "Transfer", created_at, updated_at, "Shipment_Type", "Receipt_Date", "Receipt_Time", "Arrival_Date", "Arrival_Time") FROM stdin;
\.


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

COPY public.shipments (id, "Code", "Date", "Time", "Arrival_Date", "Arrival_Time", "Barcode", "Status", "Pieces_Num", "Desc", "Reference_Num", "Weight", "Length", "Width", "Height", "Note", "Shipment_Class", "Payment_Method", "Breakable", "Delivery_To_Others", "Shipping_Costs_Included", "Opening_Package", "Sender_Name", "Sender_Governorate", "Sender_City", "Sender_Place", "Sender_Address", "Sender_Phone1", "Sender_Phone2", "Sender_Location", "Receiver_Name", "Receiver_Governorate", "Receiver_City", "Receiver_Place", "Receiver_Address", "Receiver_Phone1", "Receiver_Phone2", "Receiver_Location", "Delegate", "Driver", "Sender", "Received", "Shipment_Type", "Shipment_Rqst_Type", "Shipment_Category", "Shipment_Cost", "Goods_Cost", "Delivery_Cost", "Overload_Weight_Cost", "Collection_Commission", "Delivery_Commission", "Return_Cost", "Total", created_at, updated_at, "User", "Pay", "Insurance", "Safe", "Coin", "Draw", "Store", "Car", "ToStore") FROM stdin;
\.


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

COPY public.shipments_distribution_goods (id, "Shipment_ID", "Code", "Total_Weight", "Total_Cost", "ShipmentsDistribution", created_at, updated_at, "Barcode", "Total_Pieces", "Status") FROM stdin;
\.


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

COPY public.shipments_distribution_workers (id, "Worker", "ShipmentsDistribution", created_at, updated_at) FROM stdin;
\.


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

COPY public.shipments_distributions (id, "Code", "Date", "Time", "Safe", "Coin", "Draw", "FromStore", "ToStore", "Car", "Delegate", "Driver", "Total_Pieces", "Total_Weight", "Total_Cost", "Status", "User", created_at, updated_at, "Count_Shipmets", "DriverPrecent") FROM stdin;
\.


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

COPY public.shipping_companies (id, "Name", "Phone", "Tax_Card", "Commercial_Register", "Account", created_at, updated_at, "NameEn") FROM stdin;
5	زاجل	\N	\N	\N	2524	2024-02-09 00:41:56	2024-02-09 00:41:56	Zagel
\.


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

COPY public.shipping_defaults (id, "Breakable", "Coin", created_at, updated_at, "Safe", "Payment_Method", "Shipment_Class", "Opening_Package", "Shipment_Type", "Shipment_Category", "Delivery_To_Others", "Shipping_Costs_Included", "Insurance", "Draw", "Store") FROM stdin;
1	Yes	1	2022-07-11 21:06:06	2026-01-14 12:22:57	30	Cash	Hub	Yes	Shipping	1	Yes	Yes	Yes	1	21
\.


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

COPY public.shipping_list_tickets (id, "Shipping_List", "Code", "Sender_Name", "Addressees_Name", "Total_Qty", "Total_Price", "Payment_Method", "Notes", created_at, updated_at, "Ticket") FROM stdin;
\.


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

COPY public.shipping_lists (id, "Ticket_Store", "Driver", "Car_Store", "Travel_Area", "Access_Area", "Date_Travel", "Date_Arrival", "Car_Number", "Code", "Date", "Total_Cash", "Total_Later", "Total_Price", "Tickets_Numbers", created_at, updated_at, "Status") FROM stdin;
\.


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

COPY public.shipping_orders (id, "Code", "Date", "Weight", "Number", "Goods_Price", "Shipping_Price", "Total", "Breakable", "Note", "Draw", "Coin", "Cost_Center", "Vend", "Cli", "Open", "Paid", "Ship_Sort", "Adderss", "Requests", "Sure", "Safe", "Residual", "Emp_Note", "Shipping_Delegate", "Cancel", "Cancel_Note", "Cancel_Pay", "Cancel_Not_Pay", "Vendor_Shipping", "Request_Done", "Status", "Type", "Delegate", "Vendor", "Client", arr, created_at, updated_at) FROM stdin;
\.


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

COPY public.shipping_prices (id, "Place", "City", created_at, updated_at, "From", "To", "Price") FROM stdin;
\.


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

COPY public.shipping_statuses (id, "Arabic_Name", "English_Name", "Color", created_at, updated_at) FROM stdin;
1	تامة	Done	#4eca21	2022-07-11 21:11:29	2024-02-09 01:10:16
\.


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

COPY public.shipping_types (id, "Arabic_Name", "English_Name", created_at, updated_at) FROM stdin;
1	شحنة افتراضية	Default Shipping	2022-07-11 21:11:11	2024-02-09 01:08:23
\.


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

COPY public.shippment_products (id, "P_Code", "P_Ar_Name", "P_En_Name", "V1", "V2", "V_Name", "VV_Name", "AvQty", "Qty", "Price", "Total", "Store", "Product", "Unit", "Shipment", created_at, updated_at) FROM stdin;
\.


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

COPY public.shortcomings (id, "Code", "Date", "Draw", "Payment_Method", "Status", "Vendor_Bill_Date", "Refernce_Number", "Note", "Product_Numbers", "Total_Qty", "Total_Discount", "Total_BF_Taxes", "Total_Taxes", "Total_Price", "Pay", "ToPurch", "Safe", "Vendor", "Delegate", "Store", "Coin", "Cost_Center", "User", arr, created_at, updated_at, "Purch_Date", "Purch_Reason", "ShipStatus", "P_Order_Num", "Ship", "Check_Type", "Due_Date", "Check_Number", "Later_Due", "Sent", "TaxBill", "TaxCode", "Time", "Branch", "CustomerGroup", "File", "Current_Credit", "Residual", "Total_Net", "Edit", "Delete", "Edit_New_Code") FROM stdin;
\.


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

COPY public.show_print_defaults (id, "CompanyName", "ProductName", "ProductPrice", "Coin", "Unit", "Group", "Code", "Logo", created_at, updated_at) FROM stdin;
1	0	1	1	1	0	0	1	0	\N	2026-01-14 12:23:27
\.


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

COPY public.social_media (id, "Facebook", "Twitter", "Instagram", "Youtube", "Snapchat", "Whatsapp", "Google_Plus", "LinkedIn", "Pinterest", "Telegram", "iOS", "Android", created_at, updated_at) FROM stdin;
1	https://www.facebook.com/	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	2022-06-04 15:15:33
\.


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

COPY public.special_cases (id, "Arabic_Name", "English_Name", "Discount", created_at, updated_at) FROM stdin;
1	حالة ١	حالة ١	10	2024-01-19 11:01:23	2024-01-19 11:01:23
2	حاله ٢	حاله ٢	20	2024-01-19 11:01:42	2024-01-19 11:01:42
\.


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

COPY public.spend_profits (id, "Code", "Date", "Draw", "Amount", "Remaining_Profit", "Partner", "Safe", "Coin", "Cost_Center", "User", created_at, updated_at, "Payment_Method") FROM stdin;
\.


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

COPY public.start_periods (id, "Code", "Date", "Draw", "Note", "Total_Products", "Total_Qty", "Total_Price", "Store", "Coin", "User", arr, created_at, updated_at, "Time", "Branch", "Edit", "Delete", "Edit_New_Code") FROM stdin;
\.


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

COPY public.store_count_sales (id, "Store", "Total", created_at, updated_at, "Tax") FROM stdin;
1	4	1000	2022-06-25 18:29:42	2022-06-25 18:29:42	1
\.


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

COPY public.store_counts (id, "Store", "Total", created_at, updated_at, "Tax") FROM stdin;
1	4	640.00	2022-06-29 12:26:39	2022-06-29 12:26:39	1
\.


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

COPY public.store_transfer_filter_twos (id, "Code", "Date", "Draw", "Total", "TotalQty", "Note", "From_Store", "To_Store", "Coin", "Cost_Center", "User", "Status", "Ship", "CostShip", "RecivedShip", "OldQty", "Edit", "Delegate", "Time", "Type", "ID", created_at, updated_at, "Branch") FROM stdin;
\.


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

COPY public.store_transfer_filters (id, "Code", "Date", "Draw", "Total", "TotalQty", "Note", "From_Store", "To_Store", "Coin", "Cost_Center", "User", "Status", "Ship", "CostShip", "RecivedShip", "OldQty", "Edit", "Delegate", "Time", "Type", "ID", created_at, updated_at, "Branch") FROM stdin;
\.


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

COPY public.stores (id, "Date", "Time", "Name", "Phone", "Address", "Account", "User", created_at, updated_at, "Code", "Branch", "Letter", "Account_Client", "NameEn", "Lat", "Lang") FROM stdin;
20	2023-08-30	11:11:31 am	مخزن الطلبات	\N	\N	2499	11	2023-08-30 11:11:31	2023-08-30 11:11:31	4	3	\N	\N	Requests Store	\N	\N
21	2024-02-08	11:43:55 pm	المخزن الرئيسي	\N	\N	2500	11	2024-02-08 23:43:55	2024-02-08 23:43:55	5	3	M	2501	Main Store	\N	\N
\.


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

COPY public.stores_default_data (id, "Group", "Unit", "Tax", "Coin", "Account_Excess", "Account_Dificit", "Store", created_at, updated_at, "Type", "Style", "StoresTarnsferPrice", "Guide_Product_Cost", "Client_Store_Account", "Show_Ship", "StoresTarnsferHide", "CodeType", "ReturnStoresTransfer", "Cost_Price", "Hide_Product", "StartPeriod_Show_Product", "Fictitious_Quantities", "Qty_With_Add_Product") FROM stdin;
3	33	10	1	1	45	45	21	2022-04-13 02:46:29	2026-01-14 12:23:27	Completed	6	0	0	0	0	0	GS1	0	1	0	0	0	0
\.


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

COPY public.stores_moves (id, "Date", "Code", "Time", "Branch", "Type", "Note", "Total_Qty", "Total_Price", "Ship", "ID", created_at, updated_at, "Store", "Cost_Center", "User", "Coin", "Account", "Safe", "TypeEn", "Delete", "Edit", "Edit_New_Code") FROM stdin;
\.


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

COPY public.stores_moves_columns (id, "Date", "Code", "Time", "Branch", "Store", "Safe", "Type", "Cost_Center", "User", "Coin", "Note", "Total_Qty", "Total_Price", "Account", "Ship", created_at, updated_at) FROM stdin;
1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	\N	2022-10-08 10:59:05
\.


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

COPY public.stores_moves_columns_sechdules (id, "Date", "Code", "Time", "Branch", "Store", "Safe", "Type", "Cost_Center", "User", "Coin", "Note", "Total_Qty", "Total_Price", "Account", "Ship", created_at, updated_at) FROM stdin;
1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	\N	2022-10-08 11:10:10
\.


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

COPY public.stores_moves_filter_twos (id, "Date", "Code", "Time", "Branch", "Store", "Safe", "Type", "Cost_Center", "User", "Coin", "Note", "Total_Qty", "Total_Price", "Account", "Ship", "ID", created_at, updated_at) FROM stdin;
\.


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

COPY public.stores_moves_filters (id, "Date", "Code", "Time", "Branch", "Store", "Safe", "Type", "Cost_Center", "User", "Coin", "Note", "Total_Qty", "Total_Price", "Account", "Ship", "ID", created_at, updated_at) FROM stdin;
\.


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

COPY public.stores_transfer_columns (id, "Date", "Code", "Time", "Amount", "From_Store", "To_Store", "User", "Coin", "Shipping", "Note", "Delegate", "Product_Name", "Product_Code", "Group", "Brand", "Qty", "Price", "Trans_Qty", "Unit", "Total", created_at, updated_at, "Branch") FROM stdin;
1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	\N	2022-10-06 11:34:30	1
\.


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

COPY public.stores_transfer_columns_sechdules (id, "Date", "Code", "Time", "Amount", "From_Store", "To_Store", "User", "Coin", "Shipping", "Note", "Delegate", "Product_Name", "Product_Code", "Group", "Brand", "Qty", "Price", "Trans_Qty", "Unit", "Total", created_at, updated_at, "Branch") FROM stdin;
1	1	1	1	1	1	1	1	1	1	1	\N	1	1	1	\N	\N	\N	\N	\N	\N	\N	2022-10-06 16:01:07	1
\.


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

COPY public.stors_transfers (id, "Code", "Date", "Draw", "Total", "Note", "From_Store", "To_Store", "Coin", "Cost_Center", "User", arr, created_at, updated_at, "TotalQty", "Status", "CostShip", "RecivedShip", "OldQty", "Edit", "Time", "Branch", "Total_Cost", "TypeTransfer", "Cost_Store", "Delegate", "Ship", "File", "Edit_t", "Delete", "Edit_New_Code") FROM stdin;
\.


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

COPY public.student_groups (id, "Image", "Arabic_Name", "English_Name", "Arabic_Desc", "English_Desc", created_at, updated_at) FROM stdin;
1	CoursesCategoryImages/XVfEEtMUenIcGa9rp3pT.png	مجموعة ١	مجموعة ١	مجموعة ١	مجموعة ١	2024-01-19 10:59:57	2024-01-19 10:59:57
\.


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

COPY public.student_importants (id, created_at, updated_at, "Student", "Course") FROM stdin;
\.


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

COPY public.students (id, "Code", "Arabic_Name", "English_Name", "Group", "Phone1", "Phone2", "Dad_Phone", "Mom_Phone", "Special_Case", "Case", "Email", "Whatsapp", "Age", "Gov", "City", "Place", "Nationality", "Address", "Profession", "Ntional_ID", "Account", created_at, updated_at) FROM stdin;
1	1	Mahmoud	Hoda	1	1123123	3123	23	234345	1	1	Suka@test.com	44	44	2	1	4	2	qweqweqwe	asdas	qweqwe	2542	2024-01-20 23:34:34	2024-01-20 23:34:34
\.


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

COPY public.sub_images (id, "Image", "Product", created_at, updated_at) FROM stdin;
\.


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

COPY public.sub_virables (id, "Name", "V_ID", created_at, updated_at, "NameEn") FROM stdin;
19	128G	9	2022-06-09 05:45:09	2024-02-09 00:29:31	128G
20	256G	9	2022-06-09 05:45:17	2024-02-09 00:29:41	256G
21	64G	9	2022-06-09 05:45:25	2024-02-09 00:29:51	64G
13	احمر	7	2022-06-09 05:43:53	2024-02-09 00:30:14	Red
14	ازرق	7	2022-06-09 05:44:01	2024-02-09 00:30:24	Blue
15	اسود	7	2022-06-09 05:44:09	2024-02-09 00:30:33	Black
17	لارج	8	2022-06-09 05:44:43	2024-02-09 00:31:49	L
16	سمال	8	2022-06-09 05:44:37	2024-02-09 00:32:24	S
18	ميديم	8	2022-06-09 05:44:51	2024-02-09 00:32:39	M
\.


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

COPY public.subscribe_types (id, "Name", created_at, updated_at, "NameEn") FROM stdin;
2	شهري	2024-02-09 00:34:34	2024-02-09 00:34:34	Monthly
3	ربع سنوي	2024-02-09 00:34:59	2024-02-09 00:36:25	Quarterly
4	نصف سنوي	2024-02-09 00:37:01	2024-02-09 00:37:01	Mideterm
5	سنوي	2024-02-09 00:37:29	2024-02-09 00:37:29	Annual
\.


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

COPY public.sup_pages_e_com_designs (id, "About_Title_Color", "About_Txt_Color", "Blogs_Title_Color", "Blogs_Txt_Color", "Blogs_Hover_Txt_Color", "Contact_Title_Color", "Contact_Txt_Color", "Contact_Form_Input_Border_Color", "Contact_Form_Input_Txt_Color", "Contact_Form_Button_BG_Color", "Contact_Form_Button_Txt_Color", "Contact_Form_Button_Hover_BG_Color", "Contact_Form_Button_Hover_Txt_Color", "Faq_Title_Color", "Faq_Q_BG_Color", "Faq_Q_Txt_Color", "Faq_A_Line_Color", "Faq_A_BG_Color", "Faq_A_Txt_Color", "MyAccount_Box_BG_Color", "MyAccount_Box_Button_BG_Color", "MyAccount_Box_Button_Txt_Color", "MyAccount_Box_Button_Hover_BG_Color", "MyAccount_Box_Button_Hover_Txt_Color", "MyAccount_Box_Input_Border_Color", "MyAccount_Box_Input_Txt_Color", created_at, updated_at) FROM stdin;
1	#113366	#000000	#000000	#000000	#ad0000	#000000	#000000	#113366	#000000	#113366	#ffffff	#000000	#ffffff	#000000	#ffffff	#000000	#113366	#ffffff	#000000	#ffffff	#113366	#ffffff	#cc0000	#ffffff	#113366	#113366	2023-09-01 18:44:33	2023-09-02 13:16:04
\.


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

COPY public.sup_pages_part_two_e_com_designs (id, "Shop_Product_BG_Color", "Shop_Product_Group_BG_Color", "Shop_Product_Group_Txt_Color", "Shop_Product_Group_Hover_BG_Color", "Shop_Product_Group_Hover_Txt_Color", "Shop_Product_Icon_BG_Color", "Shop_Product_Icon_Txt_Color", "Shop_Product_Icon_Hover_BG_Color", "Shop_Product_Icon_Hover_Txt_Color", "Shop_Product_Txt_Color", "Shop_Product_Price_Color", "Shop_Product_Rate_Color", "Shop_Filter_Title_Color", "Shop_Filter_Txt_Color", "Shop_Filter_Search_BG_Color", "Shop_Filter_Search_Icon_BG_Color", "Shop_Filter_Search_Icon_Txt_Color", "Shop_Filter_Search_Icon_BG_Hover_Color", "Shop_Filter_Search_Icon_Txt_Hover_Color", "Cart_Button_BG_Color", "Cart_Button_Txt_Color", "Cart_Button_BG_Hover_Color", "Cart_Button_Txt_Hover_Color", "Cart_Box_BG_Color", "Cart_Box_Title_Color", "Cart_Box_Txt_Color", "Cart_Box_Button_BG_Color", "Cart_Box_Button_Txt_Color", "Cart_Box_Button_BG_Hover_Color", "Cart_Box_Button_Txt_Hover_Color", "Cart_Cupon_Button_BG_Color", "Cart_Cupon_Button_Txt_Color", "Cart_Cupon_Button_BG_Hover_Color", "Cart_Cupon_Button_Txt_Hover_Color", "Cart_Cupon_Input_BG_Color", "Checkout_Box_BG_Color", "Checkout_Box_Title_Color", "Checkout_Box_Txt_Color", "Checkout_Box_Button_BG_Color", "Checkout_Box_Button_Txt_Color", "Checkout_Box_Button_BG_Hover_Color", "Checkout_Box_Button_Txt_Hover_Color", "Checkout_Head_BG_Color", "Checkout_Head_Txt_Color", "Checkout_Input_BG_Color", "Checkout_Input_Txt_Color", "Reg_Login_Form_Box_BG_Color", "Reg_Login_Form_Box_Title_Color", "Reg_Login_Form_Box_Txt_Color", "Reg_Login_Form_Box_Txt_Hover_Color", "Reg_Login_Form_Box_Input_Border_Color", "Reg_Login_Form_Box_Button_BG_Color", "Reg_Login_Form_Box_Button_Txt_Color", "Reg_Login_Form_Box_Button_BG_Hover_Color", "Reg_Login_Form_Box_Button_Txt_Hover_Color", created_at, updated_at) FROM stdin;
1	#ffffff	#113366	#ffffff	#850000	#ffffff	#ffffff	#113366	#113366	#ffffff	#000000	#000000	#ffb607	#000000	#000000	#ffffff	#d4d4d4	#b80000	#cc0000	#ffffff	#113366	#ffffff	#000000	#ffffff	#ffffff	#000000	#000000	#113366	#ffffff	#ffffff	#113366	#000000	#ffffff	#113366	#ffffff	#ffffff	#ffffff	#000000	#000000	#113366	#ffffff	#ffffff	#113366	#ffffff	#113366	#ffffff	#000000	#113366	#ffffff	#ffffff	#c20000	#ffffff	#ffffff	#113366	#990a00	#ffffff	2023-09-01 18:44:45	2023-09-02 16:00:29
\.


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

COPY public.sup_pages_wish_comp_e_com_designs (id, "Wish_Title_BG_Color", "Wish_Title_Txt_Color", "Wish_Box_BG_Color", "Wish_Box_Border_Color", "Wish_Box_Border_Type", "Wish_Box_Txt_Color", "Wish_Box_Button_BG_Color", "Wish_Box_Button_Txt_Color", "Wish_Box_Button_BG_Hover_Color", "Wish_Box_Button_Txt_Hover_Color", "Compare_Box_BG_Color", "Compare_Box_Txt_Color", "Compare_Box_Price_Hover_Color", "Compare_Box_Delete_Txt_Color", created_at, updated_at) FROM stdin;
1	#ffffff	#000000	#ffffff	#000000	1	#000000	#113366	#ffffff	#ffffff	#113366	#ffffff	#113366	#8a0000	#a80000	2023-09-01 18:45:09	2023-09-02 14:15:53
\.


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

COPY public.taxes (id, "Code", "Name", "Rate", "Type", created_at, updated_at, "Hide", "Account", arr, "CodeTax", "SubType", "NameEn") FROM stdin;
1	1	بدون ضريبة	0	2	2021-07-01 07:16:47	2021-07-01 07:16:47	1	112	\N	\N	\N	No Tax
2	2	القيمة المضافة	14	1	2021-07-01 07:17:08	2024-02-14 23:10:57	0	40	\N	T1	V009	VAT
\.


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

COPY public.teachers (id, "Code", "Arabic_Name", "English_Name", "Image", "Work_Type", "Hour_Price", "Qualification", "Qualification_Attach", "National_ID", "National_ID_Attach", "CV", "Nationality", "Gov", "City", "Place", "Address", "Age", "Phone1", "Phone2", "Whatsapp", "Facebook", "Instagram", "Linked", "Telegram", "Arabic_Bio", "English_Bio", "Marital_Status", "Account", "Covenant", "Commission", "Merit", "Account_Emp", created_at, updated_at) FROM stdin;
2	2	Full Name	Full Name	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	54	2536	2535	2537	2534	2024-01-20 14:51:53	2024-01-20 14:51:53
3	3	مدير ١	مدير ١	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	54	2540	2539	2541	2538	2024-01-20 14:52:50	2024-01-20 14:52:50
1	1	Ahmed	AHmed	EmployeesImages/T5ehNLC4xg0Sr4WbxiSk.jpg	2	1	1	EmployeesImages/icbDDI8d8P14YhCsLw7x.jpg	1	EmployeesImages/DsB7y4aLxGTucxZp09jT.jpg	EmployeesImages/BAWJ3aczB3S84OjF9cRy.jpg	2	2	1	4	1	1	1	1	1	1	1	1	1	1	1	Single	54	2532	2531	2533	2530	2024-01-20 14:09:35	2024-01-20 15:35:23
\.


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

COPY public.teachers_groups (id, "Teacher", "Group", created_at, updated_at) FROM stdin;
1	1	1	2024-01-20 15:35:23	2024-01-20 15:35:23
\.


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

COPY public.teachers_subjects (id, "Teacher", "Subject", created_at, updated_at) FROM stdin;
2	2	1	2024-01-20 14:51:53	2024-01-20 14:51:53
4	1	1	2024-01-20 15:35:23	2024-01-20 15:35:23
\.


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

COPY public.tenants (id, created_at, updated_at, data) FROM stdin;
\.


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

COPY public.terms (id, "Arabic_Desc", "English_Desc", created_at, updated_at) FROM stdin;
2	1	1	\N	\N
\.


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

COPY public.terms_maintainces (id, "Desc_Work", "Desc_Not_Work", created_at, updated_at, "Desc_Work_En", "Desc_Not_Work_En") FROM stdin;
2	1	1	\N	2024-02-09 01:05:29	1	1
\.


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

COPY public.testclients (id, "Name", "Governrate", "City", created_at, updated_at) FROM stdin;
\.


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

COPY public.ticekt_issues (id, "Arabic_Name", "English_Name", created_at, updated_at) FROM stdin;
\.


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

COPY public.ticket_products (id, "Product_Code", "P_Ar_Name", "P_En_Name", "Price", "Weight", "Length", "Width", "Height", "Qty", "Unit", "Total", "Store", "Product", "Ticket", created_at, updated_at) FROM stdin;
\.


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

COPY public.tickets (id, "Code", "Date", "Payment_Method", "Sender_Name", "Sender_Address", "Sender_Phone", "Addressees_Name", "Addressees_Address", "Addressees_Phone", "Notes", "Sub_Total", "Discount", "Total", "Store", "Safe", "Recived", "Selected", "Coin", "Draw", "Product_Numbers", "Total_Qty", arr, created_at, updated_at, "Access_Area", "TicketIssues") FROM stdin;
\.


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

COPY public.translation_tourism_companies (id, "Arabic_Name", "English_Name", "Precent", created_at, updated_at) FROM stdin;
\.


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

COPY public.translte_modules (id, "Code", "Date", "Arabic_Name", "English_Name", "Lang", created_at, updated_at) FROM stdin;
\.


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

COPY public.translte_modules_details (id, "Arabic_Text", "Translate_Text", "Module", created_at, updated_at) FROM stdin;
\.


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

COPY public.transltors (id, "Original_Name", "New_Arabic_Name", "New_English_Name", created_at, updated_at) FROM stdin;
5	Price_One	السعر الاول	Price One	2022-04-14 10:08:49	2022-04-14 10:40:54
6	Code	الكود	Code	2022-04-14 10:09:41	2022-04-14 10:41:11
7	Accounting_Manual	الدليل المحاسبي	Accounting Manual	2022-04-14 10:44:21	2022-04-14 10:44:21
45	Stores	المخازن	Stores	\N	\N
46	Store	المخزن	Store	\N	\N
47	Qty	الكميه	Qty	\N	\N
4	infinite	لا نهائي	infinite	2022-04-08 00:09:45	2022-04-08 00:09:45
9	Start_Period_Sechdule	جدول اصناف بداية فترة	Start Period Sechdule	2022-04-14 10:59:59	2022-04-14 10:59:59
10	Ledger	دفتر الاستاذ	Ledger	2022-04-14 10:59:59	2022-04-14 10:59:59
11	Incom_List	قائمة الدخل	Incom List	2022-04-14 10:59:59	2022-04-14 10:59:59
12	Financial_Center	قائمة المركز المالي	Financial Center	2022-04-14 10:59:59	2022-04-14 10:59:59
13	Add_Items	اضافة اصناف	Add Items	2022-04-14 10:59:59	2022-04-14 10:59:59
14	Items_Guide	دليل الأصناف	Items Guide	2022-04-14 10:59:59	2022-04-14 10:59:59
15	Stores	المخازن	Stores	2022-04-14 10:59:59	2022-04-14 10:59:59
16	Measurement_Units	وحدات القياس	Measurement Units	2022-04-14 10:59:59	2022-04-14 10:59:59
17	Items_Groups	مجموعة الأصناف	Items Groups	2022-04-14 10:59:59	2022-04-14 10:59:59
19	Virables	المتغيرات	Virables	2022-04-14 10:59:59	2022-04-14 10:59:59
20	Sub_Virables	المتغيرات الفرعية	Sub Virables	2022-04-14 10:59:59	2022-04-14 10:59:59
21	Inventory_Sechdule	جدول الجرد	Inventory Sechdule	2022-04-14 10:59:59	2022-04-14 10:59:59
22	Settlement_Sechdule	جدول التسوية	Settlement Sechdule	2022-04-14 10:59:59	2022-04-14 10:59:59
23	Products_Sechdule	جدول الأصناف	Products Sechdule	2022-04-14 10:59:59	2022-04-14 10:59:59
24	Permission_to_exchange_goods	اذن صرف البضاعة	Permission to exchange goods	2022-04-14 10:59:59	2022-04-14 10:59:59
25	Permission_to_receive_goods	اذن استلام بضاعة	Permission to receive goods	2022-04-14 10:59:59	2022-04-14 10:59:59
28	Consists	تالف	Consists	2022-04-14 10:59:59	2022-04-14 10:59:59
29	ConsistsSechdule	جدول التوالف	Consists Sechdule	2022-04-14 10:59:59	2022-04-14 10:59:59
31	Projects	المشاريع	Projects	2022-04-14 10:59:59	2022-04-14 10:59:59
32	Missions	المهام	Missions	2022-04-14 10:59:59	2022-04-14 10:59:59
33	PurchasesOrder	آمر الشراء	Purchases Order	2022-04-14 10:59:59	2022-04-14 10:59:59
34	PurchasesOrderSechdule	جدول آوامر الشراء	Purchases Order Sechdule	2022-04-14 10:59:59	2022-04-14 10:59:59
35	ReciptMaintaince	سند استلام صيانة	Recipt Maintaince	2022-04-14 10:59:59	2022-04-14 10:59:59
38	Unit	الوحدة	Unit	2022-04-14 10:59:59	2022-04-14 10:59:59
36	ReciptMaintainceSechdule	جدول سندات الاستلام	Recipt Maintaince Sechdule	2022-04-14 10:59:59	2022-04-14 10:59:59
37	DeviceDescrips	اوصاف الأجهزة	Device Descrips	2022-04-14 10:59:59	2022-04-14 10:59:59
39	Barcode	باركود	Barcode	2022-04-14 10:59:59	2022-04-14 10:59:59
40	Price_Two	السعر الثاني	Price Two	2022-04-14 10:59:59	2022-04-14 10:59:59
41	Price_Three	السعر الثالث	Price Three	2022-04-14 10:59:59	2022-04-14 10:59:59
42	Minimum	الحد الأدنى	Minimum	2022-04-14 10:59:59	2022-04-14 10:59:59
43	Maximum	الحد الأقصى	Maximum	2022-04-14 10:59:59	2022-04-14 10:59:59
44	Account_Credit	رصيد الحساب	Account_Credit	2022-04-14 10:59:59	2022-04-14 10:59:59
8	Assets	الأصول الثابتة	Assets	2022-04-14 10:44:59	2024-02-09 00:45:58
30	Activites	الانشطة	Activites	2022-04-14 10:59:59	2024-02-09 00:46:27
26	ReceiveGoodsSechdule	جدول استلام البضاعة	Receive Goods Sechdule	2022-04-14 10:59:59	2024-02-09 00:47:13
27	ExchangeGoodsSechdule	جدول صرف البضاعة	Exchange Goods Sechdule	2022-04-14 10:59:59	2024-02-09 00:47:34
18	Manufacture	الماركات	Brands	2022-04-14 10:59:59	2024-02-09 00:48:18
\.


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

COPY public.transport_contractors (id, "Arabic_Name", "English_Name", "Phone", "Gov", "City", "Place", "Account", created_at, updated_at, "Merit_Account") FROM stdin;
\.


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

COPY public.transport_permit_details (id, "Statement", "Qty", "Note", "Permit", created_at, updated_at) FROM stdin;
\.


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

COPY public.transport_permits (id, "Code", "Date", "Time", "Address", "Client", "Note", created_at, updated_at) FROM stdin;
\.


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

COPY public.transport_prices (id, "From_Place", "To_Place", "Value", created_at, updated_at) FROM stdin;
\.


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

COPY public.transport_receivers (id, "Arabic_Name", "English_Name", "Phone", "Phone2", "Gov", "City", "Place", "Address", "Location", "Client", created_at, updated_at) FROM stdin;
\.


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

COPY public.transports (id, "Code", "Date", "Time", "Arrival_Date", "Arrival_Time", "Reference_Num", "Weight", "Note", "Payment_Method", "Insurance", "Pay", "Value", "Type", "Sender_Name", "Sender_Governorate", "Sender_City", "Sender_Place", "Sender_Address", "Sender_Phone1", "Sender_Phone2", "Sender_Location", "Receiver_Name", "Receiver_Governorate", "Receiver_City", "Receiver_Place", "Receiver_Address", "Receiver_Phone1", "Receiver_Phone2", "Receiver_Location", "Safe", "Coin", "Draw", "Cost_Center", "Driver", "Car", "Driver_Precent", "Driver_Value", "Contractor", "Contractor_Precent", "Contractor_Value", "Sender", "Received", created_at, updated_at, "Expenses_Value", "Expenses_Precent", "The_Net", "Tax_Type", "Tax", "Tax_Value", "Tax_Profit_Type", "Tax_Profit", "Tax_Profit_Value") FROM stdin;
\.


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

COPY public.unloading_shipments (id, "Code", "Date", "Time", "Safe", "Coin", "Draw", "FromStore", "ToStore", "Car", "Delegate", "Driver", "Total_Pieces", "Total_Weight", "Total_Cost", "Count_Shipmets", "Status", "User", created_at, updated_at, "ShipmentsDistributionCode") FROM stdin;
\.


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

COPY public.unloading_shipments_goods (id, "Shipment_ID", "Code", "Total_Weight", "Total_Cost", "Total_Pieces", "ShipmentsUnloading", "Status", "Dist_Goods_ID", created_at, updated_at, "Barcode") FROM stdin;
\.


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

COPY public.unloading_shipments_workers (id, "Worker", "ShipmentsUnloading", created_at, updated_at) FROM stdin;
\.


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

COPY public.update_values_investors (id, "Date", "Valye", "Investor", created_at, updated_at) FROM stdin;
\.


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

COPY public.upload_accountings (id, "Name", "Type", "Parent", "Note", "User", "Account_Code", created_at, updated_at) FROM stdin;
\.


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

COPY public.users_moves (id, "User", "Date", "Time", "Screen", "Type", created_at, updated_at, "Explain", "ScreenEn", "TypeEn", "ExplainEn") FROM stdin;
3054	11	2023-08-30	11:11:31 am	المخازن	اضافه جديده	2023-08-30 11:11:31	2023-08-30 11:11:31	مخزن الطلبات	Stores	New Add	Requests Store
3055	11	2024-02-08	11:01:58 pm	تسجيل الدخول	تسجيل الدخول	2024-02-08 23:01:58	2024-02-08 23:01:58	تسجيل الدخول	Login	Login	Login
3056	11	2024-02-08	11:31:09 pm	اقسام العمل	اضافه جديده	2024-02-08 23:31:09	2024-02-08 23:31:09	الادارة المالية	Work Departments	New Add	Finance Mangement
3057	11	2024-02-08	11:31:55 pm	اقسام العمل	اضافه جديده	2024-02-08 23:31:55	2024-02-08 23:31:55	ادارة المبيعات	Work Departments	New Add	Sales Mangement
3058	11	2024-02-08	11:33:51 pm	اقسام العمل	اضافه جديده	2024-02-08 23:33:51	2024-02-08 23:33:51	ادارة المشتريات	Work Departments	New Add	Purchases Mangement
3059	11	2024-02-08	11:34:20 pm	اقسام العمل	اضافه جديده	2024-02-08 23:34:20	2024-02-08 23:34:20	ادارة التسويق	Work Departments	New Add	Marketing Mangement
3060	11	2024-02-08	11:34:49 pm	اقسام العمل	اضافه جديده	2024-02-08 23:34:49	2024-02-08 23:34:49	ادارة المخازن	Work Departments	New Add	Inventory Mangement
3061	11	2024-02-08	11:35:16 pm	اقسام العمل	اضافه جديده	2024-02-08 23:35:16	2024-02-08 23:35:16	ادارة الموارد البشرية	Work Departments	New Add	HR Mangement
3062	11	2024-02-08	11:35:58 pm	اقسام العمل	اضافه جديده	2024-02-08 23:35:58	2024-02-08 23:35:58	ادارة الانتاج	Work Departments	New Add	Production Mangement
3063	11	2024-02-08	11:37:15 pm	انواع الوظائف	تعديل	2024-02-08 23:37:15	2024-02-08 23:37:15	فني تركيبات	Jobs Type	Edit	Technical
3064	11	2024-02-08	11:38:03 pm	انواع الوظائف	تعديل	2024-02-08 23:38:03	2024-02-08 23:38:03	محاسب	Jobs Type	Edit	Accountant
3065	11	2024-02-08	11:38:20 pm	انواع الوظائف	تعديل	2024-02-08 23:38:20	2024-02-08 23:38:20	مدير الموارد البشرية	Jobs Type	Edit	HR Manager
3066	11	2024-02-08	11:38:40 pm	انواع الوظائف	تعديل	2024-02-08 23:38:40	2024-02-08 23:38:40	مسئول المبيعات	Jobs Type	Edit	Head of Sales
3067	11	2024-02-08	11:38:55 pm	انواع الوظائف	تعديل	2024-02-08 23:38:55	2024-02-08 23:38:55	مهندس التركيبات	Jobs Type	Edit	Technical  Engineer
3068	11	2024-02-08	11:39:12 pm	انواع الوظائف	اضافه جديده	2024-02-08 23:39:12	2024-02-08 23:39:12	مدير	Jobs Type	New Add	Manager
3069	11	2024-02-08	11:42:03 pm	المخازن	حذف	2024-02-08 23:42:03	2024-02-08 23:42:03	Store	Stores	Delete	Store
3070	11	2024-02-08	11:43:55 pm	المخازن	اضافه جديده	2024-02-08 23:43:55	2024-02-08 23:43:55	المخزن الرئيسي	Stores	New Add	Main Store
3071	11	2024-02-08	11:45:50 pm	المخازن	حذف	2024-02-08 23:45:50	2024-02-08 23:45:50	المخزون	Stores	Delete	المخزون
3072	11	2024-02-08	11:52:53 pm	الموظفين	اضافه موظف	2024-02-08 23:52:53	2024-02-08 23:52:53	مندوب مبيعات افتراضي	Employee	New Add	\N
3073	11	2024-02-08	11:53:23 pm	الموظفين	تعديل	2024-02-08 23:53:23	2024-02-08 23:53:23	مندوب مبيعات افتراضي	Employee	Edit	Default Sales
3074	11	2024-02-08	11:54:07 pm	الموظفين	اضافه موظف	2024-02-08 23:54:07	2024-02-08 23:54:07	مندوب مشتريات افتراضي	Employee	New Add	\N
3075	11	2024-02-08	11:54:43 pm	الموظفين	تعديل	2024-02-08 23:54:43	2024-02-08 23:54:43	مندوب مبيعات افتراضي	Employee	Edit	Default Sales
3076	11	2024-02-08	11:55:02 pm	الموظفين	تعديل	2024-02-08 23:55:02	2024-02-08 23:55:02	مندوب مشتريات افتراضي	Employee	Edit	Default Purchaser
3077	11	2024-02-08	11:56:24 pm	الموظفين	اضافه موظف	2024-02-08 23:56:24	2024-02-08 23:56:24	مهندس افتراضي	Employee	New Add	\N
3078	11	2024-02-08	11:57:46 pm	الموظفين	اضافه موظف	2024-02-08 23:57:46	2024-02-08 23:57:46	مندوب توصيل افتراضي	Employee	New Add	\N
3079	11	2024-02-08	11:58:21 pm	الموظفين	اضافه موظف	2024-02-08 23:58:21	2024-02-08 23:58:21	نادل افتراضي	Employee	New Add	\N
3080	11	2024-02-09	12:01:50 am	الموظفين	حذف	2024-02-09 00:01:50	2024-02-09 00:01:50	طيار	Employee	Delete	\N
3081	11	2024-02-09	12:01:58 am	الموظفين	حذف	2024-02-09 00:01:58	2024-02-09 00:01:58	مهندس صيانة	Employee	Delete	\N
3082	11	2024-02-09	12:02:05 am	الموظفين	حذف	2024-02-09 00:02:05	2024-02-09 00:02:05	مندوب مشتريات	Employee	Delete	\N
3083	11	2024-02-09	12:02:57 am	الموظفين	حذف	2024-02-09 00:02:57	2024-02-09 00:02:57	مندوب مبيعات	Employee	Delete	\N
3084	11	2024-02-09	12:08:03 am	العملاء	اضافه جديده	2024-02-09 00:08:03	2024-02-09 00:08:03	عميل افتراضي	Clients	New Add	Default Customer
3085	11	2024-02-09	12:08:40 am	الموردين	اضافه جديده	2024-02-09 00:08:40	2024-02-09 00:08:40	مورد افتراضي	Vendors	New Add	Default Vendor
3086	11	2024-02-09	12:17:43 am	الفروع	تعديل	2024-02-09 00:17:43	2024-02-09 00:17:43	الفرع الرئيسي	Branches	Edit	main Branch
3087	11	2024-02-09	12:18:47 am	الخزائن و البنوك	تعديل	2024-02-09 00:18:47	2024-02-09 00:18:47	الخزينة الرئيسية	Safes and Banks	Edit	Main Safe
3088	11	2024-02-09	12:18:55 am	الخزائن و البنوك	حذف	2024-02-09 00:18:55	2024-02-09 00:18:55	البنك الأهلي	Safes and Banks	Delete	\N
3089	11	2024-02-09	12:20:06 am	الخزائن و البنوك	تعديل	2024-02-09 00:20:06	2024-02-09 00:20:06	البنك الاهلي	Safes and Banks	Edit	SNB
3090	11	2024-02-09	12:20:20 am	العملات	حذف	2024-02-09 00:20:20	2024-02-09 00:20:20	درهم	Coins	Delete	Darhm
3091	11	2024-02-09	12:20:27 am	العملات	حذف	2024-02-09 00:20:27	2024-02-09 00:20:27	دينار	Coins	Delete	Dinar
3092	11	2024-02-09	12:21:32 am	العملات	اضافه جديده	2024-02-09 00:21:32	2024-02-09 00:21:32	دولار	Coins	New Add	دولار
3093	11	2024-02-09	12:21:54 am	العملات	تعديل	2024-02-09 00:21:54	2024-02-09 00:21:54	ريال سعودي	Coins	Edit	SAR
3094	11	2024-02-09	12:22:37 am	انواع الشيكات	تعديل	2024-02-09 00:22:37	2024-02-09 00:22:37	مسطر	Checks Type	Edit 	Underlined
3095	11	2024-02-09	12:22:59 am	مراكز التكلفه	تعديل	2024-02-09 00:22:59	2024-02-09 00:22:59	مركز تكلفة	Cost Centers	Edit	Cost Center
3096	11	2024-02-09	12:23:56 am	وحدات القياس	تعديل	2024-02-09 00:23:56	2024-02-09 00:23:56	قطعة	Measurement Units	Edit	Piece
3097	11	2024-02-09	12:24:05 am	وحدات القياس	تعديل	2024-02-09 00:24:05	2024-02-09 00:24:05	كيلو جرام	Measurement Units	Edit	KG
3098	11	2024-02-09	12:24:43 am	وحدات القياس	اضافه جديده	2024-02-09 00:24:43	2024-02-09 00:24:43	متر	Measurement Units	New Add	Meter
3099	11	2024-02-09	12:24:53 am	مجموعات الاصناف	حذف	2024-02-09 00:24:53	2024-02-09 00:24:53	Jewellry	Items Groups	Delete	\N
3100	11	2024-02-09	12:25:00 am	مجموعات الاصناف	حذف	2024-02-09 00:25:00	2024-02-09 00:25:00	Fashion	Items Groups	Delete	\N
3101	11	2024-02-09	12:25:06 am	مجموعات الاصناف	حذف	2024-02-09 00:25:06	2024-02-09 00:25:06	Shoes	Items Groups	Delete	\N
3102	11	2024-02-09	12:25:11 am	مجموعات الاصناف	حذف	2024-02-09 00:25:11	2024-02-09 00:25:11	Cosmetics	Items Groups	Delete	\N
3103	11	2024-02-09	12:25:17 am	مجموعات الاصناف	حذف	2024-02-09 00:25:17	2024-02-09 00:25:17	Bag	Items Groups	Delete	\N
3104	11	2024-02-09	12:26:06 am	مجموعات الاصناف	تعديل	2024-02-09 00:26:06	2024-02-09 00:26:06	مجموعة عامة	Items Groups	Edit	General Group
3105	11	2024-02-09	12:27:02 am	الماركات	تعديل	2024-02-09 00:27:02	2024-02-09 00:27:02	الماركة الافتراضية	Brands	Edit	Default Brand
3106	11	2024-02-09	12:28:27 am	المتغيرات	تعديل	2024-02-09 00:28:27	2024-02-09 00:28:27	الاحجام	Virables	Edit	Mass
3107	11	2024-02-09	12:28:36 am	المتغيرات	تعديل	2024-02-09 00:28:36	2024-02-09 00:28:36	اللون	Virables	Edit	Colors
3108	11	2024-02-09	12:28:47 am	المتغيرات	تعديل	2024-02-09 00:28:47	2024-02-09 00:28:47	المقاس	Virables	Edit	Sizes
3109	11	2024-02-09	12:29:31 am	المتغيرات الفرعيه	تعديل	2024-02-09 00:29:31	2024-02-09 00:29:31	128G	Sub Virables	Edit	128G
3110	11	2024-02-09	12:29:41 am	المتغيرات الفرعيه	تعديل	2024-02-09 00:29:41	2024-02-09 00:29:41	256G	Sub Virables	Edit	256G
3111	11	2024-02-09	12:29:51 am	المتغيرات الفرعيه	تعديل	2024-02-09 00:29:51	2024-02-09 00:29:51	64G	Sub Virables	Edit	64G
3112	11	2024-02-09	12:30:14 am	المتغيرات الفرعيه	تعديل	2024-02-09 00:30:14	2024-02-09 00:30:14	احمر	Sub Virables	Edit	Red
3113	11	2024-02-09	12:30:24 am	المتغيرات الفرعيه	تعديل	2024-02-09 00:30:24	2024-02-09 00:30:24	ازرق	Sub Virables	Edit	Blue
3114	11	2024-02-09	12:30:33 am	المتغيرات الفرعيه	تعديل	2024-02-09 00:30:33	2024-02-09 00:30:33	اسود	Sub Virables	Edit	Black
3115	11	2024-02-09	12:31:49 am	المتغيرات الفرعيه	تعديل	2024-02-09 00:31:49	2024-02-09 00:31:49	لارج	Sub Virables	Edit	L
3116	11	2024-02-09	12:32:24 am	المتغيرات الفرعيه	تعديل	2024-02-09 00:32:24	2024-02-09 00:32:24	سمال	Sub Virables	Edit	S
3117	11	2024-02-09	12:32:39 am	المتغيرات الفرعيه	تعديل	2024-02-09 00:32:39	2024-02-09 00:32:39	ميديم	Sub Virables	Edit	M
3118	11	2024-02-09	12:34:34 am	انواع الاشتراكات	اضافه جديده	2024-02-09 00:34:34	2024-02-09 00:34:34	شهري	Subscribe Types	New Add	Monthly
3119	11	2024-02-09	12:34:59 am	انواع الاشتراكات	اضافه جديده	2024-02-09 00:34:59	2024-02-09 00:34:59	ربع سنوي	Subscribe Types	New Add	Quarter Half
3120	11	2024-02-09	12:36:25 am	انواع الاشتراكات	تعديل	2024-02-09 00:36:25	2024-02-09 00:36:25	ربع سنوي	Subscribe Types	Edit	Quarterly
3121	11	2024-02-09	12:37:01 am	انواع الاشتراكات	اضافه جديده	2024-02-09 00:37:01	2024-02-09 00:37:01	نصف سنوي	Subscribe Types	New Add	Mideterm
3122	11	2024-02-09	12:37:29 am	انواع الاشتراكات	اضافه جديده	2024-02-09 00:37:29	2024-02-09 00:37:29	سنوي	Subscribe Types	New Add	Annual
3123	11	2024-02-09	12:39:33 am	الضرائب	تعديل	2024-02-09 00:39:33	2024-02-09 00:39:33	القيمه المضافه	Taxes	Edit	VAT
3124	11	2024-02-09	12:40:47 am	الضرائب	تعديل	2024-02-09 00:40:47	2024-02-09 00:40:47	القيمه المضافة	Taxes	Edit	VAT
3125	11	2024-02-09	12:41:56 am	شركات الشحن	اضافه جديده	2024-02-09 00:41:56	2024-02-09 00:41:56	زاجل	Shipping Compaines	New Add	Zagel
3126	11	2024-02-09	12:42:34 am	اعدادات طباعه الباركود	تعديل	2024-02-09 00:42:34	2024-02-09 00:42:34	2	Barcode Printing Settings	Edit	2
3127	11	2024-02-09	12:49:15 am	انواع المقابلات	تعديل	2024-02-09 00:49:15	2024-02-09 00:49:15	المكتب	Interviews Types	Edit	Office
3128	11	2024-02-09	12:49:35 am	انواع المقابلات	تعديل	2024-02-09 00:49:35	2024-02-09 00:49:35	تحصيل	Interviews Types	Edit	Collect
3129	11	2024-02-09	12:49:48 am	انواع المقابلات	تعديل	2024-02-09 00:49:48	2024-02-09 00:49:48	تليفونيا	Interviews Types	Edit	Phone
3130	11	2024-02-09	12:50:01 am	انواع المقابلات	تعديل	2024-02-09 00:50:01	2024-02-09 00:50:01	عرض سعر	Interviews Types	Edit	Quotation
3131	11	2024-02-09	12:50:32 am	انواع المقابلات	تعديل	2024-02-09 00:50:32	2024-02-09 00:50:32	لدي العميل	Interviews Types	Edit	at Customer Place
3132	11	2024-02-09	12:50:44 am	انواع المقابلات	تعديل	2024-02-09 00:50:44	2024-02-09 00:50:44	واتس اب	Interviews Types	Edit	Whatsapp
3133	11	2024-02-09	12:51:17 am	المنصات	تعديل	2024-02-09 00:51:17	2024-02-09 00:51:17	فيس بوك	Platforms	Edit	Facebook
3134	11	2024-02-09	12:51:37 am	الحملات	تعديل	2024-02-09 00:51:37	2024-02-09 00:51:37	حملة 2024	Campaigns	Edit	حملة 2024
3135	11	2024-02-09	12:51:55 am	حالات العملاء	تعديل	2024-02-09 00:51:55	2024-02-09 00:51:55	عميل مهم	Clients Status	Edit	VIP
3136	11	2024-02-09	12:52:05 am	حالات العملاء	تعديل	2024-02-09 00:52:05	2024-02-09 00:52:05	محتمل	Clients Status	Edit	Perhabs
3137	11	2024-02-09	12:52:13 am	حالات العملاء	تعديل	2024-02-09 00:52:13	2024-02-09 00:52:13	محتمل	Clients Status	Edit	Perhaps
3138	11	2024-02-09	12:52:30 am	النشاطات	تعديل	2024-02-09 00:52:30	2024-02-09 00:52:30	تجاري	Activites	Edit	Commercial
3139	11	2024-02-09	12:53:35 am	الدول	تعديل	2024-02-09 00:53:35	2024-02-09 00:53:35	مصر	Countris	Edit	Egypt
3140	11	2024-02-09	12:53:46 am	الدول	تعديل	2024-02-09 00:53:46	2024-02-09 00:53:46	السعوديه	Countris	Edit	Saudi Arabia
3141	11	2024-02-09	12:54:31 am	المدن	حذف	2024-02-09 00:54:31	2024-02-09 00:54:31	شرم الشيخ	City	Delete	شرم الشيخ
3142	11	2024-02-09	12:54:37 am	المدن	حذف	2024-02-09 00:54:37	2024-02-09 00:54:37	دهب	City	Delete	دهب
3143	11	2024-02-09	12:54:41 am	المدن	حذف	2024-02-09 00:54:41	2024-02-09 00:54:41	الطور	City	Delete	الطور
3144	11	2024-02-09	12:54:52 am	المحافظات	حذف	2024-02-09 00:54:52	2024-02-09 00:54:52	جنوب سيناء	Governrate	Delete	جنوب سيناء
3145	11	2024-02-09	12:55:11 am	المدن	حذف	2024-02-09 00:55:11	2024-02-09 00:55:11	Nasr City	City	Delete	Nasr City
3146	11	2024-02-09	12:56:06 am	المدن	حذف	2024-02-09 00:56:06	2024-02-09 00:56:06	Maadi	City	Delete	Maadi
3147	11	2024-02-09	12:56:16 am	المحافظات	حذف	2024-02-09 00:56:16	2024-02-09 00:56:16	القاهره	Governrate	Delete	القاهره
3148	11	2024-02-09	12:56:49 am	المدن	اضافه جديده	2024-02-09 00:56:49	2024-02-09 00:56:49	الرياض	City	New Add	Riyadh
3149	11	2024-02-09	12:57:13 am	المناطق	اضافه جديده	2024-02-09 00:57:13	2024-02-09 00:57:13	العليا	Places	New Add	Oliya
3150	11	2024-02-09	12:57:40 am	المحافظات	تعديل	2024-02-09 00:57:40	2024-02-09 00:57:40	القاهرة	Governrate	Edit	Cairo
3151	11	2024-02-09	12:57:52 am	المدن	حذف	2024-02-09 00:57:52	2024-02-09 00:57:52	Zamalek	City	Delete	Zamalek
3152	11	2024-02-09	12:58:24 am	المدن	تعديل	2024-02-09 00:58:24	2024-02-09 00:58:24	مدينة نصر	City	Edit	Nasr City
3153	11	2024-02-09	12:58:59 am	المناطق	اضافه جديده	2024-02-09 00:58:59	2024-02-09 00:58:59	اول مكرم	Places	New Add	Makrm Obied
3154	11	2024-02-09	12:59:24 am	الطاولات	حذف	2024-02-09 00:59:24	2024-02-09 00:59:24	New Table	Tables	Delete	New Table
3155	11	2024-02-09	12:59:31 am	الطاولات	حذف	2024-02-09 00:59:31	2024-02-09 00:59:31	Table 3	Tables	Delete	Table3
3156	11	2024-02-09	12:59:37 am	الطاولات	حذف	2024-02-09 00:59:37	2024-02-09 00:59:37	Table 2	Tables	Delete	Table 2
3157	11	2024-02-09	01:00:23 am	انواع الغرف	تعديل	2024-02-09 01:00:23	2024-02-09 01:00:23	غرفة افتراضية	Rooms Type	Edit	Default Room
3158	11	2024-02-09	01:02:09 am	صالات التصنيع	تعديل	2024-02-09 01:02:09	2024-02-09 01:02:09	صالة افتراضية	Manufacturing Halls	Edit	Hall Default
3159	11	2024-02-09	01:02:49 am	الشركات المصنعه	حذف	2024-02-09 01:02:49	2024-02-09 01:02:49	Shoes	Manufacture Company	Delte	Shoes
3160	11	2024-02-09	01:02:55 am	الشركات المصنعه	حذف	2024-02-09 01:02:55	2024-02-09 01:02:55	Jewellry	Manufacture Company	Delte	Jewellry
3161	11	2024-02-09	01:03:00 am	الشركات المصنعه	حذف	2024-02-09 01:03:00	2024-02-09 01:03:00	Fashion	Manufacture Company	Delte	Fashion
3162	11	2024-02-09	01:03:06 am	الشركات المصنعه	حذف	2024-02-09 01:03:06	2024-02-09 01:03:06	Cosmetics	Manufacture Company	Delte	Cosmetics
3163	11	2024-02-09	01:03:11 am	الشركات المصنعه	حذف	2024-02-09 01:03:11	2024-02-09 01:03:11	Bag	Manufacture Company	Delte	Bag
3164	11	2024-02-09	01:03:16 am	الشركات المصنعه	حذف	2024-02-09 01:03:16	2024-02-09 01:03:16	Accessories	Manufacture Company	Delte	Accessories
3165	11	2024-02-09	01:03:45 am	الشركات المصنعه	تعديل	2024-02-09 01:03:45	2024-02-09 01:03:45	الشركة الافتراضية	Manufacture Company	Edit	Default Company
3166	11	2024-02-09	01:03:55 am	انواع الاجهزه	حذف	2024-02-09 01:03:55	2024-02-09 01:03:55	Note44	Devices Types	Delete	Note44
3167	11	2024-02-09	01:04:29 am	اسباب الرفض	اضافه جديده	2024-02-09 01:04:29	2024-02-09 01:04:29	سبب افتراضي	Refuse Reasons	New Add	Default Reason
3168	11	2024-02-09	01:04:51 am	حالات الاجهزه	تعديل	2024-02-09 01:04:51	2024-02-09 01:04:51	جديد	Desvice Cases	Edit	New
3169	11	2024-02-09	01:05:29 am	شروط و احكام الصيانه	تحديث	2024-02-09 01:05:29	2024-02-09 01:05:29	تحديث	Terms Maintaince	Update	Update
3170	11	2024-02-09	01:08:23 am	انواع الشحن	تعديل	2024-02-09 01:08:23	2024-02-09 01:08:23	شحنة افتراضية	Shipping Type	Edit	Default Shipping
3171	11	2024-02-09	01:10:16 am	حالات الشحن	تعديل	2024-02-09 01:10:16	2024-02-09 01:10:16	تامة	Shipping Status	Edit	Done
3172	11	2024-02-09	01:54:53 am	تسجيل الدخول	تسجيل الدخول	2024-02-09 01:54:53	2024-02-09 01:54:53	تسجيل الدخول	Login	Login	Login
3173	11	2024-02-09	02:24:01 am	تسجيل الدخول	تسجيل الدخول	2024-02-09 02:24:01	2024-02-09 02:24:01	تسجيل الدخول	Login	Login	Login
3174	11	2024-02-14	11:09:20 pm	الموردين	حذف	2024-02-14 23:09:20	2024-02-14 23:09:20	مورد نقدي	Vendors	Delete	\N
3175	11	2024-02-14	11:10:57 pm	الضرائب	تعديل	2024-02-14 23:10:57	2024-02-14 23:10:57	القيمة المضافة	Taxes	Edit	VAT
3176	11	2024-02-14	11:12:23 pm	الدليل المحاسبي	تعديل	2024-02-14 23:12:23	2024-02-14 23:12:23	مجمع الاهلاك	Accounting Manual	Edit	Asset Depreciation Accumulator
3177	11	2024-02-14	11:13:11 pm	الدليل المحاسبي	اضافه جديده	2024-02-14 23:13:11	2024-02-14 23:13:11	مجمع اهلاك الاثاث المكتبي	Accounting_Manual	New Add	مجمع اهلاك الاثاث المكتبي
3178	11	2024-02-14	11:13:50 pm	الدليل المحاسبي	تعديل	2024-02-14 23:13:50	2024-02-14 23:13:50	مصروفات الاهلاك	Accounting Manual	Edit	Depreciation
3179	11	2024-02-14	11:14:32 pm	الدليل المحاسبي	تعديل	2024-02-14 23:14:32	2024-02-14 23:14:32	مصروف اهلاك الاثاث المكتبي	Accounting Manual	Edit	New Depreciation
3180	11	2024-02-14	11:15:25 pm	الدليل المحاسبي	تعديل	2024-02-14 23:15:25	2024-02-14 23:15:25	ايراد مصنعية	Accounting Manual	Edit	Manufacturing Revenue
3181	11	2024-02-14	11:15:43 pm	الدليل المحاسبي	تعديل	2024-02-14 23:15:43	2024-02-14 23:15:43	ايردات رسوم الخدمة	Accounting Manual	Edit	Service Charges Revenues
3182	11	2024-02-25	06:01:28 pm	تسجيل الدخول	تسجيل الدخول	2024-02-25 18:01:28	2024-02-25 18:01:28	تسجيل الدخول	Login	Login	Login
3183	11	2024-11-05	12:49:01 pm	الدليل المحاسبي	اضافه جديده	2024-11-05 12:49:01	2024-11-05 12:49:01	المستثمرين	Accounting Manual	New Add	Investors
3184	11	2024-11-05	12:49:22 pm	الدليل المحاسبي	اضافه جديده	2024-11-05 12:49:22	2024-11-05 12:49:22	استحقاق مستثمرين	Accounting Manual	New Add	Investors' Eligibility
3185	11	2024-11-05	12:49:39 pm	الدليل المحاسبي	اضافه جديده	2024-11-05 12:49:39	2024-11-05 12:49:39	مصروفات ارباح مستثمرين	Accounting Manual	New Add	Investors' Dividend Expenses
3186	11	2024-11-13	08:56:22 am	الدليل المحاسبي	تعديل	2024-11-13 08:56:22	2024-11-13 08:56:22	مصروفات ارباح مستثمرين	Accounting Manual	Edit	Investors' Dividend Expenses
3187	11	2024-11-18	10:22:11 am	تسجيل الدخول	تسجيل الدخول	2024-11-18 10:22:11	2024-11-18 10:22:11	تسجيل الدخول	Login	Login	Login
3188	11	2024-12-04	09:05:36 pm	تسجيل الدخول	تسجيل الدخول	2024-12-04 21:05:36	2024-12-04 21:05:36	تسجيل الدخول	Login	Login	Login
3189	11	2025-02-19	02:49:54 pm	الدليل المحاسبي	اضافه جديده	2025-02-19 14:49:54	2025-02-19 14:49:54	مصاريف مشاريع	Accounting Manual	New Add	مصاريف مشاريع
3190	11	2025-03-09	01:19:33 pm	الدليل المحاسبي	اضافه جديده	2025-03-09 13:19:33	2025-03-09 13:19:33	استحقاق المقاولين	Accounting Manual	New Add	استحقاق المقاولين
3191	11	2025-04-25	01:47:49 pm	تسجيل الدخول	تسجيل الدخول	2025-04-25 13:47:49	2025-04-25 13:47:49	تسجيل الدخول	Login	Login	Login
3192	11	2025-04-25	01:48:29 pm	الدليل المحاسبي	اضافه جديده	2025-04-25 13:48:29	2025-04-25 13:48:29	تطبيقات التوصيل	Accounting Manual	New Add	Delivery App
3193	59	2025-07-16	01:53:35 pm	تسجيل الدخول	تسجيل الدخول	2025-07-16 13:53:35	2025-07-16 13:53:35	تسجيل الدخول	Login	Login	Login
3194	11	2025-08-21	06:50:32 am	الدليل المحاسبي	اضافه جديده	2025-08-21 06:50:32	2025-08-21 06:50:32	مصاريف السيارات	Accounting Manual	New Add	مصاريف السيارات
3195	11	2025-08-22	06:27:51 pm	الدليل المحاسبي	اضافه جديده	2025-08-22 18:27:51	2025-08-22 18:27:51	استحقاق سيارات الشحن	Accounting Manual	New Add	استحقاق سيارات الشحن
3196	11	2025-08-22	06:48:23 pm	الدليل المحاسبي	اضافه جديده	2025-08-22 18:48:23	2025-08-22 18:48:23	مصاريف الشحنة	Accounting Manual	New Add	مصاريف الشحنة
3197	11	2025-12-19	04:52:08 pm	الدليل المحاسبي	اضافه جديده	2025-12-19 16:52:08	2025-12-19 16:52:08	مقاولين النقل	Accounting Manual	New Add	Transport Contractors
3198	11	2025-12-20	06:37:20 pm	حالات المشاريع	اضافه جديده	2025-12-20 18:37:20	2025-12-20 18:37:20	Defaukt	Project Status	New Add	Defaukt
3199	11	2025-12-20	06:37:26 pm	حالات العقود	اضافه جديده	2025-12-20 18:37:26	2025-12-20 18:37:26	Defaukt	Contract Status	New Add	Defaukt
3200	11	2026-01-14	12:22:21 pm	تصنيفات الشحنات	اضافه جديده	2026-01-14 12:22:21	2026-01-14 12:22:21	Default	Shipping Categories	New Add	Default
3201	11	2026-01-16	02:58:55 pm	تسجيل الدخول	تسجيل الدخول	2026-01-16 14:58:55	2026-01-16 14:58:55	تسجيل الدخول	Login	Login	Login
3202	11	2026-03-09	08:39:26 am	تسجيل الدخول	تسجيل الدخول	2026-03-09 08:39:26	2026-03-09 08:39:26	تسجيل الدخول	Login	Login	Login
3203	11	2026-04-06	10:20:04 pm	الدليل المحاسبي	اضافه جديده	2026-04-06 22:20:04	2026-04-06 22:20:04	الإعتمادات المستندية	Accounting Manual	New Add	Documentary Credits
3204	11	2026-04-20	11:22:46 am	الدليل المحاسبي	اضافه جديده	2026-04-20 11:22:46	2026-04-20 11:22:46	مصاريف العقارات	Accounting Manual	New Add	Real State Expenses
3205	11	2026-04-20	11:23:11 am	الدليل المحاسبي	اضافه جديده	2026-04-20 11:23:11	2026-04-20 11:23:11	ملاك العقارات	Accounting Manual	New Add	Real State Owners
3206	11	2026-04-20	11:23:29 am	الدليل المحاسبي	اضافه جديده	2026-04-20 11:23:29	2026-04-20 11:23:29	مصاريف الوحدات	Accounting Manual	New Add	Real State Units
3207	11	2026-04-23	08:48:56 am	تسجيل الدخول	تسجيل الدخول	2026-04-23 08:48:56	2026-04-23 08:48:56	تسجيل الدخول	Login	Login	Login
3208	11	2026-04-24	08:52:27 am	الدليل المحاسبي	اضافه جديده	2026-04-24 08:52:27	2026-04-24 08:52:27	تأمينات العقارات	Accounting Manual	New Add	تأمينات العقارات
3209	11	2026-05-22	12:48:18 pm	تسجيل الدخول	تسجيل الدخول	2026-05-22 12:48:18	2026-05-22 12:48:18	تسجيل الدخول	Login	Login	Login
3210	11	2026-05-22	12:49:48 pm	تسجيل الدخول	تسجيل الدخول	2026-05-22 12:49:48	2026-05-22 12:49:48	تسجيل الدخول	Login	Login	Login
\.


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

COPY public.v_a_prices (id, "Price", "MainV", "SubV", "Product", created_at, updated_at, "Offer_Price", "Added", "VAProductID") FROM stdin;
\.


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

COPY public.v_a_products (id, "Product_Code", "P_Ar_Name", "P_En_Name", "Unit", "Product", "ProductID", created_at, updated_at) FROM stdin;
\.


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

COPY public.v_a_qties (id, "Qty", "MainV", "SubV", "Product", "ProductID", "VAProductID", created_at, updated_at) FROM stdin;
\.


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

COPY public.vendor_account_statement_column_sechdules (id, "Date", "Code", "Time", "Refrence_Number", "Branch", "Store", "Payment_Method", "Safe", "Type", "Shipping", "Cost_Center", "User", "Coin", "Due_Date", "Delegate", "Note", "Total_Return", "Total_Price", "Total_Discount", "Total_Tax", "Total_Net", "Paid", "Residual", "Vendor", created_at, updated_at, "ShiftCode", "Executor") FROM stdin;
1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	\N	2022-10-16 22:57:39	1	1
\.


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

COPY public.vendor_account_statement_columns (id, "Date", "Code", "Time", "Refrence_Number", "Branch", "Store", "Payment_Method", "Safe", "Type", "Shipping", "Cost_Center", "User", "Coin", "Due_Date", "Delegate", "Note", "Total_Return", "Total_Price", "Total_Discount", "Total_Tax", "Total_Net", "Paid", "Residual", "Vendor", created_at, updated_at, "ShiftCode", "Executor") FROM stdin;
1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	\N	2022-10-16 22:39:00	1	1
\.


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

COPY public.vendor_filters (id, "Product", "Code", "Name", "VName", "VVName", "V1", "V2", "Qty", "Price", "Total", "Vendor", created_at, updated_at) FROM stdin;
\.


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

COPY public.vendor_products (id, "Product_Name", "Product_Weight", "Product_Height", "Product_Length", "Product_Width", "Qty", "Price", "Vendor", created_at, updated_at) FROM stdin;
\.


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

COPY public.vendors (id, "Code", "Name", "Phone", "Phone2", "Commercial_Register", "Tax_Card", "Price_Level", "Account", "User", arr, created_at, updated_at, "Tax_Registration_Number", "Tax_activity_code", work_nature, "Buliding_Num", "Street", "Postal_Code", tax_magistrate, "Floor", "Room", "Landmark", "Add_Info", "City", "Place", "Nationality", "Responsible", "Pro_Group", "Brand", "Governrate", "NameEn", "SearchCode", "Credit_Limit", "Monthly_Target", "Quarterly_Target", "Yearly_Target") FROM stdin;
21	3	مورد افتراضي	\N	\N	\N	\N	1	2523	11	\N	2024-02-09 00:08:40	2024-02-09 00:08:40	\N	\N	P	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	2	\N	\N	\N	\N	Default Vendor	\N	\N	0	0	0
\.


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

COPY public.vendors_statements_column_sechdules (id, "Account_Code", "Account_Name", "Debiator_Before", "Creditor_Before", "Total_Debitor", "Total_Creditor", "Debitor_Balance", "Creditor_Balance", created_at, updated_at) FROM stdin;
1	1	1	1	1	1	1	1	1	\N	2022-10-17 13:41:51
\.


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

COPY public.vendors_statements_columns (id, "Account_Code", "Account_Name", "Debiator_Before", "Creditor_Before", "Total_Debitor", "Total_Creditor", "Debitor_Balance", "Creditor_Balance", created_at, updated_at) FROM stdin;
1	1	1	1	1	1	1	1	1	\N	2022-10-17 13:37:07
\.


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

COPY public.virables (id, "Name", created_at, updated_at, "NameEn") FROM stdin;
9	الاحجام	2022-06-09 05:43:36	2024-02-09 00:28:27	Mass
7	اللون	2022-06-09 05:43:15	2024-02-09 00:28:36	Colors
8	المقاس	2022-06-09 05:43:25	2024-02-09 00:28:47	Sizes
\.


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

COPY public.vouchers (id, "Draw", "Coin", "Safe", "Debitor", "Creditor", "Account", "Statement", created_at, updated_at) FROM stdin;
\.


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

COPY public.web_sliders (id, "Status", "Arabic_Title", "English_Title", "Arabic_Desc", "English_Desc", "Image", created_at, updated_at, "Type") FROM stdin;
1	1	Summer Collection	Summer Collection	Save up to 50% off this weekend only	Save up to 50% off this weekend only	WebsliderImages/czgHJHQGxcvN5PiOVpcI.jpg	2022-06-04 15:02:30	2022-06-04 15:08:49	\N
2	1	Summer Collection	Summer Collection	Save up to 50% off this weekend only	Save up to 50% off this weekend only	WebsliderImages/jNWN8Al6hKgKjhWR2xVE.jpg	2022-06-04 15:09:13	2022-06-04 15:09:13	\N
\.


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

COPY public.wishlists (id, "Product", "User", created_at, updated_at) FROM stdin;
\.


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

COPY public.work_departments (id, "Arabic_Name", "English_Name", created_at, updated_at, "Parent", "Budget") FROM stdin;
6	رئيس مجلس الاداره	Chairman of Board of Directors	2022-04-13 02:49:57	2022-04-13 02:49:57	0	\N
20	الادارة المالية	Finance Mangement	2024-02-08 23:31:09	2024-02-08 23:31:09	6	0
21	ادارة المبيعات	Sales Mangement	2024-02-08 23:31:55	2024-02-08 23:31:55	6	0
22	ادارة المشتريات	Purchases Mangement	2024-02-08 23:33:51	2024-02-08 23:33:51	6	0
23	ادارة التسويق	Marketing Mangement	2024-02-08 23:34:20	2024-02-08 23:34:20	6	0
24	ادارة المخازن	Inventory Mangement	2024-02-08 23:34:49	2024-02-08 23:34:49	6	0
25	ادارة الموارد البشرية	HR Mangement	2024-02-08 23:35:16	2024-02-08 23:35:16	6	0
26	ادارة الانتاج	Production Mangement	2024-02-08 23:35:58	2024-02-08 23:35:58	6	0
\.


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

COPY public.workers_sales_petrols (id, "Worker", "SalesPetrol", created_at, updated_at) FROM stdin;
\.


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

COPY public.zkteco_devices (id, ip, port, model_name, status, created_at, updated_at) FROM stdin;
\.



--
-- Name: a_v_pro_check_qties a_v_pro_check_qties_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.a_v_pro_check_qties
    ADD CONSTRAINT a_v_pro_check_qties_pkey PRIMARY KEY (id);


--
-- Name: abouts abouts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.abouts
    ADD CONSTRAINT abouts_pkey PRIMARY KEY (id);


--
-- Name: abstracts_contractors abstracts_contractors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.abstracts_contractors
    ADD CONSTRAINT abstracts_contractors_pkey PRIMARY KEY (id);


--
-- Name: acccounting_manuals acccounting_manuals_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acccounting_manuals
    ADD CONSTRAINT acccounting_manuals_pkey PRIMARY KEY (id);


--
-- Name: accounts_default_data accounts_default_data_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.accounts_default_data
    ADD CONSTRAINT accounts_default_data_pkey PRIMARY KEY (id);


--
-- Name: activites activites_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.activites
    ADD CONSTRAINT activites_pkey PRIMARY KEY (id);


--
-- Name: add_translates add_translates_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.add_translates
    ADD CONSTRAINT add_translates_pkey PRIMARY KEY (id);


--
-- Name: additional_products additional_products_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.additional_products
    ADD CONSTRAINT additional_products_pkey PRIMARY KEY (id);


--
-- Name: addressses addressses_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.addressses
    ADD CONSTRAINT addressses_pkey PRIMARY KEY (id);


--
-- Name: all_groups all_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.all_groups
    ADD CONSTRAINT all_groups_pkey PRIMARY KEY (id);


--
-- Name: allowences_emps allowences_emps_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.allowences_emps
    ADD CONSTRAINT allowences_emps_pkey PRIMARY KEY (id);


--
-- Name: apps_change_prices apps_change_prices_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.apps_change_prices
    ADD CONSTRAINT apps_change_prices_pkey PRIMARY KEY (id);


--
-- Name: articles articles_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.articles
    ADD CONSTRAINT articles_pkey PRIMARY KEY (id);


--
-- Name: assay_bill_details assay_bill_details_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assay_bill_details
    ADD CONSTRAINT assay_bill_details_pkey PRIMARY KEY (id);


--
-- Name: assay_bills assay_bills_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assay_bills
    ADD CONSTRAINT assay_bills_pkey PRIMARY KEY (id);


--
-- Name: assay_project_details assay_project_details_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assay_project_details
    ADD CONSTRAINT assay_project_details_pkey PRIMARY KEY (id);


--
-- Name: assay_projects assay_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assay_projects
    ADD CONSTRAINT assay_projects_pkey PRIMARY KEY (id);


--
-- Name: assembly_products assembly_products_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assembly_products
    ADD CONSTRAINT assembly_products_pkey PRIMARY KEY (id);


--
-- Name: assets_expenses assets_expenses_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assets_expenses
    ADD CONSTRAINT assets_expenses_pkey PRIMARY KEY (id);


--
-- Name: assets assets_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assets
    ADD CONSTRAINT assets_pkey PRIMARY KEY (id);


--
-- Name: attend_departure_import attend_departure_import_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.attend_departure_import
    ADD CONSTRAINT attend_departure_import_pkey PRIMARY KEY (id);


--
-- Name: attendance_emps attendance_emps_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.attendance_emps
    ADD CONSTRAINT attendance_emps_pkey PRIMARY KEY (id);


--
-- Name: attendances attendances_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.attendances
    ADD CONSTRAINT attendances_pkey PRIMARY KEY (id);


--
-- Name: attendence_policy_emps attendence_policy_emps_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.attendence_policy_emps
    ADD CONSTRAINT attendence_policy_emps_pkey PRIMARY KEY (id);


--
-- Name: barcode_products barcode_products_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.barcode_products
    ADD CONSTRAINT barcode_products_pkey PRIMARY KEY (id);


--
-- Name: barcode_settings barcode_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.barcode_settings
    ADD CONSTRAINT barcode_settings_pkey PRIMARY KEY (id);


--
-- Name: barcode_shows barcode_shows_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.barcode_shows
    ADD CONSTRAINT barcode_shows_pkey PRIMARY KEY (id);


--
-- Name: befroe_footers befroe_footers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.befroe_footers
    ADD CONSTRAINT befroe_footers_pkey PRIMARY KEY (id);


--
-- Name: beneftis_types beneftis_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.beneftis_types
    ADD CONSTRAINT beneftis_types_pkey PRIMARY KEY (id);


--
-- Name: bones_sales_petrols bones_sales_petrols_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bones_sales_petrols
    ADD CONSTRAINT bones_sales_petrols_pkey PRIMARY KEY (id);


--
-- Name: bones_types bones_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bones_types
    ADD CONSTRAINT bones_types_pkey PRIMARY KEY (id);


--
-- Name: borrowas borrowas_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.borrowas
    ADD CONSTRAINT borrowas_pkey PRIMARY KEY (id);


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

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


--
-- Name: brands brands_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.brands
    ADD CONSTRAINT brands_pkey PRIMARY KEY (id);


--
-- Name: campaigns campaigns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaigns
    ADD CONSTRAINT campaigns_pkey PRIMARY KEY (id);


--
-- Name: capital_increases capital_increases_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.capital_increases
    ADD CONSTRAINT capital_increases_pkey PRIMARY KEY (id);


--
-- Name: capitals capitals_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.capitals
    ADD CONSTRAINT capitals_pkey PRIMARY KEY (id);


--
-- Name: car_shippings car_shippings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.car_shippings
    ADD CONSTRAINT car_shippings_pkey PRIMARY KEY (id);


--
-- Name: cars_sales_petrols cars_sales_petrols_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cars_sales_petrols
    ADD CONSTRAINT cars_sales_petrols_pkey PRIMARY KEY (id);


--
-- Name: cart_stores cart_stores_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cart_stores
    ADD CONSTRAINT cart_stores_pkey PRIMARY KEY (id);


--
-- Name: catalog_requests catalog_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.catalog_requests
    ADD CONSTRAINT catalog_requests_pkey PRIMARY KEY (id);


--
-- Name: chat_issues chat_issues_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.chat_issues
    ADD CONSTRAINT chat_issues_pkey PRIMARY KEY (id);


--
-- Name: checks_types checks_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.checks_types
    ADD CONSTRAINT checks_types_pkey PRIMARY KEY (id);


--
-- Name: cities cities_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cities
    ADD CONSTRAINT cities_pkey PRIMARY KEY (id);


--
-- Name: clearances clearances_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clearances
    ADD CONSTRAINT clearances_pkey PRIMARY KEY (id);


--
-- Name: client_account_statement_column_sechdules client_account_statement_column_sechdules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.client_account_statement_column_sechdules
    ADD CONSTRAINT client_account_statement_column_sechdules_pkey PRIMARY KEY (id);


--
-- Name: client_account_statement_columns client_account_statement_columns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.client_account_statement_columns
    ADD CONSTRAINT client_account_statement_columns_pkey PRIMARY KEY (id);


--
-- Name: client_filters client_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.client_filters
    ADD CONSTRAINT client_filters_pkey PRIMARY KEY (id);


--
-- Name: client_requests client_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.client_requests
    ADD CONSTRAINT client_requests_pkey PRIMARY KEY (id);


--
-- Name: client_sales_petrols client_sales_petrols_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.client_sales_petrols
    ADD CONSTRAINT client_sales_petrols_pkey PRIMARY KEY (id);


--
-- Name: client_statuses client_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.client_statuses
    ADD CONSTRAINT client_statuses_pkey PRIMARY KEY (id);


--
-- Name: clients_statements_column_sechdules clients_statements_column_sechdules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clients_statements_column_sechdules
    ADD CONSTRAINT clients_statements_column_sechdules_pkey PRIMARY KEY (id);


--
-- Name: clients_statements_columns clients_statements_columns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clients_statements_columns
    ADD CONSTRAINT clients_statements_columns_pkey PRIMARY KEY (id);


--
-- Name: coins coins_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.coins
    ADD CONSTRAINT coins_pkey PRIMARY KEY (id);


--
-- Name: comments_clients comments_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.comments_clients
    ADD CONSTRAINT comments_clients_pkey PRIMARY KEY (id);


--
-- Name: comments comments_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.comments
    ADD CONSTRAINT comments_pkey PRIMARY KEY (id);


--
-- Name: company_cars company_cars_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.company_cars
    ADD CONSTRAINT company_cars_pkey PRIMARY KEY (id);


--
-- Name: compare_prices_columns compare_prices_columns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.compare_prices_columns
    ADD CONSTRAINT compare_prices_columns_pkey PRIMARY KEY (id);


--
-- Name: compare_prices_columns_sechdules compare_prices_columns_sechdules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.compare_prices_columns_sechdules
    ADD CONSTRAINT compare_prices_columns_sechdules_pkey PRIMARY KEY (id);


--
-- Name: compare_prices_filter_twos compare_prices_filter_twos_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.compare_prices_filter_twos
    ADD CONSTRAINT compare_prices_filter_twos_pkey PRIMARY KEY (id);


--
-- Name: compare_prices_filters compare_prices_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.compare_prices_filters
    ADD CONSTRAINT compare_prices_filters_pkey PRIMARY KEY (id);


--
-- Name: compares compares_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.compares
    ADD CONSTRAINT compares_pkey PRIMARY KEY (id);


--
-- Name: competitors competitors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.competitors
    ADD CONSTRAINT competitors_pkey PRIMARY KEY (id);


--
-- Name: consist_maintainces consist_maintainces_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.consist_maintainces
    ADD CONSTRAINT consist_maintainces_pkey PRIMARY KEY (id);


--
-- Name: consists consists_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.consists
    ADD CONSTRAINT consists_pkey PRIMARY KEY (id);


--
-- Name: contact_u_s contact_u_s_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contact_u_s
    ADD CONSTRAINT contact_u_s_pkey PRIMARY KEY (id);


--
-- Name: contract_statuses contract_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contract_statuses
    ADD CONSTRAINT contract_statuses_pkey PRIMARY KEY (id);


--
-- Name: contractors_real_projects contractors_real_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contractors_real_projects
    ADD CONSTRAINT contractors_real_projects_pkey PRIMARY KEY (id);


--
-- Name: cost_centers cost_centers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cost_centers
    ADD CONSTRAINT cost_centers_pkey PRIMARY KEY (id);


--
-- Name: counters_types counters_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.counters_types
    ADD CONSTRAINT counters_types_pkey PRIMARY KEY (id);


--
-- Name: countris countris_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.countris
    ADD CONSTRAINT countris_pkey PRIMARY KEY (id);


--
-- Name: coupon_codes coupon_codes_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.coupon_codes
    ADD CONSTRAINT coupon_codes_pkey PRIMARY KEY (id);


--
-- Name: courses_categories courses_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.courses_categories
    ADD CONSTRAINT courses_categories_pkey PRIMARY KEY (id);


--
-- Name: courses_halls courses_halls_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.courses_halls
    ADD CONSTRAINT courses_halls_pkey PRIMARY KEY (id);


--
-- Name: courses courses_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.courses
    ADD CONSTRAINT courses_pkey PRIMARY KEY (id);


--
-- Name: courses_types courses_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.courses_types
    ADD CONSTRAINT courses_types_pkey PRIMARY KEY (id);


--
-- Name: crm_default_data crm_default_data_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.crm_default_data
    ADD CONSTRAINT crm_default_data_pkey PRIMARY KEY (id);


--
-- Name: custom_prints custom_prints_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.custom_prints
    ADD CONSTRAINT custom_prints_pkey PRIMARY KEY (id);


--
-- Name: customer_comments_products customer_comments_products_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customer_comments_products
    ADD CONSTRAINT customer_comments_products_pkey PRIMARY KEY (id);


--
-- Name: customer_follow_ups customer_follow_ups_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customer_follow_ups
    ADD CONSTRAINT customer_follow_ups_pkey PRIMARY KEY (id);


--
-- Name: customer_sizes customer_sizes_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customer_sizes
    ADD CONSTRAINT customer_sizes_pkey PRIMARY KEY (id);


--
-- Name: customers_files customers_files_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers_files
    ADD CONSTRAINT customers_files_pkey PRIMARY KEY (id);


--
-- Name: customers_groups customers_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers_groups
    ADD CONSTRAINT customers_groups_pkey PRIMARY KEY (id);


--
-- Name: customers_rate_types customers_rate_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers_rate_types
    ADD CONSTRAINT customers_rate_types_pkey PRIMARY KEY (id);


--
-- Name: customers_tickets customers_tickets_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers_tickets
    ADD CONSTRAINT customers_tickets_pkey PRIMARY KEY (id);


--
-- Name: deducations_types deducations_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.deducations_types
    ADD CONSTRAINT deducations_types_pkey PRIMARY KEY (id);


--
-- Name: deductions deductions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.deductions
    ADD CONSTRAINT deductions_pkey PRIMARY KEY (id);


--
-- Name: default_sewing_orders default_sewing_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_sewing_orders
    ADD CONSTRAINT default_sewing_orders_pkey PRIMARY KEY (id);


--
-- Name: delivery_apps delivery_apps_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_apps
    ADD CONSTRAINT delivery_apps_pkey PRIMARY KEY (id);


--
-- Name: depaarture_policy_emps depaarture_policy_emps_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.depaarture_policy_emps
    ADD CONSTRAINT depaarture_policy_emps_pkey PRIMARY KEY (id);


--
-- Name: departure_emps departure_emps_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.departure_emps
    ADD CONSTRAINT departure_emps_pkey PRIMARY KEY (id);


--
-- Name: departures departures_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.departures
    ADD CONSTRAINT departures_pkey PRIMARY KEY (id);


--
-- Name: desvice_cases desvice_cases_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.desvice_cases
    ADD CONSTRAINT desvice_cases_pkey PRIMARY KEY (id);


--
-- Name: device_descrips device_descrips_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.device_descrips
    ADD CONSTRAINT device_descrips_pkey PRIMARY KEY (id);


--
-- Name: devices_typesies devices_typesies_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.devices_typesies
    ADD CONSTRAINT devices_typesies_pkey PRIMARY KEY (id);


--
-- Name: disclaimers disclaimers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.disclaimers
    ADD CONSTRAINT disclaimers_pkey PRIMARY KEY (id);


--
-- Name: discounts_emps discounts_emps_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.discounts_emps
    ADD CONSTRAINT discounts_emps_pkey PRIMARY KEY (id);


--
-- Name: documentary__credits documentary__credits_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.documentary__credits
    ADD CONSTRAINT documentary__credits_pkey PRIMARY KEY (id);


--
-- Name: domains domains_domain_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.domains
    ADD CONSTRAINT domains_domain_unique UNIQUE (domain);


--
-- Name: domains domains_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.domains
    ADD CONSTRAINT domains_pkey PRIMARY KEY (id);


--
-- Name: dxf_heights dxf_heights_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.dxf_heights
    ADD CONSTRAINT dxf_heights_pkey PRIMARY KEY (id);


--
-- Name: emp_covenants emp_covenants_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_covenants
    ADD CONSTRAINT emp_covenants_pkey PRIMARY KEY (id);


--
-- Name: emp_excs emp_excs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_excs
    ADD CONSTRAINT emp_excs_pkey PRIMARY KEY (id);


--
-- Name: emp_installment_details emp_installment_details_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_installment_details
    ADD CONSTRAINT emp_installment_details_pkey PRIMARY KEY (id);


--
-- Name: emp_installments emp_installments_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_installments
    ADD CONSTRAINT emp_installments_pkey PRIMARY KEY (id);


--
-- Name: emp_mails emp_mails_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_mails
    ADD CONSTRAINT emp_mails_pkey PRIMARY KEY (id);


--
-- Name: emp_movements emp_movements_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_movements
    ADD CONSTRAINT emp_movements_pkey PRIMARY KEY (id);


--
-- Name: emp_p_o_s_stores emp_p_o_s_stores_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_p_o_s_stores
    ADD CONSTRAINT emp_p_o_s_stores_pkey PRIMARY KEY (id);


--
-- Name: emp_payment_accounts emp_payment_accounts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_payment_accounts
    ADD CONSTRAINT emp_payment_accounts_pkey PRIMARY KEY (id);


--
-- Name: emp_ratios emp_ratios_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_ratios
    ADD CONSTRAINT emp_ratios_pkey PRIMARY KEY (id);


--
-- Name: emp_recipt_accounts emp_recipt_accounts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_recipt_accounts
    ADD CONSTRAINT emp_recipt_accounts_pkey PRIMARY KEY (id);


--
-- Name: emp_safes emp_safes_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_safes
    ADD CONSTRAINT emp_safes_pkey PRIMARY KEY (id);


--
-- Name: empassies empassies_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.empassies
    ADD CONSTRAINT empassies_pkey PRIMARY KEY (id);


--
-- Name: empassy_reserve_dates empassy_reserve_dates_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.empassy_reserve_dates
    ADD CONSTRAINT empassy_reserve_dates_pkey PRIMARY KEY (id);


--
-- Name: employment_levels employment_levels_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.employment_levels
    ADD CONSTRAINT employment_levels_pkey PRIMARY KEY (id);


--
-- Name: emps_producation_points emps_producation_points_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emps_producation_points
    ADD CONSTRAINT emps_producation_points_pkey PRIMARY KEY (id);


--
-- Name: emps_producation_quantities emps_producation_quantities_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emps_producation_quantities
    ADD CONSTRAINT emps_producation_quantities_pkey PRIMARY KEY (id);


--
-- Name: entitlements entitlements_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.entitlements
    ADD CONSTRAINT entitlements_pkey PRIMARY KEY (id);


--
-- Name: events events_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.events
    ADD CONSTRAINT events_pkey PRIMARY KEY (id);


--
-- Name: examinations_types examinations_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.examinations_types
    ADD CONSTRAINT examinations_types_pkey PRIMARY KEY (id);


--
-- Name: exchange_commissions exchange_commissions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.exchange_commissions
    ADD CONSTRAINT exchange_commissions_pkey PRIMARY KEY (id);


--
-- Name: execute_job_order_models execute_job_order_models_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_job_order_models
    ADD CONSTRAINT execute_job_order_models_pkey PRIMARY KEY (id);


--
-- Name: execute_job_order_workmanships execute_job_order_workmanships_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_job_order_workmanships
    ADD CONSTRAINT execute_job_order_workmanships_pkey PRIMARY KEY (id);


--
-- Name: execute_job_orders execute_job_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_job_orders
    ADD CONSTRAINT execute_job_orders_pkey PRIMARY KEY (id);


--
-- Name: execute_sewing_orders execute_sewing_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_pkey PRIMARY KEY (id);


--
-- Name: executing_receiving_secretariats executing_receiving_secretariats_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.executing_receiving_secretariats
    ADD CONSTRAINT executing_receiving_secretariats_pkey PRIMARY KEY (id);


--
-- Name: executing_receivings executing_receivings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.executing_receivings
    ADD CONSTRAINT executing_receivings_pkey PRIMARY KEY (id);


--
-- Name: executor_filters executor_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.executor_filters
    ADD CONSTRAINT executor_filters_pkey PRIMARY KEY (id);


--
-- Name: expenses_list_column_sechdules expenses_list_column_sechdules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.expenses_list_column_sechdules
    ADD CONSTRAINT expenses_list_column_sechdules_pkey PRIMARY KEY (id);


--
-- Name: expenses_list_columns expenses_list_columns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.expenses_list_columns
    ADD CONSTRAINT expenses_list_columns_pkey PRIMARY KEY (id);


--
-- Name: expenses_type_projects expenses_type_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.expenses_type_projects
    ADD CONSTRAINT expenses_type_projects_pkey PRIMARY KEY (id);


--
-- Name: expenses_type_templates expenses_type_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.expenses_type_templates
    ADD CONSTRAINT expenses_type_templates_pkey PRIMARY KEY (id);


--
-- Name: expire_date_qties expire_date_qties_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.expire_date_qties
    ADD CONSTRAINT expire_date_qties_pkey PRIMARY KEY (id);


--
-- Name: export_checks export_checks_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.export_checks
    ADD CONSTRAINT export_checks_pkey PRIMARY KEY (id);


--
-- Name: f_a_q_s f_a_q_s_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.f_a_q_s
    ADD CONSTRAINT f_a_q_s_pkey PRIMARY KEY (id);


--
-- Name: failed_jobs failed_jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.failed_jobs
    ADD CONSTRAINT failed_jobs_pkey PRIMARY KEY (id);


--
-- Name: failed_jobs failed_jobs_uuid_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.failed_jobs
    ADD CONSTRAINT failed_jobs_uuid_unique UNIQUE (uuid);


--
-- Name: faults_types faults_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.faults_types
    ADD CONSTRAINT faults_types_pkey PRIMARY KEY (id);


--
-- Name: fifo_qties fifo_qties_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fifo_qties
    ADD CONSTRAINT fifo_qties_pkey PRIMARY KEY (id);


--
-- Name: firewall_ips firewall_ips_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.firewall_ips
    ADD CONSTRAINT firewall_ips_pkey PRIMARY KEY (id);


--
-- Name: firewall_logs firewall_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.firewall_logs
    ADD CONSTRAINT firewall_logs_pkey PRIMARY KEY (id);


--
-- Name: follow_lists follow_lists_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.follow_lists
    ADD CONSTRAINT follow_lists_pkey PRIMARY KEY (id);


--
-- Name: general_dailies general_dailies_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.general_dailies
    ADD CONSTRAINT general_dailies_pkey PRIMARY KEY (id);


--
-- Name: goods_product_projects goods_product_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.goods_product_projects
    ADD CONSTRAINT goods_product_projects_pkey PRIMARY KEY (id);


--
-- Name: goods_projects goods_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.goods_projects
    ADD CONSTRAINT goods_projects_pkey PRIMARY KEY (id);


--
-- Name: governrates governrates_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.governrates
    ADD CONSTRAINT governrates_pkey PRIMARY KEY (id);


--
-- Name: group_filters group_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.group_filters
    ADD CONSTRAINT group_filters_pkey PRIMARY KEY (id);


--
-- Name: holidays holidays_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.holidays
    ADD CONSTRAINT holidays_pkey PRIMARY KEY (id);


--
-- Name: holidays_types holidays_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.holidays_types
    ADD CONSTRAINT holidays_types_pkey PRIMARY KEY (id);


--
-- Name: home_e_com_designs home_e_com_designs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.home_e_com_designs
    ADD CONSTRAINT home_e_com_designs_pkey PRIMARY KEY (id);


--
-- Name: home_product_e_com_designs home_product_e_com_designs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.home_product_e_com_designs
    ADD CONSTRAINT home_product_e_com_designs_pkey PRIMARY KEY (id);


--
-- Name: import_expenses_types import_expenses_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.import_expenses_types
    ADD CONSTRAINT import_expenses_types_pkey PRIMARY KEY (id);


--
-- Name: import_new_prods import_new_prods_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.import_new_prods
    ADD CONSTRAINT import_new_prods_pkey PRIMARY KEY (id);


--
-- Name: import_new_prods_starts import_new_prods_starts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.import_new_prods_starts
    ADD CONSTRAINT import_new_prods_starts_pkey PRIMARY KEY (id);


--
-- Name: in_out_logs in_out_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.in_out_logs
    ADD CONSTRAINT in_out_logs_pkey PRIMARY KEY (id);


--
-- Name: incom_checks incom_checks_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.incom_checks
    ADD CONSTRAINT incom_checks_pkey PRIMARY KEY (id);


--
-- Name: incom_manufacturing_models incom_manufacturing_models_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.incom_manufacturing_models
    ADD CONSTRAINT incom_manufacturing_models_pkey PRIMARY KEY (id);


--
-- Name: incom_manufacturing_secretariat_models incom_manufacturing_secretariat_models_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.incom_manufacturing_secretariat_models
    ADD CONSTRAINT incom_manufacturing_secretariat_models_pkey PRIMARY KEY (id);


--
-- Name: install_companies_sales_bills_columns install_companies_sales_bills_columns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.install_companies_sales_bills_columns
    ADD CONSTRAINT install_companies_sales_bills_columns_pkey PRIMARY KEY (id);


--
-- Name: install_companies_sales_bills_columns_sechdules install_companies_sales_bills_columns_sechdules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.install_companies_sales_bills_columns_sechdules
    ADD CONSTRAINT install_companies_sales_bills_columns_sechdules_pkey PRIMARY KEY (id);


--
-- Name: installment_companies installment_companies_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.installment_companies
    ADD CONSTRAINT installment_companies_pkey PRIMARY KEY (id);


--
-- Name: installment_companies_ratios installment_companies_ratios_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.installment_companies_ratios
    ADD CONSTRAINT installment_companies_ratios_pkey PRIMARY KEY (id);


--
-- Name: installment_dates installment_dates_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.installment_dates
    ADD CONSTRAINT installment_dates_pkey PRIMARY KEY (id);


--
-- Name: installments installments_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.installments
    ADD CONSTRAINT installments_pkey PRIMARY KEY (id);


--
-- Name: insurance_companies insurance_companies_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.insurance_companies
    ADD CONSTRAINT insurance_companies_pkey PRIMARY KEY (id);


--
-- Name: insurance_papers insurance_papers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.insurance_papers
    ADD CONSTRAINT insurance_papers_pkey PRIMARY KEY (id);


--
-- Name: interviews interviews_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.interviews
    ADD CONSTRAINT interviews_pkey PRIMARY KEY (id);


--
-- Name: interviews_types interviews_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.interviews_types
    ADD CONSTRAINT interviews_types_pkey PRIMARY KEY (id);


--
-- Name: intros intros_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.intros
    ADD CONSTRAINT intros_pkey PRIMARY KEY (id);


--
-- Name: inventories inventories_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventories
    ADD CONSTRAINT inventories_pkey PRIMARY KEY (id);


--
-- Name: investors investors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.investors
    ADD CONSTRAINT investors_pkey PRIMARY KEY (id);


--
-- Name: issues issues_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.issues
    ADD CONSTRAINT issues_pkey PRIMARY KEY (id);


--
-- Name: items_groups items_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.items_groups
    ADD CONSTRAINT items_groups_pkey PRIMARY KEY (id);


--
-- Name: itineraries itineraries_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itineraries
    ADD CONSTRAINT itineraries_pkey PRIMARY KEY (id);


--
-- Name: itinerary_visits itinerary_visits_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itinerary_visits
    ADD CONSTRAINT itinerary_visits_pkey PRIMARY KEY (id);


--
-- Name: job_orders_executors job_orders_executors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.job_orders_executors
    ADD CONSTRAINT job_orders_executors_pkey PRIMARY KEY (id);


--
-- Name: job_orders job_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.job_orders
    ADD CONSTRAINT job_orders_pkey PRIMARY KEY (id);


--
-- Name: jobs jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.jobs
    ADD CONSTRAINT jobs_pkey PRIMARY KEY (id);


--
-- Name: jobs_types jobs_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.jobs_types
    ADD CONSTRAINT jobs_types_pkey PRIMARY KEY (id);


--
-- Name: jouns jouns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.jouns
    ADD CONSTRAINT jouns_pkey PRIMARY KEY (id);


--
-- Name: journalizing_details journalizing_details_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.journalizing_details
    ADD CONSTRAINT journalizing_details_pkey PRIMARY KEY (id);


--
-- Name: journalizings journalizings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.journalizings
    ADD CONSTRAINT journalizings_pkey PRIMARY KEY (id);


--
-- Name: languages languages_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.languages
    ADD CONSTRAINT languages_pkey PRIMARY KEY (id);


--
-- Name: loan_types loan_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.loan_types
    ADD CONSTRAINT loan_types_pkey PRIMARY KEY (id);


--
-- Name: loans loans_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.loans
    ADD CONSTRAINT loans_pkey PRIMARY KEY (id);


--
-- Name: login_sliders login_sliders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.login_sliders
    ADD CONSTRAINT login_sliders_pkey PRIMARY KEY (id);


--
-- Name: main_e_com_designs main_e_com_designs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.main_e_com_designs
    ADD CONSTRAINT main_e_com_designs_pkey PRIMARY KEY (id);


--
-- Name: maintainc_bills maintainc_bills_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.maintainc_bills
    ADD CONSTRAINT maintainc_bills_pkey PRIMARY KEY (id);


--
-- Name: maintaince_colors maintaince_colors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.maintaince_colors
    ADD CONSTRAINT maintaince_colors_pkey PRIMARY KEY (id);


--
-- Name: maintaince_default_data maintaince_default_data_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.maintaince_default_data
    ADD CONSTRAINT maintaince_default_data_pkey PRIMARY KEY (id);


--
-- Name: manu_store_counts manu_store_counts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manu_store_counts
    ADD CONSTRAINT manu_store_counts_pkey PRIMARY KEY (id);


--
-- Name: manufacture_companies manufacture_companies_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacture_companies
    ADD CONSTRAINT manufacture_companies_pkey PRIMARY KEY (id);


--
-- Name: manufacturing_default_data manufacturing_default_data_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_default_data
    ADD CONSTRAINT manufacturing_default_data_pkey PRIMARY KEY (id);


--
-- Name: manufacturing_executions manufacturing_executions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_executions
    ADD CONSTRAINT manufacturing_executions_pkey PRIMARY KEY (id);


--
-- Name: manufacturing_halls manufacturing_halls_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_halls
    ADD CONSTRAINT manufacturing_halls_pkey PRIMARY KEY (id);


--
-- Name: manufacturing_model_assets manufacturing_model_assets_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_model_assets
    ADD CONSTRAINT manufacturing_model_assets_pkey PRIMARY KEY (id);


--
-- Name: manufacturing_model_emps manufacturing_model_emps_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_model_emps
    ADD CONSTRAINT manufacturing_model_emps_pkey PRIMARY KEY (id);


--
-- Name: manufacturing_model_expenses manufacturing_model_expenses_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_model_expenses
    ADD CONSTRAINT manufacturing_model_expenses_pkey PRIMARY KEY (id);


--
-- Name: manufacturing_model_services manufacturing_model_services_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_model_services
    ADD CONSTRAINT manufacturing_model_services_pkey PRIMARY KEY (id);


--
-- Name: manufacturing_model_workers manufacturing_model_workers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_model_workers
    ADD CONSTRAINT manufacturing_model_workers_pkey PRIMARY KEY (id);


--
-- Name: manufacturing_models manufacturing_models_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_models
    ADD CONSTRAINT manufacturing_models_pkey PRIMARY KEY (id);


--
-- Name: manufacturing_orders manufacturing_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_orders
    ADD CONSTRAINT manufacturing_orders_pkey PRIMARY KEY (id);


--
-- Name: manufacturing_requests manufacturing_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_requests
    ADD CONSTRAINT manufacturing_requests_pkey PRIMARY KEY (id);


--
-- Name: manufacturing_secretariat_models manufacturing_secretariat_models_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_secretariat_models
    ADD CONSTRAINT manufacturing_secretariat_models_pkey PRIMARY KEY (id);


--
-- Name: measuerments measuerments_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.measuerments
    ADD CONSTRAINT measuerments_pkey PRIMARY KEY (id);


--
-- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.migrations
    ADD CONSTRAINT migrations_pkey PRIMARY KEY (id);


--
-- Name: missions missions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.missions
    ADD CONSTRAINT missions_pkey PRIMARY KEY (id);


--
-- Name: model_has_permissions model_has_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.model_has_permissions
    ADD CONSTRAINT model_has_permissions_pkey PRIMARY KEY (permission_id, model_id, model_type);


--
-- Name: model_has_roles model_has_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.model_has_roles
    ADD CONSTRAINT model_has_roles_pkey PRIMARY KEY (role_id, model_id, model_type);


--
-- Name: module_settings_nums module_settings_nums_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.module_settings_nums
    ADD CONSTRAINT module_settings_nums_pkey PRIMARY KEY (id);


--
-- Name: modules modules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.modules
    ADD CONSTRAINT modules_pkey PRIMARY KEY (id);


--
-- Name: more_products_halls more_products_halls_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.more_products_halls
    ADD CONSTRAINT more_products_halls_pkey PRIMARY KEY (id);


--
-- Name: most_sales_products_column_sechdules most_sales_products_column_sechdules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.most_sales_products_column_sechdules
    ADD CONSTRAINT most_sales_products_column_sechdules_pkey PRIMARY KEY (id);


--
-- Name: most_sales_products_columns most_sales_products_columns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.most_sales_products_columns
    ADD CONSTRAINT most_sales_products_columns_pkey PRIMARY KEY (id);


--
-- Name: msg_rqsts msg_rqsts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.msg_rqsts
    ADD CONSTRAINT msg_rqsts_pkey PRIMARY KEY (id);


--
-- Name: my_follow_lists my_follow_lists_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.my_follow_lists
    ADD CONSTRAINT my_follow_lists_pkey PRIMARY KEY (id);


--
-- Name: new_shipping_categories new_shipping_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.new_shipping_categories
    ADD CONSTRAINT new_shipping_categories_pkey PRIMARY KEY (id);


--
-- Name: new_shipping_rqst_types new_shipping_rqst_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.new_shipping_rqst_types
    ADD CONSTRAINT new_shipping_rqst_types_pkey PRIMARY KEY (id);


--
-- Name: new_shipping_types new_shipping_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.new_shipping_types
    ADD CONSTRAINT new_shipping_types_pkey PRIMARY KEY (id);


--
-- Name: notifications notifications_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notifications
    ADD CONSTRAINT notifications_pkey PRIMARY KEY (id);


--
-- Name: opening_entries_details opening_entries_details_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.opening_entries_details
    ADD CONSTRAINT opening_entries_details_pkey PRIMARY KEY (id);


--
-- Name: opening_entries opening_entries_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.opening_entries
    ADD CONSTRAINT opening_entries_pkey PRIMARY KEY (id);


--
-- Name: order_pays order_pays_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.order_pays
    ADD CONSTRAINT order_pays_pkey PRIMARY KEY (id);


--
-- Name: outcom_manufacturing_models outcom_manufacturing_models_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.outcom_manufacturing_models
    ADD CONSTRAINT outcom_manufacturing_models_pkey PRIMARY KEY (id);


--
-- Name: outcome_manufacturing_secretariat_models outcome_manufacturing_secretariat_models_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.outcome_manufacturing_secretariat_models
    ADD CONSTRAINT outcome_manufacturing_secretariat_models_pkey PRIMARY KEY (id);


--
-- Name: over_times over_times_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.over_times
    ADD CONSTRAINT over_times_pkey PRIMARY KEY (id);


--
-- Name: owners_reals owners_reals_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.owners_reals
    ADD CONSTRAINT owners_reals_pkey PRIMARY KEY (id);


--
-- Name: pack_prems pack_prems_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pack_prems
    ADD CONSTRAINT pack_prems_pkey PRIMARY KEY (id);


--
-- Name: packages packages_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.packages
    ADD CONSTRAINT packages_pkey PRIMARY KEY (id);


--
-- Name: partners partners_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.partners
    ADD CONSTRAINT partners_pkey PRIMARY KEY (id);


--
-- Name: pay_profit_investors pay_profit_investors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pay_profit_investors
    ADD CONSTRAINT pay_profit_investors_pkey PRIMARY KEY (id);


--
-- Name: pay_salaries pay_salaries_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pay_salaries
    ADD CONSTRAINT pay_salaries_pkey PRIMARY KEY (id);


--
-- Name: payment_voucher_details payment_voucher_details_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payment_voucher_details
    ADD CONSTRAINT payment_voucher_details_pkey PRIMARY KEY (id);


--
-- Name: payment_vouchers payment_vouchers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payment_vouchers
    ADD CONSTRAINT payment_vouchers_pkey PRIMARY KEY (id);


--
-- Name: paymentss_products_real_projects paymentss_products_real_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.paymentss_products_real_projects
    ADD CONSTRAINT paymentss_products_real_projects_pkey PRIMARY KEY (id);


--
-- Name: paymentss_real_projects paymentss_real_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.paymentss_real_projects
    ADD CONSTRAINT paymentss_real_projects_pkey PRIMARY KEY (id);


--
-- Name: permission_to_exchange_goods permission_to_exchange_goods_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.permission_to_exchange_goods
    ADD CONSTRAINT permission_to_exchange_goods_pkey PRIMARY KEY (id);


--
-- Name: permission_to_recived_goods permission_to_recived_goods_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.permission_to_recived_goods
    ADD CONSTRAINT permission_to_recived_goods_pkey PRIMARY KEY (id);


--
-- Name: permissions permissions_name_guard_name_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.permissions
    ADD CONSTRAINT permissions_name_guard_name_unique UNIQUE (name, guard_name);


--
-- Name: permissions permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.permissions
    ADD CONSTRAINT permissions_pkey PRIMARY KEY (id);


--
-- Name: places places_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.places
    ADD CONSTRAINT places_pkey PRIMARY KEY (id);


--
-- Name: places_reals places_reals_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.places_reals
    ADD CONSTRAINT places_reals_pkey PRIMARY KEY (id);


--
-- Name: platforms platforms_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.platforms
    ADD CONSTRAINT platforms_pkey PRIMARY KEY (id);


--
-- Name: polices polices_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.polices
    ADD CONSTRAINT polices_pkey PRIMARY KEY (id);


--
-- Name: pro_details_imgs pro_details_imgs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pro_details_imgs
    ADD CONSTRAINT pro_details_imgs_pkey PRIMARY KEY (id);


--
-- Name: pro_notes pro_notes_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pro_notes
    ADD CONSTRAINT pro_notes_pkey PRIMARY KEY (id);


--
-- Name: product_colors product_colors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_colors
    ADD CONSTRAINT product_colors_pkey PRIMARY KEY (id);


--
-- Name: product_details_e_com_designs product_details_e_com_designs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_details_e_com_designs
    ADD CONSTRAINT product_details_e_com_designs_pkey PRIMARY KEY (id);


--
-- Name: product_executing_receiving_secretariats product_executing_receiving_secretariats_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_executing_receiving_secretariats
    ADD CONSTRAINT product_executing_receiving_secretariats_pkey PRIMARY KEY (id);


--
-- Name: product_inventories product_inventories_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_inventories
    ADD CONSTRAINT product_inventories_pkey PRIMARY KEY (id);


--
-- Name: product_job_orders product_job_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_job_orders
    ADD CONSTRAINT product_job_orders_pkey PRIMARY KEY (id);


--
-- Name: product_maintainc_bills product_maintainc_bills_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_maintainc_bills
    ADD CONSTRAINT product_maintainc_bills_pkey PRIMARY KEY (id);


--
-- Name: product_manufacturing_executions product_manufacturing_executions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_manufacturing_executions
    ADD CONSTRAINT product_manufacturing_executions_pkey PRIMARY KEY (id);


--
-- Name: product_moves_columns product_moves_columns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_moves_columns
    ADD CONSTRAINT product_moves_columns_pkey PRIMARY KEY (id);


--
-- Name: product_moves_columns_sechdules product_moves_columns_sechdules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_moves_columns_sechdules
    ADD CONSTRAINT product_moves_columns_sechdules_pkey PRIMARY KEY (id);


--
-- Name: product_moves_filter_twos product_moves_filter_twos_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_moves_filter_twos
    ADD CONSTRAINT product_moves_filter_twos_pkey PRIMARY KEY (id);


--
-- Name: product_moves_filters product_moves_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_moves_filters
    ADD CONSTRAINT product_moves_filters_pkey PRIMARY KEY (id);


--
-- Name: product_moves product_moves_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_moves
    ADD CONSTRAINT product_moves_pkey PRIMARY KEY (id);


--
-- Name: product_quote_images product_quote_images_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_quote_images
    ADD CONSTRAINT product_quote_images_pkey PRIMARY KEY (id);


--
-- Name: product_return_without_bills product_return_without_bills_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_return_without_bills
    ADD CONSTRAINT product_return_without_bills_pkey PRIMARY KEY (id);


--
-- Name: product_sales_gifts product_sales_gifts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales_gifts
    ADD CONSTRAINT product_sales_gifts_pkey PRIMARY KEY (id);


--
-- Name: product_sales_orders product_sales_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales_orders
    ADD CONSTRAINT product_sales_orders_pkey PRIMARY KEY (id);


--
-- Name: product_sales product_sales_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales
    ADD CONSTRAINT product_sales_pkey PRIMARY KEY (id);


--
-- Name: product_sales_subscribes product_sales_subscribes_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales_subscribes
    ADD CONSTRAINT product_sales_subscribes_pkey PRIMARY KEY (id);


--
-- Name: product_settlements product_settlements_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_settlements
    ADD CONSTRAINT product_settlements_pkey PRIMARY KEY (id);


--
-- Name: product_sizes product_sizes_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sizes
    ADD CONSTRAINT product_sizes_pkey PRIMARY KEY (id);


--
-- Name: product_thicknesses product_thicknesses_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_thicknesses
    ADD CONSTRAINT product_thicknesses_pkey PRIMARY KEY (id);


--
-- Name: product_type_defaults product_type_defaults_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_type_defaults
    ADD CONSTRAINT product_type_defaults_pkey PRIMARY KEY (id);


--
-- Name: product_units product_units_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_units
    ADD CONSTRAINT product_units_pkey PRIMARY KEY (id);


--
-- Name: products_client_requests products_client_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_client_requests
    ADD CONSTRAINT products_client_requests_pkey PRIMARY KEY (id);


--
-- Name: products_consists products_consists_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_consists
    ADD CONSTRAINT products_consists_pkey PRIMARY KEY (id);


--
-- Name: products_executing_receivings products_executing_receivings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_executing_receivings
    ADD CONSTRAINT products_executing_receivings_pkey PRIMARY KEY (id);


--
-- Name: products_manufacturing_orders products_manufacturing_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_manufacturing_orders
    ADD CONSTRAINT products_manufacturing_orders_pkey PRIMARY KEY (id);


--
-- Name: products_manufacturing_requests products_manufacturing_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_manufacturing_requests
    ADD CONSTRAINT products_manufacturing_requests_pkey PRIMARY KEY (id);


--
-- Name: products_permission_to_exchange_goods products_permission_to_exchange_goods_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_permission_to_exchange_goods
    ADD CONSTRAINT products_permission_to_exchange_goods_pkey PRIMARY KEY (id);


--
-- Name: products_permission_to_recived_goods products_permission_to_recived_goods_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_permission_to_recived_goods
    ADD CONSTRAINT products_permission_to_recived_goods_pkey PRIMARY KEY (id);


--
-- Name: products products_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products
    ADD CONSTRAINT products_pkey PRIMARY KEY (id);


--
-- Name: products_purchase_petrols products_purchase_petrols_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_purchase_petrols
    ADD CONSTRAINT products_purchase_petrols_pkey PRIMARY KEY (id);


--
-- Name: products_purchases_orders products_purchases_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_purchases_orders
    ADD CONSTRAINT products_purchases_orders_pkey PRIMARY KEY (id);


--
-- Name: products_purchases products_purchases_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_purchases
    ADD CONSTRAINT products_purchases_pkey PRIMARY KEY (id);


--
-- Name: products_qties products_qties_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_qties
    ADD CONSTRAINT products_qties_pkey PRIMARY KEY (id);


--
-- Name: products_quotes products_quotes_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_quotes
    ADD CONSTRAINT products_quotes_pkey PRIMARY KEY (id);


--
-- Name: products_return_maintaince_bills products_return_maintaince_bills_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_return_maintaince_bills
    ADD CONSTRAINT products_return_maintaince_bills_pkey PRIMARY KEY (id);


--
-- Name: products_secretariat_export_goods products_secretariat_export_goods_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_secretariat_export_goods
    ADD CONSTRAINT products_secretariat_export_goods_pkey PRIMARY KEY (id);


--
-- Name: products_secretariat_import_goods products_secretariat_import_goods_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_secretariat_import_goods
    ADD CONSTRAINT products_secretariat_import_goods_pkey PRIMARY KEY (id);


--
-- Name: products_shortcomings products_shortcomings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_shortcomings
    ADD CONSTRAINT products_shortcomings_pkey PRIMARY KEY (id);


--
-- Name: products_start_periods products_start_periods_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_start_periods
    ADD CONSTRAINT products_start_periods_pkey PRIMARY KEY (id);


--
-- Name: products_stores products_stores_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_stores
    ADD CONSTRAINT products_stores_pkey PRIMARY KEY (id);


--
-- Name: products_stores_transfers products_stores_transfers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_stores_transfers
    ADD CONSTRAINT products_stores_transfers_pkey PRIMARY KEY (id);


--
-- Name: products_viras products_viras_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_viras
    ADD CONSTRAINT products_viras_pkey PRIMARY KEY (id);


--
-- Name: profit_sales_product_column_sechdulrs profit_sales_product_column_sechdulrs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.profit_sales_product_column_sechdulrs
    ADD CONSTRAINT profit_sales_product_column_sechdulrs_pkey PRIMARY KEY (id);


--
-- Name: profit_sales_product_columns profit_sales_product_columns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.profit_sales_product_columns
    ADD CONSTRAINT profit_sales_product_columns_pkey PRIMARY KEY (id);


--
-- Name: project_statuses project_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_statuses
    ADD CONSTRAINT project_statuses_pkey PRIMARY KEY (id);


--
-- Name: project_teams project_teams_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_teams
    ADD CONSTRAINT project_teams_pkey PRIMARY KEY (id);


--
-- Name: projects projects_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.projects
    ADD CONSTRAINT projects_pkey PRIMARY KEY (id);


--
-- Name: purch_bills_columns purch_bills_columns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purch_bills_columns
    ADD CONSTRAINT purch_bills_columns_pkey PRIMARY KEY (id);


--
-- Name: purch_bills_columns_sechdules purch_bills_columns_sechdules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purch_bills_columns_sechdules
    ADD CONSTRAINT purch_bills_columns_sechdules_pkey PRIMARY KEY (id);


--
-- Name: purch_bills_filter_twos purch_bills_filter_twos_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purch_bills_filter_twos
    ADD CONSTRAINT purch_bills_filter_twos_pkey PRIMARY KEY (id);


--
-- Name: purch_bills_filters purch_bills_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purch_bills_filters
    ADD CONSTRAINT purch_bills_filters_pkey PRIMARY KEY (id);


--
-- Name: purchase_petrols purchase_petrols_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchase_petrols
    ADD CONSTRAINT purchase_petrols_pkey PRIMARY KEY (id);


--
-- Name: purchases_default_data purchases_default_data_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases_default_data
    ADD CONSTRAINT purchases_default_data_pkey PRIMARY KEY (id);


--
-- Name: purchases_expenses_types purchases_expenses_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases_expenses_types
    ADD CONSTRAINT purchases_expenses_types_pkey PRIMARY KEY (id);


--
-- Name: purchases_order_expenses_types purchases_order_expenses_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases_order_expenses_types
    ADD CONSTRAINT purchases_order_expenses_types_pkey PRIMARY KEY (id);


--
-- Name: purchases_orders purchases_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases_orders
    ADD CONSTRAINT purchases_orders_pkey PRIMARY KEY (id);


--
-- Name: purchases purchases_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases
    ADD CONSTRAINT purchases_pkey PRIMARY KEY (id);


--
-- Name: purpose_travel purpose_travel_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purpose_travel
    ADD CONSTRAINT purpose_travel_pkey PRIMARY KEY (id);


--
-- Name: q_r_s q_r_s_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.q_r_s
    ADD CONSTRAINT q_r_s_pkey PRIMARY KEY (id);


--
-- Name: qualities qualities_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.qualities
    ADD CONSTRAINT qualities_pkey PRIMARY KEY (id);


--
-- Name: quality_details quality_details_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.quality_details
    ADD CONSTRAINT quality_details_pkey PRIMARY KEY (id);


--
-- Name: quote_images quote_images_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.quote_images
    ADD CONSTRAINT quote_images_pkey PRIMARY KEY (id);


--
-- Name: quotes quotes_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.quotes
    ADD CONSTRAINT quotes_pkey PRIMARY KEY (id);


--
-- Name: rabih_education rabih_education_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.rabih_education
    ADD CONSTRAINT rabih_education_pkey PRIMARY KEY (id);


--
-- Name: rates rates_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.rates
    ADD CONSTRAINT rates_pkey PRIMARY KEY (id);


--
-- Name: real_sate_projects_payments real_sate_projects_payments_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.real_sate_projects_payments
    ADD CONSTRAINT real_sate_projects_payments_pkey PRIMARY KEY (id);


--
-- Name: real_sate_projects real_sate_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.real_sate_projects
    ADD CONSTRAINT real_sate_projects_pkey PRIMARY KEY (id);


--
-- Name: real_state_default_data real_state_default_data_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.real_state_default_data
    ADD CONSTRAINT real_state_default_data_pkey PRIMARY KEY (id);


--
-- Name: real_units real_units_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.real_units
    ADD CONSTRAINT real_units_pkey PRIMARY KEY (id);


--
-- Name: real_units_services real_units_services_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.real_units_services
    ADD CONSTRAINT real_units_services_pkey PRIMARY KEY (id);


--
-- Name: reasons reasons_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reasons
    ADD CONSTRAINT reasons_pkey PRIMARY KEY (id);


--
-- Name: recipt_maintaince_errors recipt_maintaince_errors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_maintaince_errors
    ADD CONSTRAINT recipt_maintaince_errors_pkey PRIMARY KEY (id);


--
-- Name: recipt_maintainces recipt_maintainces_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_maintainces
    ADD CONSTRAINT recipt_maintainces_pkey PRIMARY KEY (id);


--
-- Name: recipt_voucher_details recipt_voucher_details_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_voucher_details
    ADD CONSTRAINT recipt_voucher_details_pkey PRIMARY KEY (id);


--
-- Name: recipt_vouchers recipt_vouchers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_vouchers
    ADD CONSTRAINT recipt_vouchers_pkey PRIMARY KEY (id);


--
-- Name: recipts_sales_petrols recipts_sales_petrols_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipts_sales_petrols
    ADD CONSTRAINT recipts_sales_petrols_pkey PRIMARY KEY (id);


--
-- Name: recipts_types recipts_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipts_types
    ADD CONSTRAINT recipts_types_pkey PRIMARY KEY (id);


--
-- Name: recived_purch_products recived_purch_products_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_purch_products
    ADD CONSTRAINT recived_purch_products_pkey PRIMARY KEY (id);


--
-- Name: recived_purchts recived_purchts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_purchts
    ADD CONSTRAINT recived_purchts_pkey PRIMARY KEY (id);


--
-- Name: recived_sales recived_sales_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_sales
    ADD CONSTRAINT recived_sales_pkey PRIMARY KEY (id);


--
-- Name: recived_sales_products recived_sales_products_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_sales_products
    ADD CONSTRAINT recived_sales_products_pkey PRIMARY KEY (id);


--
-- Name: recived_shipment_goods recived_shipment_goods_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_shipment_goods
    ADD CONSTRAINT recived_shipment_goods_pkey PRIMARY KEY (id);


--
-- Name: recived_shipments recived_shipments_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_shipments
    ADD CONSTRAINT recived_shipments_pkey PRIMARY KEY (id);


--
-- Name: reg_courses reg_courses_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reg_courses
    ADD CONSTRAINT reg_courses_pkey PRIMARY KEY (id);


--
-- Name: reg_courses_students reg_courses_students_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reg_courses_students
    ADD CONSTRAINT reg_courses_students_pkey PRIMARY KEY (id);


--
-- Name: reg_over_times reg_over_times_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reg_over_times
    ADD CONSTRAINT reg_over_times_pkey PRIMARY KEY (id);


--
-- Name: remove_products_halls remove_products_halls_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.remove_products_halls
    ADD CONSTRAINT remove_products_halls_pkey PRIMARY KEY (id);


--
-- Name: rent_contracts rent_contracts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.rent_contracts
    ADD CONSTRAINT rent_contracts_pkey PRIMARY KEY (id);


--
-- Name: rent_period_reals rent_period_reals_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.rent_period_reals
    ADD CONSTRAINT rent_period_reals_pkey PRIMARY KEY (id);


--
-- Name: reports_settings reports_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reports_settings
    ADD CONSTRAINT reports_settings_pkey PRIMARY KEY (id);


--
-- Name: reservations reservations_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reservations
    ADD CONSTRAINT reservations_pkey PRIMARY KEY (id);


--
-- Name: reserve_course_days reserve_course_days_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reserve_course_days
    ADD CONSTRAINT reserve_course_days_pkey PRIMARY KEY (id);


--
-- Name: reserve_course_students reserve_course_students_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reserve_course_students
    ADD CONSTRAINT reserve_course_students_pkey PRIMARY KEY (id);


--
-- Name: reserve_courses reserve_courses_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reserve_courses
    ADD CONSTRAINT reserve_courses_pkey PRIMARY KEY (id);


--
-- Name: resignation_requests resignation_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resignation_requests
    ADD CONSTRAINT resignation_requests_pkey PRIMARY KEY (id);


--
-- Name: resturant_abouts resturant_abouts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_abouts
    ADD CONSTRAINT resturant_abouts_pkey PRIMARY KEY (id);


--
-- Name: resturant_blogs resturant_blogs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_blogs
    ADD CONSTRAINT resturant_blogs_pkey PRIMARY KEY (id);


--
-- Name: resturant_cart_check_styles resturant_cart_check_styles_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_cart_check_styles
    ADD CONSTRAINT resturant_cart_check_styles_pkey PRIMARY KEY (id);


--
-- Name: resturant_carts resturant_carts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_carts
    ADD CONSTRAINT resturant_carts_pkey PRIMARY KEY (id);


--
-- Name: resturant_cupon_codes resturant_cupon_codes_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_cupon_codes
    ADD CONSTRAINT resturant_cupon_codes_pkey PRIMARY KEY (id);


--
-- Name: resturant_galleries resturant_galleries_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_galleries
    ADD CONSTRAINT resturant_galleries_pkey PRIMARY KEY (id);


--
-- Name: resturant_homes resturant_homes_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_homes
    ADD CONSTRAINT resturant_homes_pkey PRIMARY KEY (id);


--
-- Name: resturant_index_style_i_i_s resturant_index_style_i_i_s_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_index_style_i_i_s
    ADD CONSTRAINT resturant_index_style_i_i_s_pkey PRIMARY KEY (id);


--
-- Name: resturant_index_style_i_s resturant_index_style_i_s_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_index_style_i_s
    ADD CONSTRAINT resturant_index_style_i_s_pkey PRIMARY KEY (id);


--
-- Name: resturant_menu_styles resturant_menu_styles_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_menu_styles
    ADD CONSTRAINT resturant_menu_styles_pkey PRIMARY KEY (id);


--
-- Name: resturant_nav_foot_styles resturant_nav_foot_styles_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_nav_foot_styles
    ADD CONSTRAINT resturant_nav_foot_styles_pkey PRIMARY KEY (id);


--
-- Name: resturant_privacies resturant_privacies_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_privacies
    ADD CONSTRAINT resturant_privacies_pkey PRIMARY KEY (id);


--
-- Name: resturant_reservations resturant_reservations_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_reservations
    ADD CONSTRAINT resturant_reservations_pkey PRIMARY KEY (id);


--
-- Name: resturant_reviews resturant_reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_reviews
    ADD CONSTRAINT resturant_reviews_pkey PRIMARY KEY (id);


--
-- Name: resturant_sliders resturant_sliders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_sliders
    ADD CONSTRAINT resturant_sliders_pkey PRIMARY KEY (id);


--
-- Name: resturant_socials resturant_socials_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_socials
    ADD CONSTRAINT resturant_socials_pkey PRIMARY KEY (id);


--
-- Name: resturant_styles resturant_styles_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_styles
    ADD CONSTRAINT resturant_styles_pkey PRIMARY KEY (id);


--
-- Name: resturant_sup_page_styles resturant_sup_page_styles_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_sup_page_styles
    ADD CONSTRAINT resturant_sup_page_styles_pkey PRIMARY KEY (id);


--
-- Name: resturant_tables resturant_tables_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_tables
    ADD CONSTRAINT resturant_tables_pkey PRIMARY KEY (id);


--
-- Name: resturant_terms resturant_terms_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_terms
    ADD CONSTRAINT resturant_terms_pkey PRIMARY KEY (id);


--
-- Name: resturant_video_sections resturant_video_sections_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resturant_video_sections
    ADD CONSTRAINT resturant_video_sections_pkey PRIMARY KEY (id);


--
-- Name: return_maintaince_bills return_maintaince_bills_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_maintaince_bills
    ADD CONSTRAINT return_maintaince_bills_pkey PRIMARY KEY (id);


--
-- Name: return_products_stores_transfers return_products_stores_transfers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_products_stores_transfers
    ADD CONSTRAINT return_products_stores_transfers_pkey PRIMARY KEY (id);


--
-- Name: return_purch_bills_filter_twos return_purch_bills_filter_twos_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purch_bills_filter_twos
    ADD CONSTRAINT return_purch_bills_filter_twos_pkey PRIMARY KEY (id);


--
-- Name: return_purch_bills_filters return_purch_bills_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purch_bills_filters
    ADD CONSTRAINT return_purch_bills_filters_pkey PRIMARY KEY (id);


--
-- Name: return_purch_products return_purch_products_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purch_products
    ADD CONSTRAINT return_purch_products_pkey PRIMARY KEY (id);


--
-- Name: return_purches return_purches_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purches
    ADD CONSTRAINT return_purches_pkey PRIMARY KEY (id);


--
-- Name: return_resons return_resons_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_resons
    ADD CONSTRAINT return_resons_pkey PRIMARY KEY (id);


--
-- Name: return_sales_bills_filter_twos return_sales_bills_filter_twos_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales_bills_filter_twos
    ADD CONSTRAINT return_sales_bills_filter_twos_pkey PRIMARY KEY (id);


--
-- Name: return_sales_bills_filters return_sales_bills_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales_bills_filters
    ADD CONSTRAINT return_sales_bills_filters_pkey PRIMARY KEY (id);


--
-- Name: return_sales return_sales_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales
    ADD CONSTRAINT return_sales_pkey PRIMARY KEY (id);


--
-- Name: return_sales_products return_sales_products_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales_products
    ADD CONSTRAINT return_sales_products_pkey PRIMARY KEY (id);


--
-- Name: return_stors_transfers return_stors_transfers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_stors_transfers
    ADD CONSTRAINT return_stors_transfers_pkey PRIMARY KEY (id);


--
-- Name: return_without_bills return_without_bills_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_without_bills
    ADD CONSTRAINT return_without_bills_pkey PRIMARY KEY (id);


--
-- Name: role_has_permissions role_has_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.role_has_permissions
    ADD CONSTRAINT role_has_permissions_pkey PRIMARY KEY (permission_id, role_id);


--
-- Name: roles roles_name_guard_name_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.roles
    ADD CONSTRAINT roles_name_guard_name_unique UNIQUE (name, guard_name);


--
-- Name: roles roles_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.roles
    ADD CONSTRAINT roles_pkey PRIMARY KEY (id);


--
-- Name: room_reservations room_reservations_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.room_reservations
    ADD CONSTRAINT room_reservations_pkey PRIMARY KEY (id);


--
-- Name: rooms rooms_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.rooms
    ADD CONSTRAINT rooms_pkey PRIMARY KEY (id);


--
-- Name: rooms_types rooms_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.rooms_types
    ADD CONSTRAINT rooms_types_pkey PRIMARY KEY (id);


--
-- Name: rqst_transports rqst_transports_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.rqst_transports
    ADD CONSTRAINT rqst_transports_pkey PRIMARY KEY (id);


--
-- Name: safe_transfer_columns safe_transfer_columns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.safe_transfer_columns
    ADD CONSTRAINT safe_transfer_columns_pkey PRIMARY KEY (id);


--
-- Name: safe_transfer_columns_sechdules safe_transfer_columns_sechdules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.safe_transfer_columns_sechdules
    ADD CONSTRAINT safe_transfer_columns_sechdules_pkey PRIMARY KEY (id);


--
-- Name: safe_transfer_filter_twos safe_transfer_filter_twos_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.safe_transfer_filter_twos
    ADD CONSTRAINT safe_transfer_filter_twos_pkey PRIMARY KEY (id);


--
-- Name: safe_transfer_filters safe_transfer_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.safe_transfer_filters
    ADD CONSTRAINT safe_transfer_filters_pkey PRIMARY KEY (id);


--
-- Name: safe_transfers safe_transfers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.safe_transfers
    ADD CONSTRAINT safe_transfers_pkey PRIMARY KEY (id);


--
-- Name: safes_banks safes_banks_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.safes_banks
    ADD CONSTRAINT safes_banks_pkey PRIMARY KEY (id);


--
-- Name: sales_bills_columns sales_bills_columns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_bills_columns
    ADD CONSTRAINT sales_bills_columns_pkey PRIMARY KEY (id);


--
-- Name: sales_bills_columns_sechdules sales_bills_columns_sechdules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_bills_columns_sechdules
    ADD CONSTRAINT sales_bills_columns_sechdules_pkey PRIMARY KEY (id);


--
-- Name: sales_bills_filter_twos sales_bills_filter_twos_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_bills_filter_twos
    ADD CONSTRAINT sales_bills_filter_twos_pkey PRIMARY KEY (id);


--
-- Name: sales_bills_filters sales_bills_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_bills_filters
    ADD CONSTRAINT sales_bills_filters_pkey PRIMARY KEY (id);


--
-- Name: sales_contracts sales_contracts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_contracts
    ADD CONSTRAINT sales_contracts_pkey PRIMARY KEY (id);


--
-- Name: sales_fifo_qties sales_fifo_qties_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_fifo_qties
    ADD CONSTRAINT sales_fifo_qties_pkey PRIMARY KEY (id);


--
-- Name: sales_gifts sales_gifts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_gifts
    ADD CONSTRAINT sales_gifts_pkey PRIMARY KEY (id);


--
-- Name: sales_maint_fifo_qties sales_maint_fifo_qties_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_maint_fifo_qties
    ADD CONSTRAINT sales_maint_fifo_qties_pkey PRIMARY KEY (id);


--
-- Name: sales_orders sales_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_orders
    ADD CONSTRAINT sales_orders_pkey PRIMARY KEY (id);


--
-- Name: sales_petrols sales_petrols_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_petrols
    ADD CONSTRAINT sales_petrols_pkey PRIMARY KEY (id);


--
-- Name: sales sales_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales
    ADD CONSTRAINT sales_pkey PRIMARY KEY (id);


--
-- Name: sales_subscribes sales_subscribes_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_subscribes
    ADD CONSTRAINT sales_subscribes_pkey PRIMARY KEY (id);


--
-- Name: scientific_materials scientific_materials_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.scientific_materials
    ADD CONSTRAINT scientific_materials_pkey PRIMARY KEY (id);


--
-- Name: secretariat_export_goods secretariat_export_goods_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.secretariat_export_goods
    ADD CONSTRAINT secretariat_export_goods_pkey PRIMARY KEY (id);


--
-- Name: secretariat_import_goods secretariat_import_goods_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.secretariat_import_goods
    ADD CONSTRAINT secretariat_import_goods_pkey PRIMARY KEY (id);


--
-- Name: secretariat_qties secretariat_qties_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.secretariat_qties
    ADD CONSTRAINT secretariat_qties_pkey PRIMARY KEY (id);


--
-- Name: secretariat_stores secretariat_stores_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.secretariat_stores
    ADD CONSTRAINT secretariat_stores_pkey PRIMARY KEY (id);


--
-- Name: select_a_p_i_s select_a_p_i_s_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.select_a_p_i_s
    ADD CONSTRAINT select_a_p_i_s_pkey PRIMARY KEY (id);


--
-- Name: server_d_b_s server_d_b_s_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_d_b_s
    ADD CONSTRAINT server_d_b_s_pkey PRIMARY KEY (id);


--
-- Name: services_reals services_reals_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.services_reals
    ADD CONSTRAINT services_reals_pkey PRIMARY KEY (id);


--
-- Name: settlements settlements_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.settlements
    ADD CONSTRAINT settlements_pkey PRIMARY KEY (id);


--
-- Name: sewing_accessories sewing_accessories_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_accessories
    ADD CONSTRAINT sewing_accessories_pkey PRIMARY KEY (id);


--
-- Name: sewing_al_kabkat sewing_al_kabkat_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_al_kabkat
    ADD CONSTRAINT sewing_al_kabkat_pkey PRIMARY KEY (id);


--
-- Name: sewing_al_taktak sewing_al_taktak_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_al_taktak
    ADD CONSTRAINT sewing_al_taktak_pkey PRIMARY KEY (id);


--
-- Name: sewing_buttons sewing_buttons_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_buttons
    ADD CONSTRAINT sewing_buttons_pkey PRIMARY KEY (id);


--
-- Name: sewing_chest_pocket_fillings sewing_chest_pocket_fillings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_chest_pocket_fillings
    ADD CONSTRAINT sewing_chest_pocket_fillings_pkey PRIMARY KEY (id);


--
-- Name: sewing_chest_pockets sewing_chest_pockets_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_chest_pockets
    ADD CONSTRAINT sewing_chest_pockets_pkey PRIMARY KEY (id);


--
-- Name: sewing_collar_paddings sewing_collar_paddings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_collar_paddings
    ADD CONSTRAINT sewing_collar_paddings_pkey PRIMARY KEY (id);


--
-- Name: sewing_collars sewing_collars_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_collars
    ADD CONSTRAINT sewing_collars_pkey PRIMARY KEY (id);


--
-- Name: sewing_cseed_sleeves sewing_cseed_sleeves_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_cseed_sleeves
    ADD CONSTRAINT sewing_cseed_sleeves_pkey PRIMARY KEY (id);


--
-- Name: sewing_cupcake_fillings sewing_cupcake_fillings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_cupcake_fillings
    ADD CONSTRAINT sewing_cupcake_fillings_pkey PRIMARY KEY (id);


--
-- Name: sewing_embroideries sewing_embroideries_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_embroideries
    ADD CONSTRAINT sewing_embroideries_pkey PRIMARY KEY (id);


--
-- Name: sewing_order_modules sewing_order_modules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_order_modules
    ADD CONSTRAINT sewing_order_modules_pkey PRIMARY KEY (id);


--
-- Name: sewing_orders sewing_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_orders
    ADD CONSTRAINT sewing_orders_pkey PRIMARY KEY (id);


--
-- Name: sewing_request_details sewing_request_details_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_request_details
    ADD CONSTRAINT sewing_request_details_pkey PRIMARY KEY (id);


--
-- Name: sewing_requests sewing_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_requests
    ADD CONSTRAINT sewing_requests_pkey PRIMARY KEY (id);


--
-- Name: sewing_seed_fillings sewing_seed_fillings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_seed_fillings
    ADD CONSTRAINT sewing_seed_fillings_pkey PRIMARY KEY (id);


--
-- Name: sewing_seeds sewing_seeds_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_seeds
    ADD CONSTRAINT sewing_seeds_pkey PRIMARY KEY (id);


--
-- Name: sewing_side_pockets sewing_side_pockets_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_side_pockets
    ADD CONSTRAINT sewing_side_pockets_pkey PRIMARY KEY (id);


--
-- Name: sewing_sleeves sewing_sleeves_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_sleeves
    ADD CONSTRAINT sewing_sleeves_pkey PRIMARY KEY (id);


--
-- Name: sewing_types sewing_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_types
    ADD CONSTRAINT sewing_types_pkey PRIMARY KEY (id);


--
-- Name: shifts shifts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shifts
    ADD CONSTRAINT shifts_pkey PRIMARY KEY (id);


--
-- Name: shipment_moves shipment_moves_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipment_moves
    ADD CONSTRAINT shipment_moves_pkey PRIMARY KEY (id);


--
-- Name: shipment_receipts_clients shipment_receipts_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipment_receipts_clients
    ADD CONSTRAINT shipment_receipts_clients_pkey PRIMARY KEY (id);


--
-- Name: shipment_receipts_lists shipment_receipts_lists_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipment_receipts_lists
    ADD CONSTRAINT shipment_receipts_lists_pkey PRIMARY KEY (id);


--
-- Name: shipment_receipts shipment_receipts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipment_receipts
    ADD CONSTRAINT shipment_receipts_pkey PRIMARY KEY (id);


--
-- Name: shipment_requests shipment_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipment_requests
    ADD CONSTRAINT shipment_requests_pkey PRIMARY KEY (id);


--
-- Name: shipments_distribution_goods shipments_distribution_goods_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipments_distribution_goods
    ADD CONSTRAINT shipments_distribution_goods_pkey PRIMARY KEY (id);


--
-- Name: shipments_distribution_workers shipments_distribution_workers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipments_distribution_workers
    ADD CONSTRAINT shipments_distribution_workers_pkey PRIMARY KEY (id);


--
-- Name: shipments_distributions shipments_distributions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipments_distributions
    ADD CONSTRAINT shipments_distributions_pkey PRIMARY KEY (id);


--
-- Name: shipments shipments_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipments
    ADD CONSTRAINT shipments_pkey PRIMARY KEY (id);


--
-- Name: shipping_companies shipping_companies_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipping_companies
    ADD CONSTRAINT shipping_companies_pkey PRIMARY KEY (id);


--
-- Name: shipping_defaults shipping_defaults_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipping_defaults
    ADD CONSTRAINT shipping_defaults_pkey PRIMARY KEY (id);


--
-- Name: shipping_list_tickets shipping_list_tickets_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipping_list_tickets
    ADD CONSTRAINT shipping_list_tickets_pkey PRIMARY KEY (id);


--
-- Name: shipping_lists shipping_lists_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipping_lists
    ADD CONSTRAINT shipping_lists_pkey PRIMARY KEY (id);


--
-- Name: shipping_orders shipping_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipping_orders
    ADD CONSTRAINT shipping_orders_pkey PRIMARY KEY (id);


--
-- Name: shipping_prices shipping_prices_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipping_prices
    ADD CONSTRAINT shipping_prices_pkey PRIMARY KEY (id);


--
-- Name: shipping_statuses shipping_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipping_statuses
    ADD CONSTRAINT shipping_statuses_pkey PRIMARY KEY (id);


--
-- Name: shipping_types shipping_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipping_types
    ADD CONSTRAINT shipping_types_pkey PRIMARY KEY (id);


--
-- Name: shippment_products shippment_products_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shippment_products
    ADD CONSTRAINT shippment_products_pkey PRIMARY KEY (id);


--
-- Name: shortcomings shortcomings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shortcomings
    ADD CONSTRAINT shortcomings_pkey PRIMARY KEY (id);


--
-- Name: show_print_defaults show_print_defaults_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.show_print_defaults
    ADD CONSTRAINT show_print_defaults_pkey PRIMARY KEY (id);


--
-- Name: social_media social_media_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.social_media
    ADD CONSTRAINT social_media_pkey PRIMARY KEY (id);


--
-- Name: special_cases special_cases_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.special_cases
    ADD CONSTRAINT special_cases_pkey PRIMARY KEY (id);


--
-- Name: spend_profits spend_profits_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.spend_profits
    ADD CONSTRAINT spend_profits_pkey PRIMARY KEY (id);


--
-- Name: start_periods start_periods_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.start_periods
    ADD CONSTRAINT start_periods_pkey PRIMARY KEY (id);


--
-- Name: store_count_sales store_count_sales_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.store_count_sales
    ADD CONSTRAINT store_count_sales_pkey PRIMARY KEY (id);


--
-- Name: store_counts store_counts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.store_counts
    ADD CONSTRAINT store_counts_pkey PRIMARY KEY (id);


--
-- Name: store_transfer_filter_twos store_transfer_filter_twos_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.store_transfer_filter_twos
    ADD CONSTRAINT store_transfer_filter_twos_pkey PRIMARY KEY (id);


--
-- Name: store_transfer_filters store_transfer_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.store_transfer_filters
    ADD CONSTRAINT store_transfer_filters_pkey PRIMARY KEY (id);


--
-- Name: stores_default_data stores_default_data_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_default_data
    ADD CONSTRAINT stores_default_data_pkey PRIMARY KEY (id);


--
-- Name: stores_moves_columns stores_moves_columns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_moves_columns
    ADD CONSTRAINT stores_moves_columns_pkey PRIMARY KEY (id);


--
-- Name: stores_moves_columns_sechdules stores_moves_columns_sechdules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_moves_columns_sechdules
    ADD CONSTRAINT stores_moves_columns_sechdules_pkey PRIMARY KEY (id);


--
-- Name: stores_moves_filter_twos stores_moves_filter_twos_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_moves_filter_twos
    ADD CONSTRAINT stores_moves_filter_twos_pkey PRIMARY KEY (id);


--
-- Name: stores_moves_filters stores_moves_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_moves_filters
    ADD CONSTRAINT stores_moves_filters_pkey PRIMARY KEY (id);


--
-- Name: stores_moves stores_moves_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_moves
    ADD CONSTRAINT stores_moves_pkey PRIMARY KEY (id);


--
-- Name: stores stores_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores
    ADD CONSTRAINT stores_pkey PRIMARY KEY (id);


--
-- Name: stores_transfer_columns stores_transfer_columns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_transfer_columns
    ADD CONSTRAINT stores_transfer_columns_pkey PRIMARY KEY (id);


--
-- Name: stores_transfer_columns_sechdules stores_transfer_columns_sechdules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_transfer_columns_sechdules
    ADD CONSTRAINT stores_transfer_columns_sechdules_pkey PRIMARY KEY (id);


--
-- Name: stors_transfers stors_transfers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stors_transfers
    ADD CONSTRAINT stors_transfers_pkey PRIMARY KEY (id);


--
-- Name: student_groups student_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.student_groups
    ADD CONSTRAINT student_groups_pkey PRIMARY KEY (id);


--
-- Name: student_importants student_importants_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.student_importants
    ADD CONSTRAINT student_importants_pkey PRIMARY KEY (id);


--
-- Name: students students_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.students
    ADD CONSTRAINT students_pkey PRIMARY KEY (id);


--
-- Name: sub_images sub_images_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sub_images
    ADD CONSTRAINT sub_images_pkey PRIMARY KEY (id);


--
-- Name: sub_virables sub_virables_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sub_virables
    ADD CONSTRAINT sub_virables_pkey PRIMARY KEY (id);


--
-- Name: subscribe_types subscribe_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.subscribe_types
    ADD CONSTRAINT subscribe_types_pkey PRIMARY KEY (id);


--
-- Name: sup_pages_e_com_designs sup_pages_e_com_designs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sup_pages_e_com_designs
    ADD CONSTRAINT sup_pages_e_com_designs_pkey PRIMARY KEY (id);


--
-- Name: sup_pages_part_two_e_com_designs sup_pages_part_two_e_com_designs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sup_pages_part_two_e_com_designs
    ADD CONSTRAINT sup_pages_part_two_e_com_designs_pkey PRIMARY KEY (id);


--
-- Name: sup_pages_wish_comp_e_com_designs sup_pages_wish_comp_e_com_designs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sup_pages_wish_comp_e_com_designs
    ADD CONSTRAINT sup_pages_wish_comp_e_com_designs_pkey PRIMARY KEY (id);


--
-- Name: taxes taxes_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.taxes
    ADD CONSTRAINT taxes_pkey PRIMARY KEY (id);


--
-- Name: teachers_groups teachers_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.teachers_groups
    ADD CONSTRAINT teachers_groups_pkey PRIMARY KEY (id);


--
-- Name: teachers teachers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.teachers
    ADD CONSTRAINT teachers_pkey PRIMARY KEY (id);


--
-- Name: teachers_subjects teachers_subjects_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.teachers_subjects
    ADD CONSTRAINT teachers_subjects_pkey PRIMARY KEY (id);


--
-- Name: tenants tenants_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tenants
    ADD CONSTRAINT tenants_pkey PRIMARY KEY (id);


--
-- Name: terms_maintainces terms_maintainces_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.terms_maintainces
    ADD CONSTRAINT terms_maintainces_pkey PRIMARY KEY (id);


--
-- Name: terms terms_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.terms
    ADD CONSTRAINT terms_pkey PRIMARY KEY (id);


--
-- Name: testclients testclients_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.testclients
    ADD CONSTRAINT testclients_pkey PRIMARY KEY (id);


--
-- Name: ticekt_issues ticekt_issues_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ticekt_issues
    ADD CONSTRAINT ticekt_issues_pkey PRIMARY KEY (id);


--
-- Name: ticket_products ticket_products_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ticket_products
    ADD CONSTRAINT ticket_products_pkey PRIMARY KEY (id);


--
-- Name: tickets tickets_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tickets
    ADD CONSTRAINT tickets_pkey PRIMARY KEY (id);


--
-- Name: translation_tourism_companies translation_tourism_companies_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.translation_tourism_companies
    ADD CONSTRAINT translation_tourism_companies_pkey PRIMARY KEY (id);


--
-- Name: translte_modules_details translte_modules_details_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.translte_modules_details
    ADD CONSTRAINT translte_modules_details_pkey PRIMARY KEY (id);


--
-- Name: translte_modules translte_modules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.translte_modules
    ADD CONSTRAINT translte_modules_pkey PRIMARY KEY (id);


--
-- Name: transltors transltors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.transltors
    ADD CONSTRAINT transltors_pkey PRIMARY KEY (id);


--
-- Name: transport_contractors transport_contractors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.transport_contractors
    ADD CONSTRAINT transport_contractors_pkey PRIMARY KEY (id);


--
-- Name: transport_permit_details transport_permit_details_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.transport_permit_details
    ADD CONSTRAINT transport_permit_details_pkey PRIMARY KEY (id);


--
-- Name: transport_permits transport_permits_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.transport_permits
    ADD CONSTRAINT transport_permits_pkey PRIMARY KEY (id);


--
-- Name: transport_prices transport_prices_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.transport_prices
    ADD CONSTRAINT transport_prices_pkey PRIMARY KEY (id);


--
-- Name: transport_receivers transport_receivers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.transport_receivers
    ADD CONSTRAINT transport_receivers_pkey PRIMARY KEY (id);


--
-- Name: transports transports_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.transports
    ADD CONSTRAINT transports_pkey PRIMARY KEY (id);


--
-- Name: unloading_shipments_goods unloading_shipments_goods_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unloading_shipments_goods
    ADD CONSTRAINT unloading_shipments_goods_pkey PRIMARY KEY (id);


--
-- Name: unloading_shipments unloading_shipments_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unloading_shipments
    ADD CONSTRAINT unloading_shipments_pkey PRIMARY KEY (id);


--
-- Name: unloading_shipments_workers unloading_shipments_workers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unloading_shipments_workers
    ADD CONSTRAINT unloading_shipments_workers_pkey PRIMARY KEY (id);


--
-- Name: update_values_investors update_values_investors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.update_values_investors
    ADD CONSTRAINT update_values_investors_pkey PRIMARY KEY (id);


--
-- Name: upload_accountings upload_accountings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.upload_accountings
    ADD CONSTRAINT upload_accountings_pkey PRIMARY KEY (id);


--
-- Name: users_moves users_moves_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.users_moves
    ADD CONSTRAINT users_moves_pkey PRIMARY KEY (id);


--
-- Name: v_a_prices v_a_prices_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.v_a_prices
    ADD CONSTRAINT v_a_prices_pkey PRIMARY KEY (id);


--
-- Name: v_a_products v_a_products_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.v_a_products
    ADD CONSTRAINT v_a_products_pkey PRIMARY KEY (id);


--
-- Name: v_a_qties v_a_qties_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.v_a_qties
    ADD CONSTRAINT v_a_qties_pkey PRIMARY KEY (id);


--
-- Name: vendor_account_statement_column_sechdules vendor_account_statement_column_sechdules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vendor_account_statement_column_sechdules
    ADD CONSTRAINT vendor_account_statement_column_sechdules_pkey PRIMARY KEY (id);


--
-- Name: vendor_account_statement_columns vendor_account_statement_columns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vendor_account_statement_columns
    ADD CONSTRAINT vendor_account_statement_columns_pkey PRIMARY KEY (id);


--
-- Name: vendor_filters vendor_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vendor_filters
    ADD CONSTRAINT vendor_filters_pkey PRIMARY KEY (id);


--
-- Name: vendor_products vendor_products_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vendor_products
    ADD CONSTRAINT vendor_products_pkey PRIMARY KEY (id);


--
-- Name: vendors vendors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vendors
    ADD CONSTRAINT vendors_pkey PRIMARY KEY (id);


--
-- Name: vendors_statements_column_sechdules vendors_statements_column_sechdules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vendors_statements_column_sechdules
    ADD CONSTRAINT vendors_statements_column_sechdules_pkey PRIMARY KEY (id);


--
-- Name: vendors_statements_columns vendors_statements_columns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vendors_statements_columns
    ADD CONSTRAINT vendors_statements_columns_pkey PRIMARY KEY (id);


--
-- Name: virables virables_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.virables
    ADD CONSTRAINT virables_pkey PRIMARY KEY (id);


--
-- Name: vouchers vouchers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vouchers
    ADD CONSTRAINT vouchers_pkey PRIMARY KEY (id);


--
-- Name: web_sliders web_sliders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.web_sliders
    ADD CONSTRAINT web_sliders_pkey PRIMARY KEY (id);


--
-- Name: wishlists wishlists_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.wishlists
    ADD CONSTRAINT wishlists_pkey PRIMARY KEY (id);


--
-- Name: work_departments work_departments_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.work_departments
    ADD CONSTRAINT work_departments_pkey PRIMARY KEY (id);


--
-- Name: workers_sales_petrols workers_sales_petrols_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workers_sales_petrols
    ADD CONSTRAINT workers_sales_petrols_pkey PRIMARY KEY (id);


--
-- Name: zkteco_devices zkteco_devices_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.zkteco_devices
    ADD CONSTRAINT zkteco_devices_pkey PRIMARY KEY (id);


--
-- Name: firewall_ips_ip_index; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX firewall_ips_ip_index ON public.firewall_ips USING btree (ip);


--
-- Name: firewall_logs_ip_index; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX firewall_logs_ip_index ON public.firewall_logs USING btree (ip);


--
-- Name: jobs_queue_index; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX jobs_queue_index ON public.jobs USING btree (queue);


--
-- Name: model_has_permissions_model_id_model_type_index; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX model_has_permissions_model_id_model_type_index ON public.model_has_permissions USING btree (model_id, model_type);


--
-- Name: model_has_roles_model_id_model_type_index; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX model_has_roles_model_id_model_type_index ON public.model_has_roles USING btree (model_id, model_type);


--
-- Name: password_resets_email_index; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX password_resets_email_index ON public.password_resets USING btree (email);


--
-- Name: acccounting_manuals acccounting_manuals_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acccounting_manuals
    ADD CONSTRAINT acccounting_manuals_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: accounts_default_data accounts_default_data_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.accounts_default_data
    ADD CONSTRAINT accounts_default_data_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: addressses addressses_city_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.addressses
    ADD CONSTRAINT addressses_city_foreign FOREIGN KEY ("City") REFERENCES public.cities(id) ON DELETE CASCADE;


--
-- Name: addressses addressses_governrate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.addressses
    ADD CONSTRAINT addressses_governrate_foreign FOREIGN KEY ("Governrate") REFERENCES public.governrates(id) ON DELETE CASCADE;


--
-- Name: assembly_products assembly_products_p_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assembly_products
    ADD CONSTRAINT assembly_products_p_id_foreign FOREIGN KEY (p_id) REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: assembly_products assembly_products_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assembly_products
    ADD CONSTRAINT assembly_products_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: assembly_products assembly_products_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assembly_products
    ADD CONSTRAINT assembly_products_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: assets assets_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assets
    ADD CONSTRAINT assets_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: assets assets_depreciation_complex_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assets
    ADD CONSTRAINT assets_depreciation_complex_foreign FOREIGN KEY ("Depreciation_Complex") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: assets assets_depreciation_expenses_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assets
    ADD CONSTRAINT assets_depreciation_expenses_foreign FOREIGN KEY ("Depreciation_Expenses") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: assets_expenses assets_expenses_asset_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assets_expenses
    ADD CONSTRAINT assets_expenses_asset_foreign FOREIGN KEY ("Asset") REFERENCES public.assets(id) ON DELETE CASCADE;


--
-- Name: assets_expenses assets_expenses_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assets_expenses
    ADD CONSTRAINT assets_expenses_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: assets_expenses assets_expenses_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assets_expenses
    ADD CONSTRAINT assets_expenses_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: assets_expenses assets_expenses_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assets_expenses
    ADD CONSTRAINT assets_expenses_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: assets_expenses assets_expenses_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assets_expenses
    ADD CONSTRAINT assets_expenses_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: assets assets_main_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assets
    ADD CONSTRAINT assets_main_account_foreign FOREIGN KEY ("Main_Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: assets assets_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assets
    ADD CONSTRAINT assets_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: attendance_emps attendance_emps_attend_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.attendance_emps
    ADD CONSTRAINT attendance_emps_attend_foreign FOREIGN KEY ("Attend") REFERENCES public.attendances(id) ON DELETE CASCADE;


--
-- Name: attendance_emps attendance_emps_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.attendance_emps
    ADD CONSTRAINT attendance_emps_emp_foreign FOREIGN KEY ("Emp") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: attendances attendances_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.attendances
    ADD CONSTRAINT attendances_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: barcode_products barcode_products_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.barcode_products
    ADD CONSTRAINT barcode_products_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: barcode_products barcode_products_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.barcode_products
    ADD CONSTRAINT barcode_products_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: barcode_products barcode_products_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.barcode_products
    ADD CONSTRAINT barcode_products_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: barcode_products barcode_products_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.barcode_products
    ADD CONSTRAINT barcode_products_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: bones_sales_petrols bones_sales_petrols_salespetrol_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bones_sales_petrols
    ADD CONSTRAINT bones_sales_petrols_salespetrol_foreign FOREIGN KEY ("SalesPetrol") REFERENCES public.sales_petrols(id) ON DELETE CASCADE;


--
-- Name: bones_types bones_types_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bones_types
    ADD CONSTRAINT bones_types_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: borrowas borrowas_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.borrowas
    ADD CONSTRAINT borrowas_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: borrowas borrowas_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.borrowas
    ADD CONSTRAINT borrowas_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: borrowas borrowas_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.borrowas
    ADD CONSTRAINT borrowas_emp_foreign FOREIGN KEY ("Emp") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: borrowas borrowas_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.borrowas
    ADD CONSTRAINT borrowas_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: borrowas borrowas_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.borrowas
    ADD CONSTRAINT borrowas_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: campaigns campaigns_platform_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaigns
    ADD CONSTRAINT campaigns_platform_foreign FOREIGN KEY ("Platform") REFERENCES public.platforms(id) ON DELETE CASCADE;


--
-- Name: cars_sales_petrols cars_sales_petrols_salespetrol_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cars_sales_petrols
    ADD CONSTRAINT cars_sales_petrols_salespetrol_foreign FOREIGN KEY ("SalesPetrol") REFERENCES public.sales_petrols(id) ON DELETE CASCADE;


--
-- Name: cities cities_gov_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cities
    ADD CONSTRAINT cities_gov_foreign FOREIGN KEY ("Gov") REFERENCES public.governrates(id) ON DELETE CASCADE;


--
-- Name: client_sales_petrols client_sales_petrols_salespetrol_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.client_sales_petrols
    ADD CONSTRAINT client_sales_petrols_salespetrol_foreign FOREIGN KEY ("SalesPetrol") REFERENCES public.sales_petrols(id) ON DELETE CASCADE;


--
-- Name: comments comments_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.comments
    ADD CONSTRAINT comments_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: comments comments_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.comments
    ADD CONSTRAINT comments_user_foreign FOREIGN KEY ("User") REFERENCES public.customers(id) ON DELETE CASCADE;


--
-- Name: company_cars company_cars_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.company_cars
    ADD CONSTRAINT company_cars_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: compares compares_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.compares
    ADD CONSTRAINT compares_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: compares compares_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.compares
    ADD CONSTRAINT compares_user_foreign FOREIGN KEY ("User") REFERENCES public.customers(id) ON DELETE CASCADE;


--
-- Name: consists consists_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.consists
    ADD CONSTRAINT consists_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: consists consists_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.consists
    ADD CONSTRAINT consists_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: consists consists_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.consists
    ADD CONSTRAINT consists_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: consists consists_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.consists
    ADD CONSTRAINT consists_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: counters_types counters_types_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.counters_types
    ADD CONSTRAINT counters_types_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: counters_types counters_types_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.counters_types
    ADD CONSTRAINT counters_types_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: crm_default_data crm_default_data_activity_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.crm_default_data
    ADD CONSTRAINT crm_default_data_activity_foreign FOREIGN KEY ("Activity") REFERENCES public.activites(id) ON DELETE CASCADE;


--
-- Name: crm_default_data crm_default_data_campagin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.crm_default_data
    ADD CONSTRAINT crm_default_data_campagin_foreign FOREIGN KEY ("Campagin") REFERENCES public.campaigns(id) ON DELETE CASCADE;


--
-- Name: crm_default_data crm_default_data_city_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.crm_default_data
    ADD CONSTRAINT crm_default_data_city_foreign FOREIGN KEY ("City") REFERENCES public.cities(id) ON DELETE CASCADE;


--
-- Name: crm_default_data crm_default_data_clientstatus_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.crm_default_data
    ADD CONSTRAINT crm_default_data_clientstatus_foreign FOREIGN KEY ("ClientStatus") REFERENCES public.client_statuses(id) ON DELETE CASCADE;


--
-- Name: crm_default_data crm_default_data_governrate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.crm_default_data
    ADD CONSTRAINT crm_default_data_governrate_foreign FOREIGN KEY ("Governrate") REFERENCES public.governrates(id) ON DELETE CASCADE;


--
-- Name: crm_default_data crm_default_data_platforms_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.crm_default_data
    ADD CONSTRAINT crm_default_data_platforms_foreign FOREIGN KEY ("Platforms") REFERENCES public.platforms(id) ON DELETE CASCADE;


--
-- Name: crm_default_data crm_default_data_responsible_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.crm_default_data
    ADD CONSTRAINT crm_default_data_responsible_foreign FOREIGN KEY ("Responsible") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: customer_comments_products customer_comments_products_comment_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customer_comments_products
    ADD CONSTRAINT customer_comments_products_comment_foreign FOREIGN KEY ("Comment") REFERENCES public.comments_clients(id) ON DELETE CASCADE;


--
-- Name: customer_comments_products customer_comments_products_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customer_comments_products
    ADD CONSTRAINT customer_comments_products_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: customer_sizes customer_sizes_customers_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customer_sizes
    ADD CONSTRAINT customer_sizes_customers_id_foreign FOREIGN KEY ("Customers_ID") REFERENCES public.customers(id) ON DELETE CASCADE;


--
-- Name: customers_files customers_files_customer_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers_files
    ADD CONSTRAINT customers_files_customer_foreign FOREIGN KEY ("Customer") REFERENCES public.customers(id) ON DELETE CASCADE;


--
-- Name: customers_tickets customers_tickets_customer_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers_tickets
    ADD CONSTRAINT customers_tickets_customer_foreign FOREIGN KEY ("Customer") REFERENCES public.customers(id) ON DELETE CASCADE;


--
-- Name: customers_tickets customers_tickets_responsible_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers_tickets
    ADD CONSTRAINT customers_tickets_responsible_foreign FOREIGN KEY ("Responsible") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: customers_tickets customers_tickets_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers_tickets
    ADD CONSTRAINT customers_tickets_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: deductions deductions_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.deductions
    ADD CONSTRAINT deductions_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: deductions deductions_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.deductions
    ADD CONSTRAINT deductions_emp_foreign FOREIGN KEY ("Emp") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: deductions deductions_type_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.deductions
    ADD CONSTRAINT deductions_type_foreign FOREIGN KEY ("Type") REFERENCES public.deducations_types(id) ON DELETE CASCADE;


--
-- Name: deductions deductions_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.deductions
    ADD CONSTRAINT deductions_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: default_sewing_orders default_sewing_orders_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_sewing_orders
    ADD CONSTRAINT default_sewing_orders_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: default_sewing_orders default_sewing_orders_branch_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_sewing_orders
    ADD CONSTRAINT default_sewing_orders_branch_foreign FOREIGN KEY ("Branch") REFERENCES public.branches(id) ON DELETE CASCADE;


--
-- Name: default_sewing_orders default_sewing_orders_client_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_sewing_orders
    ADD CONSTRAINT default_sewing_orders_client_foreign FOREIGN KEY ("Client") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: default_sewing_orders default_sewing_orders_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_sewing_orders
    ADD CONSTRAINT default_sewing_orders_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: default_sewing_orders default_sewing_orders_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_sewing_orders
    ADD CONSTRAINT default_sewing_orders_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: default_sewing_orders default_sewing_orders_delegate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_sewing_orders
    ADD CONSTRAINT default_sewing_orders_delegate_foreign FOREIGN KEY ("Delegate") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: default_sewing_orders default_sewing_orders_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_sewing_orders
    ADD CONSTRAINT default_sewing_orders_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: default_sewing_orders default_sewing_orders_recivedbranch_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_sewing_orders
    ADD CONSTRAINT default_sewing_orders_recivedbranch_foreign FOREIGN KEY ("RecivedBranch") REFERENCES public.branches(id) ON DELETE CASCADE;


--
-- Name: default_sewing_orders default_sewing_orders_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_sewing_orders
    ADD CONSTRAINT default_sewing_orders_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: default_sewing_orders default_sewing_orders_sewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_sewing_orders
    ADD CONSTRAINT default_sewing_orders_sewingtype_foreign FOREIGN KEY ("SewingType") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: default_sewing_orders default_sewing_orders_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_sewing_orders
    ADD CONSTRAINT default_sewing_orders_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: departure_emps departure_emps_departure_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.departure_emps
    ADD CONSTRAINT departure_emps_departure_foreign FOREIGN KEY ("Departure") REFERENCES public.departures(id) ON DELETE CASCADE;


--
-- Name: departure_emps departure_emps_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.departure_emps
    ADD CONSTRAINT departure_emps_emp_foreign FOREIGN KEY ("Emp") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: departures departures_attend_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.departures
    ADD CONSTRAINT departures_attend_foreign FOREIGN KEY ("Attend") REFERENCES public.attendances(id) ON DELETE CASCADE;


--
-- Name: departures departures_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.departures
    ADD CONSTRAINT departures_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: devices_typesies devices_typesies_company_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.devices_typesies
    ADD CONSTRAINT devices_typesies_company_foreign FOREIGN KEY ("Company") REFERENCES public.manufacture_companies(id) ON DELETE CASCADE;


--
-- Name: domains domains_tenant_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.domains
    ADD CONSTRAINT domains_tenant_id_foreign FOREIGN KEY (tenant_id) REFERENCES public.tenants(id) ON UPDATE CASCADE ON DELETE CASCADE;


--
-- Name: emp_installment_details emp_installment_details_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_installment_details
    ADD CONSTRAINT emp_installment_details_emp_foreign FOREIGN KEY ("Emp") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: emp_installment_details emp_installment_details_install_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_installment_details
    ADD CONSTRAINT emp_installment_details_install_foreign FOREIGN KEY ("Install") REFERENCES public.emp_installments(id) ON DELETE CASCADE;


--
-- Name: emp_installments emp_installments_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_installments
    ADD CONSTRAINT emp_installments_emp_foreign FOREIGN KEY ("Emp") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: emp_installments emp_installments_loan_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_installments
    ADD CONSTRAINT emp_installments_loan_foreign FOREIGN KEY ("Loan") REFERENCES public.loans(id) ON DELETE CASCADE;


--
-- Name: emp_p_o_s_stores emp_p_o_s_stores_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_p_o_s_stores
    ADD CONSTRAINT emp_p_o_s_stores_emp_foreign FOREIGN KEY ("Emp") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: emp_ratios emp_ratios_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.emp_ratios
    ADD CONSTRAINT emp_ratios_emp_foreign FOREIGN KEY ("Emp") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: entitlements entitlements_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.entitlements
    ADD CONSTRAINT entitlements_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: entitlements entitlements_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.entitlements
    ADD CONSTRAINT entitlements_emp_foreign FOREIGN KEY ("Emp") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: entitlements entitlements_type_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.entitlements
    ADD CONSTRAINT entitlements_type_foreign FOREIGN KEY ("Type") REFERENCES public.beneftis_types(id) ON DELETE CASCADE;


--
-- Name: entitlements entitlements_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.entitlements
    ADD CONSTRAINT entitlements_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: examinations_types examinations_types_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.examinations_types
    ADD CONSTRAINT examinations_types_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: exchange_commissions exchange_commissions_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.exchange_commissions
    ADD CONSTRAINT exchange_commissions_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: exchange_commissions exchange_commissions_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.exchange_commissions
    ADD CONSTRAINT exchange_commissions_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: exchange_commissions exchange_commissions_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.exchange_commissions
    ADD CONSTRAINT exchange_commissions_emp_foreign FOREIGN KEY ("Emp") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: exchange_commissions exchange_commissions_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.exchange_commissions
    ADD CONSTRAINT exchange_commissions_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: exchange_commissions exchange_commissions_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.exchange_commissions
    ADD CONSTRAINT exchange_commissions_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_armport_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_armport_foreign FOREIGN KEY ("ArmPort") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_client_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_client_foreign FOREIGN KEY ("Client") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_collaroutlet_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_collaroutlet_foreign FOREIGN KEY ("CollarOutlet") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_complaintport_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_complaintport_foreign FOREIGN KEY ("ComplaintPort") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_cutreferences_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_cutreferences_foreign FOREIGN KEY ("CutReferences") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_dataentry_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_dataentry_foreign FOREIGN KEY ("DataEntry") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_delivery_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_delivery_foreign FOREIGN KEY ("Delivery") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_frontpocketport_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_frontpocketport_foreign FOREIGN KEY ("FrontPocketPort") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_ironingport_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_ironingport_foreign FOREIGN KEY ("IroningPort") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_measurementport_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_measurementport_foreign FOREIGN KEY ("MeasurementPort") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_packagingport_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_packagingport_foreign FOREIGN KEY ("PackagingPort") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_pocketport_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_pocketport_foreign FOREIGN KEY ("PocketPort") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_productionmanager_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_productionmanager_foreign FOREIGN KEY ("ProductionManager") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_qualitycontroller_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_qualitycontroller_foreign FOREIGN KEY ("QualityController") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_quantumport_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_quantumport_foreign FOREIGN KEY ("QuantumPort") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_seedfillingport_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_seedfillingport_foreign FOREIGN KEY ("SeedFillingPort") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_sewingorder_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_sewingorder_foreign FOREIGN KEY ("SewingOrder") REFERENCES public.sewing_orders(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_shearoutletassistant_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_shearoutletassistant_foreign FOREIGN KEY ("ShearOutletAssistant") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_shearport_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_shearport_foreign FOREIGN KEY ("ShearPort") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_shoulderport_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_shoulderport_foreign FOREIGN KEY ("ShoulderPort") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_sideport_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_sideport_foreign FOREIGN KEY ("SidePort") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_snapport_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_snapport_foreign FOREIGN KEY ("SnapPort") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: execute_sewing_orders execute_sewing_orders_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.execute_sewing_orders
    ADD CONSTRAINT execute_sewing_orders_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: executing_receivings executing_receivings_model_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.executing_receivings
    ADD CONSTRAINT executing_receivings_model_foreign FOREIGN KEY ("Model") REFERENCES public.manufacturing_models(id) ON DELETE CASCADE;


--
-- Name: executing_receivings executing_receivings_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.executing_receivings
    ADD CONSTRAINT executing_receivings_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: export_checks export_checks_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.export_checks
    ADD CONSTRAINT export_checks_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: export_checks export_checks_bank_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.export_checks
    ADD CONSTRAINT export_checks_bank_foreign FOREIGN KEY ("Bank") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: export_checks export_checks_bene_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.export_checks
    ADD CONSTRAINT export_checks_bene_account_foreign FOREIGN KEY ("Bene_Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: export_checks export_checks_check_type_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.export_checks
    ADD CONSTRAINT export_checks_check_type_foreign FOREIGN KEY ("Check_Type") REFERENCES public.checks_types(id) ON DELETE CASCADE;


--
-- Name: export_checks export_checks_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.export_checks
    ADD CONSTRAINT export_checks_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: export_checks export_checks_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.export_checks
    ADD CONSTRAINT export_checks_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: export_checks export_checks_pay_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.export_checks
    ADD CONSTRAINT export_checks_pay_account_foreign FOREIGN KEY ("Pay_Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: export_checks export_checks_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.export_checks
    ADD CONSTRAINT export_checks_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: general_dailies fk_admins_general_dailies; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.general_dailies
    ADD CONSTRAINT fk_admins_general_dailies FOREIGN KEY (userr) REFERENCES public.admins(id);


--
-- Name: assay_bill_details fk_assay_bills_assay_bill_details; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assay_bill_details
    ADD CONSTRAINT fk_assay_bills_assay_bill_details FOREIGN KEY ("Bill") REFERENCES public.assay_bills(id);


--
-- Name: product_moves fk_product_moves_acccounting_manuals; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_moves
    ADD CONSTRAINT fk_product_moves_acccounting_manuals FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id);


--
-- Name: product_return_without_bills fk_product_return_without_bills_products; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_return_without_bills
    ADD CONSTRAINT fk_product_return_without_bills_products FOREIGN KEY ("Product") REFERENCES public.products(id);


--
-- Name: product_return_without_bills fk_product_return_without_bills_return_without_bills; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_return_without_bills
    ADD CONSTRAINT fk_product_return_without_bills_return_without_bills FOREIGN KEY ("Bill") REFERENCES public.return_without_bills(id);


--
-- Name: products_return_maintaince_bills fk_products_return_maintaince_bills_admins; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_return_maintaince_bills
    ADD CONSTRAINT fk_products_return_maintaince_bills_admins FOREIGN KEY ("User") REFERENCES public.admins(id);


--
-- Name: products_return_maintaince_bills fk_products_return_maintaince_bills_branches; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_return_maintaince_bills
    ADD CONSTRAINT fk_products_return_maintaince_bills_branches FOREIGN KEY ("Branch") REFERENCES public.branches(id);


--
-- Name: products_return_maintaince_bills fk_products_return_maintaince_bills_brands; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_return_maintaince_bills
    ADD CONSTRAINT fk_products_return_maintaince_bills_brands FOREIGN KEY ("Brand") REFERENCES public.brands(id);


--
-- Name: products_return_maintaince_bills fk_products_return_maintaince_bills_employesses; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_return_maintaince_bills
    ADD CONSTRAINT fk_products_return_maintaince_bills_employesses FOREIGN KEY ("Recipient") REFERENCES public.employesses(id);


--
-- Name: products_return_maintaince_bills fk_products_return_maintaince_bills_items_groups; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_return_maintaince_bills
    ADD CONSTRAINT fk_products_return_maintaince_bills_items_groups FOREIGN KEY ("Group") REFERENCES public.items_groups(id);


--
-- Name: products fk_products_subscribe_types; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products
    ADD CONSTRAINT fk_products_subscribe_types FOREIGN KEY (subscribe_type) REFERENCES public.subscribe_types(id);


--
-- Name: sales fk_resturant_tables_sales; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales
    ADD CONSTRAINT fk_resturant_tables_sales FOREIGN KEY ("Table") REFERENCES public.resturant_tables(id);


--
-- Name: return_purches fk_return_purches_acccounting_manuals; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purches
    ADD CONSTRAINT fk_return_purches_acccounting_manuals FOREIGN KEY ("Vendor") REFERENCES public.acccounting_manuals(id);


--
-- Name: return_purches fk_return_purches_coins; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purches
    ADD CONSTRAINT fk_return_purches_coins FOREIGN KEY ("Coin") REFERENCES public.coins(id);


--
-- Name: return_purches fk_return_purches_cost_centers; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purches
    ADD CONSTRAINT fk_return_purches_cost_centers FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id);


--
-- Name: return_purches fk_return_purches_employesses; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purches
    ADD CONSTRAINT fk_return_purches_employesses FOREIGN KEY ("Delegate") REFERENCES public.employesses(id);


--
-- Name: return_purches fk_return_purches_shipping_companies; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purches
    ADD CONSTRAINT fk_return_purches_shipping_companies FOREIGN KEY ("Ship") REFERENCES public.shipping_companies(id);


--
-- Name: return_purches fk_return_purches_stores; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purches
    ADD CONSTRAINT fk_return_purches_stores FOREIGN KEY ("Store") REFERENCES public.stores(id);


--
-- Name: return_sales fk_return_sales_acccounting_manuals; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales
    ADD CONSTRAINT fk_return_sales_acccounting_manuals FOREIGN KEY ("Client") REFERENCES public.acccounting_manuals(id);


--
-- Name: return_sales fk_return_sales_coins; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales
    ADD CONSTRAINT fk_return_sales_coins FOREIGN KEY ("Coin") REFERENCES public.coins(id);


--
-- Name: return_sales fk_return_sales_cost_centers; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales
    ADD CONSTRAINT fk_return_sales_cost_centers FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id);


--
-- Name: return_sales fk_return_sales_employesses; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales
    ADD CONSTRAINT fk_return_sales_employesses FOREIGN KEY ("Delegate") REFERENCES public.employesses(id);


--
-- Name: return_sales fk_return_sales_shipping_companies; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales
    ADD CONSTRAINT fk_return_sales_shipping_companies FOREIGN KEY ("Ship") REFERENCES public.shipping_companies(id);


--
-- Name: return_sales fk_return_sales_stores; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales
    ADD CONSTRAINT fk_return_sales_stores FOREIGN KEY ("Store") REFERENCES public.stores(id);


--
-- Name: safe_transfers fk_safe_transfers_branches; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.safe_transfers
    ADD CONSTRAINT fk_safe_transfers_branches FOREIGN KEY ("Branch") REFERENCES public.branches(id);


--
-- Name: safe_transfers fk_safe_transfers_employesses; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.safe_transfers
    ADD CONSTRAINT fk_safe_transfers_employesses FOREIGN KEY ("Delegate") REFERENCES public.employesses(id);


--
-- Name: sales fk_sales_installment_companies; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales
    ADD CONSTRAINT fk_sales_installment_companies FOREIGN KEY ("InstallCompany") REFERENCES public.installment_companies(id);


--
-- Name: sales_orders fk_sales_orders_resturant_tables; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_orders
    ADD CONSTRAINT fk_sales_orders_resturant_tables FOREIGN KEY ("Table") REFERENCES public.resturant_tables(id);


--
-- Name: stores_moves fk_stores_moves_acccounting_manuals; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_moves
    ADD CONSTRAINT fk_stores_moves_acccounting_manuals FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id);


--
-- Name: stores_moves fk_stores_moves_admins; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_moves
    ADD CONSTRAINT fk_stores_moves_admins FOREIGN KEY ("User") REFERENCES public.admins(id);


--
-- Name: stores_moves fk_stores_moves_coins; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_moves
    ADD CONSTRAINT fk_stores_moves_coins FOREIGN KEY ("Coin") REFERENCES public.coins(id);


--
-- Name: stores_moves fk_stores_moves_cost_centers; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_moves
    ADD CONSTRAINT fk_stores_moves_cost_centers FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id);


--
-- Name: stores_moves fk_stores_moves_stores; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_moves
    ADD CONSTRAINT fk_stores_moves_stores FOREIGN KEY ("Store") REFERENCES public.stores(id);


--
-- Name: stors_transfers fk_stors_transfers_employesses; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stors_transfers
    ADD CONSTRAINT fk_stors_transfers_employesses FOREIGN KEY ("Delegate") REFERENCES public.employesses(id);


--
-- Name: stors_transfers fk_stors_transfers_shipping_companies; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stors_transfers
    ADD CONSTRAINT fk_stors_transfers_shipping_companies FOREIGN KEY ("Ship") REFERENCES public.shipping_companies(id);


--
-- Name: vendors fk_vendors_brands; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vendors
    ADD CONSTRAINT fk_vendors_brands FOREIGN KEY ("Brand") REFERENCES public.brands(id);


--
-- Name: vendors fk_vendors_cities; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vendors
    ADD CONSTRAINT fk_vendors_cities FOREIGN KEY ("City") REFERENCES public.cities(id);


--
-- Name: vendors fk_vendors_countris; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vendors
    ADD CONSTRAINT fk_vendors_countris FOREIGN KEY ("Nationality") REFERENCES public.countris(id);


--
-- Name: vendors fk_vendors_employesses; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vendors
    ADD CONSTRAINT fk_vendors_employesses FOREIGN KEY ("Responsible") REFERENCES public.employesses(id);


--
-- Name: vendors fk_vendors_governrates; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vendors
    ADD CONSTRAINT fk_vendors_governrates FOREIGN KEY ("Governrate") REFERENCES public.governrates(id);


--
-- Name: vendors fk_vendors_items_groups; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vendors
    ADD CONSTRAINT fk_vendors_items_groups FOREIGN KEY ("Pro_Group") REFERENCES public.items_groups(id);


--
-- Name: vendors fk_vendors_places; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vendors
    ADD CONSTRAINT fk_vendors_places FOREIGN KEY ("Place") REFERENCES public.places(id);


--
-- Name: general_dailies general_dailies_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.general_dailies
    ADD CONSTRAINT general_dailies_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: general_dailies general_dailies_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.general_dailies
    ADD CONSTRAINT general_dailies_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: general_dailies general_dailies_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.general_dailies
    ADD CONSTRAINT general_dailies_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: holidays holidays_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.holidays
    ADD CONSTRAINT holidays_emp_foreign FOREIGN KEY ("Emp") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: holidays holidays_type_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.holidays
    ADD CONSTRAINT holidays_type_foreign FOREIGN KEY ("Type") REFERENCES public.holidays_types(id) ON DELETE CASCADE;


--
-- Name: holidays holidays_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.holidays
    ADD CONSTRAINT holidays_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: incom_checks incom_checks_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.incom_checks
    ADD CONSTRAINT incom_checks_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: incom_checks incom_checks_arrest_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.incom_checks
    ADD CONSTRAINT incom_checks_arrest_account_foreign FOREIGN KEY ("Arrest_Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: incom_checks incom_checks_bank_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.incom_checks
    ADD CONSTRAINT incom_checks_bank_foreign FOREIGN KEY ("Bank") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: incom_checks incom_checks_bene_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.incom_checks
    ADD CONSTRAINT incom_checks_bene_account_foreign FOREIGN KEY ("Bene_Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: incom_checks incom_checks_check_type_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.incom_checks
    ADD CONSTRAINT incom_checks_check_type_foreign FOREIGN KEY ("Check_Type") REFERENCES public.checks_types(id) ON DELETE CASCADE;


--
-- Name: incom_checks incom_checks_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.incom_checks
    ADD CONSTRAINT incom_checks_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: incom_checks incom_checks_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.incom_checks
    ADD CONSTRAINT incom_checks_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: incom_checks incom_checks_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.incom_checks
    ADD CONSTRAINT incom_checks_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: incom_manufacturing_models incom_manufacturing_models_model_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.incom_manufacturing_models
    ADD CONSTRAINT incom_manufacturing_models_model_foreign FOREIGN KEY ("Model") REFERENCES public.manufacturing_models(id) ON DELETE CASCADE;


--
-- Name: incom_manufacturing_models incom_manufacturing_models_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.incom_manufacturing_models
    ADD CONSTRAINT incom_manufacturing_models_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: incom_manufacturing_models incom_manufacturing_models_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.incom_manufacturing_models
    ADD CONSTRAINT incom_manufacturing_models_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: incom_manufacturing_models incom_manufacturing_models_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.incom_manufacturing_models
    ADD CONSTRAINT incom_manufacturing_models_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: installment_dates installment_dates_client_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.installment_dates
    ADD CONSTRAINT installment_dates_client_foreign FOREIGN KEY ("Client") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: installment_dates installment_dates_install_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.installment_dates
    ADD CONSTRAINT installment_dates_install_foreign FOREIGN KEY ("Install") REFERENCES public.installments(id) ON DELETE CASCADE;


--
-- Name: installments installments_client_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.installments
    ADD CONSTRAINT installments_client_foreign FOREIGN KEY ("Client") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: installments installments_sales_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.installments
    ADD CONSTRAINT installments_sales_foreign FOREIGN KEY ("Sales") REFERENCES public.sales(id) ON DELETE CASCADE;


--
-- Name: insurance_papers insurance_papers_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.insurance_papers
    ADD CONSTRAINT insurance_papers_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: insurance_papers insurance_papers_bank_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.insurance_papers
    ADD CONSTRAINT insurance_papers_bank_foreign FOREIGN KEY ("Bank") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: insurance_papers insurance_papers_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.insurance_papers
    ADD CONSTRAINT insurance_papers_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: insurance_papers insurance_papers_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.insurance_papers
    ADD CONSTRAINT insurance_papers_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: insurance_papers insurance_papers_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.insurance_papers
    ADD CONSTRAINT insurance_papers_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: interviews interviews_client_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.interviews
    ADD CONSTRAINT interviews_client_foreign FOREIGN KEY ("Client") REFERENCES public.customers(id) ON DELETE CASCADE;


--
-- Name: interviews interviews_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.interviews
    ADD CONSTRAINT interviews_emp_foreign FOREIGN KEY ("Emp") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: interviews interviews_type_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.interviews
    ADD CONSTRAINT interviews_type_foreign FOREIGN KEY ("Type") REFERENCES public.interviews_types(id) ON DELETE CASCADE;


--
-- Name: interviews interviews_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.interviews
    ADD CONSTRAINT interviews_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: inventories inventories_account_dificit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventories
    ADD CONSTRAINT inventories_account_dificit_foreign FOREIGN KEY ("Account_Dificit") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: inventories inventories_account_excess_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventories
    ADD CONSTRAINT inventories_account_excess_foreign FOREIGN KEY ("Account_Excess") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: inventories inventories_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventories
    ADD CONSTRAINT inventories_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: inventories inventories_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventories
    ADD CONSTRAINT inventories_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: inventories inventories_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventories
    ADD CONSTRAINT inventories_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: journalizing_details journalizing_details_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.journalizing_details
    ADD CONSTRAINT journalizing_details_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: journalizing_details journalizing_details_joun_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.journalizing_details
    ADD CONSTRAINT journalizing_details_joun_id_foreign FOREIGN KEY ("Joun_ID") REFERENCES public.journalizings(id) ON DELETE CASCADE;


--
-- Name: journalizings journalizings_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.journalizings
    ADD CONSTRAINT journalizings_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: journalizings journalizings_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.journalizings
    ADD CONSTRAINT journalizings_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: loans loans_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.loans
    ADD CONSTRAINT loans_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: loans loans_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.loans
    ADD CONSTRAINT loans_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: loans loans_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.loans
    ADD CONSTRAINT loans_emp_foreign FOREIGN KEY ("Emp") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: loans loans_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.loans
    ADD CONSTRAINT loans_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: loans loans_type_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.loans
    ADD CONSTRAINT loans_type_foreign FOREIGN KEY ("Type") REFERENCES public.loan_types(id) ON DELETE CASCADE;


--
-- Name: loans loans_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.loans
    ADD CONSTRAINT loans_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: maintainc_bills maintainc_bills_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.maintainc_bills
    ADD CONSTRAINT maintainc_bills_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: maintainc_bills maintainc_bills_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.maintainc_bills
    ADD CONSTRAINT maintainc_bills_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: maintainc_bills maintainc_bills_company_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.maintainc_bills
    ADD CONSTRAINT maintainc_bills_company_foreign FOREIGN KEY ("Company") REFERENCES public.manufacture_companies(id) ON DELETE CASCADE;


--
-- Name: maintainc_bills maintainc_bills_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.maintainc_bills
    ADD CONSTRAINT maintainc_bills_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: maintainc_bills maintainc_bills_device_case_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.maintainc_bills
    ADD CONSTRAINT maintainc_bills_device_case_foreign FOREIGN KEY ("Device_Case") REFERENCES public.desvice_cases(id) ON DELETE CASCADE;


--
-- Name: maintainc_bills maintainc_bills_device_type_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.maintainc_bills
    ADD CONSTRAINT maintainc_bills_device_type_foreign FOREIGN KEY ("Device_Type") REFERENCES public.devices_typesies(id) ON DELETE CASCADE;


--
-- Name: maintainc_bills maintainc_bills_recipt_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.maintainc_bills
    ADD CONSTRAINT maintainc_bills_recipt_foreign FOREIGN KEY ("Recipt") REFERENCES public.recipt_maintainces(id) ON DELETE CASCADE;


--
-- Name: maintainc_bills maintainc_bills_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.maintainc_bills
    ADD CONSTRAINT maintainc_bills_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: manufacturing_executions manufacturing_executions_manu_order_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_executions
    ADD CONSTRAINT manufacturing_executions_manu_order_id_foreign FOREIGN KEY ("Manu_Order_ID") REFERENCES public.manufacturing_orders(id) ON DELETE CASCADE;


--
-- Name: manufacturing_executions manufacturing_executions_model_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_executions
    ADD CONSTRAINT manufacturing_executions_model_foreign FOREIGN KEY ("Model") REFERENCES public.manufacturing_models(id) ON DELETE CASCADE;


--
-- Name: manufacturing_executions manufacturing_executions_production_manager_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_executions
    ADD CONSTRAINT manufacturing_executions_production_manager_foreign FOREIGN KEY ("Production_Manager") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: manufacturing_executions manufacturing_executions_quality_manager_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_executions
    ADD CONSTRAINT manufacturing_executions_quality_manager_foreign FOREIGN KEY ("Quality_Manager") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: manufacturing_executions manufacturing_executions_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_executions
    ADD CONSTRAINT manufacturing_executions_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: manufacturing_models manufacturing_models_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_models
    ADD CONSTRAINT manufacturing_models_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: manufacturing_models manufacturing_models_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_models
    ADD CONSTRAINT manufacturing_models_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: manufacturing_models manufacturing_models_hall_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_models
    ADD CONSTRAINT manufacturing_models_hall_foreign FOREIGN KEY ("Hall") REFERENCES public.manufacturing_halls(id) ON DELETE CASCADE;


--
-- Name: manufacturing_models manufacturing_models_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_models
    ADD CONSTRAINT manufacturing_models_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: manufacturing_requests manufacturing_requests_client_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_requests
    ADD CONSTRAINT manufacturing_requests_client_foreign FOREIGN KEY ("Client") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: manufacturing_requests manufacturing_requests_delegate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_requests
    ADD CONSTRAINT manufacturing_requests_delegate_foreign FOREIGN KEY ("Delegate") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: manufacturing_requests manufacturing_requests_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manufacturing_requests
    ADD CONSTRAINT manufacturing_requests_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: missions missions_observer_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.missions
    ADD CONSTRAINT missions_observer_foreign FOREIGN KEY ("Observer") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: missions missions_task_owner_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.missions
    ADD CONSTRAINT missions_task_owner_foreign FOREIGN KEY ("Task_Owner") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: missions missions_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.missions
    ADD CONSTRAINT missions_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: model_has_roles model_has_roles_role_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.model_has_roles
    ADD CONSTRAINT model_has_roles_role_id_foreign FOREIGN KEY (role_id) REFERENCES public.roles(id) ON DELETE CASCADE;


--
-- Name: opening_entries opening_entries_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.opening_entries
    ADD CONSTRAINT opening_entries_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: opening_entries opening_entries_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.opening_entries
    ADD CONSTRAINT opening_entries_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: opening_entries_details opening_entries_details_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.opening_entries_details
    ADD CONSTRAINT opening_entries_details_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: opening_entries_details opening_entries_details_op_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.opening_entries_details
    ADD CONSTRAINT opening_entries_details_op_id_foreign FOREIGN KEY ("OP_ID") REFERENCES public.opening_entries(id) ON DELETE CASCADE;


--
-- Name: outcom_manufacturing_models outcom_manufacturing_models_model_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.outcom_manufacturing_models
    ADD CONSTRAINT outcom_manufacturing_models_model_foreign FOREIGN KEY ("Model") REFERENCES public.manufacturing_models(id) ON DELETE CASCADE;


--
-- Name: outcom_manufacturing_models outcom_manufacturing_models_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.outcom_manufacturing_models
    ADD CONSTRAINT outcom_manufacturing_models_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: outcom_manufacturing_models outcom_manufacturing_models_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.outcom_manufacturing_models
    ADD CONSTRAINT outcom_manufacturing_models_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: outcom_manufacturing_models outcom_manufacturing_models_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.outcom_manufacturing_models
    ADD CONSTRAINT outcom_manufacturing_models_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: partners partners_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.partners
    ADD CONSTRAINT partners_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: pay_salaries pay_salaries_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pay_salaries
    ADD CONSTRAINT pay_salaries_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: pay_salaries pay_salaries_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pay_salaries
    ADD CONSTRAINT pay_salaries_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: pay_salaries pay_salaries_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pay_salaries
    ADD CONSTRAINT pay_salaries_emp_foreign FOREIGN KEY ("Emp") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: pay_salaries pay_salaries_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pay_salaries
    ADD CONSTRAINT pay_salaries_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: pay_salaries pay_salaries_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pay_salaries
    ADD CONSTRAINT pay_salaries_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: payment_voucher_details payment_voucher_details_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payment_voucher_details
    ADD CONSTRAINT payment_voucher_details_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: payment_voucher_details payment_voucher_details_pv_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payment_voucher_details
    ADD CONSTRAINT payment_voucher_details_pv_id_foreign FOREIGN KEY ("PV_ID") REFERENCES public.payment_vouchers(id) ON DELETE CASCADE;


--
-- Name: payment_vouchers payment_vouchers_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payment_vouchers
    ADD CONSTRAINT payment_vouchers_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: payment_vouchers payment_vouchers_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payment_vouchers
    ADD CONSTRAINT payment_vouchers_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: payment_vouchers payment_vouchers_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payment_vouchers
    ADD CONSTRAINT payment_vouchers_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: permission_to_exchange_goods permission_to_exchange_goods_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.permission_to_exchange_goods
    ADD CONSTRAINT permission_to_exchange_goods_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: permission_to_exchange_goods permission_to_exchange_goods_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.permission_to_exchange_goods
    ADD CONSTRAINT permission_to_exchange_goods_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: permission_to_exchange_goods permission_to_exchange_goods_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.permission_to_exchange_goods
    ADD CONSTRAINT permission_to_exchange_goods_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: permission_to_exchange_goods permission_to_exchange_goods_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.permission_to_exchange_goods
    ADD CONSTRAINT permission_to_exchange_goods_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: permission_to_exchange_goods permission_to_exchange_goods_to_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.permission_to_exchange_goods
    ADD CONSTRAINT permission_to_exchange_goods_to_store_foreign FOREIGN KEY ("To_Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: permission_to_exchange_goods permission_to_exchange_goods_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.permission_to_exchange_goods
    ADD CONSTRAINT permission_to_exchange_goods_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: permission_to_recived_goods permission_to_recived_goods_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.permission_to_recived_goods
    ADD CONSTRAINT permission_to_recived_goods_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: permission_to_recived_goods permission_to_recived_goods_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.permission_to_recived_goods
    ADD CONSTRAINT permission_to_recived_goods_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: permission_to_recived_goods permission_to_recived_goods_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.permission_to_recived_goods
    ADD CONSTRAINT permission_to_recived_goods_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: permission_to_recived_goods permission_to_recived_goods_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.permission_to_recived_goods
    ADD CONSTRAINT permission_to_recived_goods_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: permission_to_recived_goods permission_to_recived_goods_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.permission_to_recived_goods
    ADD CONSTRAINT permission_to_recived_goods_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: places places_city_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.places
    ADD CONSTRAINT places_city_foreign FOREIGN KEY ("City") REFERENCES public.cities(id) ON DELETE CASCADE;


--
-- Name: places places_delivery_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.places
    ADD CONSTRAINT places_delivery_foreign FOREIGN KEY ("Delivery") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: product_inventories product_inventories_inv_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_inventories
    ADD CONSTRAINT product_inventories_inv_id_foreign FOREIGN KEY ("Inv_ID") REFERENCES public.inventories(id) ON DELETE CASCADE;


--
-- Name: product_inventories product_inventories_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_inventories
    ADD CONSTRAINT product_inventories_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: product_inventories product_inventories_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_inventories
    ADD CONSTRAINT product_inventories_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: product_inventories product_inventories_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_inventories
    ADD CONSTRAINT product_inventories_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: product_inventories product_inventories_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_inventories
    ADD CONSTRAINT product_inventories_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: product_maintainc_bills product_maintainc_bills_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_maintainc_bills
    ADD CONSTRAINT product_maintainc_bills_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: product_maintainc_bills product_maintainc_bills_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_maintainc_bills
    ADD CONSTRAINT product_maintainc_bills_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: product_maintainc_bills product_maintainc_bills_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_maintainc_bills
    ADD CONSTRAINT product_maintainc_bills_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: product_maintainc_bills product_maintainc_bills_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_maintainc_bills
    ADD CONSTRAINT product_maintainc_bills_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: product_maintainc_bills product_maintainc_bills_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_maintainc_bills
    ADD CONSTRAINT product_maintainc_bills_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: product_manufacturing_executions product_manufacturing_executions_manuexecution_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_manufacturing_executions
    ADD CONSTRAINT product_manufacturing_executions_manuexecution_foreign FOREIGN KEY ("ManuExecution") REFERENCES public.manufacturing_executions(id) ON DELETE CASCADE;


--
-- Name: product_manufacturing_executions product_manufacturing_executions_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_manufacturing_executions
    ADD CONSTRAINT product_manufacturing_executions_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: product_manufacturing_executions product_manufacturing_executions_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_manufacturing_executions
    ADD CONSTRAINT product_manufacturing_executions_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: product_manufacturing_executions product_manufacturing_executions_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_manufacturing_executions
    ADD CONSTRAINT product_manufacturing_executions_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: product_moves product_moves_group_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_moves
    ADD CONSTRAINT product_moves_group_foreign FOREIGN KEY ("Group") REFERENCES public.items_groups(id) ON DELETE CASCADE;


--
-- Name: product_moves product_moves_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_moves
    ADD CONSTRAINT product_moves_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: product_moves product_moves_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_moves
    ADD CONSTRAINT product_moves_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: product_moves product_moves_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_moves
    ADD CONSTRAINT product_moves_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: product_moves product_moves_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_moves
    ADD CONSTRAINT product_moves_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: product_moves product_moves_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_moves
    ADD CONSTRAINT product_moves_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: product_moves product_moves_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_moves
    ADD CONSTRAINT product_moves_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: product_quote_images product_quote_images_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_quote_images
    ADD CONSTRAINT product_quote_images_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: product_quote_images product_quote_images_quoteimage_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_quote_images
    ADD CONSTRAINT product_quote_images_quoteimage_foreign FOREIGN KEY ("QuoteImage") REFERENCES public.quote_images(id) ON DELETE CASCADE;


--
-- Name: product_quote_images product_quote_images_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_quote_images
    ADD CONSTRAINT product_quote_images_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: product_quote_images product_quote_images_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_quote_images
    ADD CONSTRAINT product_quote_images_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: product_quote_images product_quote_images_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_quote_images
    ADD CONSTRAINT product_quote_images_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: product_sales_orders product_sales_orders_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales_orders
    ADD CONSTRAINT product_sales_orders_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: product_sales_orders product_sales_orders_salesorder_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales_orders
    ADD CONSTRAINT product_sales_orders_salesorder_foreign FOREIGN KEY ("SalesOrder") REFERENCES public.sales_orders(id) ON DELETE CASCADE;


--
-- Name: product_sales_orders product_sales_orders_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales_orders
    ADD CONSTRAINT product_sales_orders_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: product_sales_orders product_sales_orders_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales_orders
    ADD CONSTRAINT product_sales_orders_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: product_sales_orders product_sales_orders_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales_orders
    ADD CONSTRAINT product_sales_orders_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: product_sales_orders product_sales_orders_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales_orders
    ADD CONSTRAINT product_sales_orders_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: product_sales product_sales_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales
    ADD CONSTRAINT product_sales_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: product_sales product_sales_sales_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales
    ADD CONSTRAINT product_sales_sales_foreign FOREIGN KEY ("Sales") REFERENCES public.sales(id) ON DELETE CASCADE;


--
-- Name: product_sales product_sales_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales
    ADD CONSTRAINT product_sales_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: product_sales_subscribes product_sales_subscribes_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales_subscribes
    ADD CONSTRAINT product_sales_subscribes_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: product_sales_subscribes product_sales_subscribes_subscribe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales_subscribes
    ADD CONSTRAINT product_sales_subscribes_subscribe_foreign FOREIGN KEY ("Subscribe") REFERENCES public.sales_subscribes(id) ON DELETE CASCADE;


--
-- Name: product_sales_subscribes product_sales_subscribes_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales_subscribes
    ADD CONSTRAINT product_sales_subscribes_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: product_sales_subscribes product_sales_subscribes_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales_subscribes
    ADD CONSTRAINT product_sales_subscribes_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: product_sales_subscribes product_sales_subscribes_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales_subscribes
    ADD CONSTRAINT product_sales_subscribes_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: product_sales product_sales_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales
    ADD CONSTRAINT product_sales_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: product_sales product_sales_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales
    ADD CONSTRAINT product_sales_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: product_sales product_sales_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_sales
    ADD CONSTRAINT product_sales_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: product_settlements product_settlements_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_settlements
    ADD CONSTRAINT product_settlements_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: product_settlements product_settlements_set_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_settlements
    ADD CONSTRAINT product_settlements_set_id_foreign FOREIGN KEY ("Set_ID") REFERENCES public.settlements(id) ON DELETE CASCADE;


--
-- Name: product_settlements product_settlements_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_settlements
    ADD CONSTRAINT product_settlements_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: product_settlements product_settlements_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_settlements
    ADD CONSTRAINT product_settlements_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: product_settlements product_settlements_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_settlements
    ADD CONSTRAINT product_settlements_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: product_units product_units_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_units
    ADD CONSTRAINT product_units_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: product_units product_units_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.product_units
    ADD CONSTRAINT product_units_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products products_brand_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products
    ADD CONSTRAINT products_brand_foreign FOREIGN KEY ("Brand") REFERENCES public.brands(id) ON DELETE CASCADE;


--
-- Name: products_consists products_consists_consist_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_consists
    ADD CONSTRAINT products_consists_consist_id_foreign FOREIGN KEY ("Consist_ID") REFERENCES public.consists(id) ON DELETE CASCADE;


--
-- Name: products_consists products_consists_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_consists
    ADD CONSTRAINT products_consists_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_consists products_consists_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_consists
    ADD CONSTRAINT products_consists_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products_consists products_consists_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_consists
    ADD CONSTRAINT products_consists_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_consists products_consists_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_consists
    ADD CONSTRAINT products_consists_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_executing_receivings products_executing_receivings_executing_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_executing_receivings
    ADD CONSTRAINT products_executing_receivings_executing_foreign FOREIGN KEY ("Executing") REFERENCES public.executing_receivings(id) ON DELETE CASCADE;


--
-- Name: products_executing_receivings products_executing_receivings_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_executing_receivings
    ADD CONSTRAINT products_executing_receivings_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_executing_receivings products_executing_receivings_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_executing_receivings
    ADD CONSTRAINT products_executing_receivings_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: products_executing_receivings products_executing_receivings_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_executing_receivings
    ADD CONSTRAINT products_executing_receivings_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products products_group_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products
    ADD CONSTRAINT products_group_foreign FOREIGN KEY ("Group") REFERENCES public.items_groups(id) ON DELETE CASCADE;


--
-- Name: products_manufacturing_orders products_manufacturing_orders_manuorder_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_manufacturing_orders
    ADD CONSTRAINT products_manufacturing_orders_manuorder_foreign FOREIGN KEY ("ManuOrder") REFERENCES public.manufacturing_orders(id) ON DELETE CASCADE;


--
-- Name: products_manufacturing_orders products_manufacturing_orders_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_manufacturing_orders
    ADD CONSTRAINT products_manufacturing_orders_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_manufacturing_orders products_manufacturing_orders_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_manufacturing_orders
    ADD CONSTRAINT products_manufacturing_orders_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: products_manufacturing_orders products_manufacturing_orders_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_manufacturing_orders
    ADD CONSTRAINT products_manufacturing_orders_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products_manufacturing_orders products_manufacturing_orders_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_manufacturing_orders
    ADD CONSTRAINT products_manufacturing_orders_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_manufacturing_orders products_manufacturing_orders_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_manufacturing_orders
    ADD CONSTRAINT products_manufacturing_orders_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_manufacturing_requests products_manufacturing_requests_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_manufacturing_requests
    ADD CONSTRAINT products_manufacturing_requests_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_manufacturing_requests products_manufacturing_requests_request_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_manufacturing_requests
    ADD CONSTRAINT products_manufacturing_requests_request_foreign FOREIGN KEY ("Request") REFERENCES public.manufacturing_requests(id) ON DELETE CASCADE;


--
-- Name: products_manufacturing_requests products_manufacturing_requests_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_manufacturing_requests
    ADD CONSTRAINT products_manufacturing_requests_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: products_manufacturing_requests products_manufacturing_requests_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_manufacturing_requests
    ADD CONSTRAINT products_manufacturing_requests_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products_manufacturing_requests products_manufacturing_requests_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_manufacturing_requests
    ADD CONSTRAINT products_manufacturing_requests_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_manufacturing_requests products_manufacturing_requests_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_manufacturing_requests
    ADD CONSTRAINT products_manufacturing_requests_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_permission_to_exchange_goods products_permission_to_exchange_goods_exchange_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_permission_to_exchange_goods
    ADD CONSTRAINT products_permission_to_exchange_goods_exchange_foreign FOREIGN KEY ("Exchange") REFERENCES public.permission_to_exchange_goods(id) ON DELETE CASCADE;


--
-- Name: products_permission_to_exchange_goods products_permission_to_exchange_goods_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_permission_to_exchange_goods
    ADD CONSTRAINT products_permission_to_exchange_goods_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_permission_to_exchange_goods products_permission_to_exchange_goods_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_permission_to_exchange_goods
    ADD CONSTRAINT products_permission_to_exchange_goods_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: products_permission_to_exchange_goods products_permission_to_exchange_goods_to_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_permission_to_exchange_goods
    ADD CONSTRAINT products_permission_to_exchange_goods_to_store_foreign FOREIGN KEY ("To_Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: products_permission_to_exchange_goods products_permission_to_exchange_goods_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_permission_to_exchange_goods
    ADD CONSTRAINT products_permission_to_exchange_goods_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products_permission_to_exchange_goods products_permission_to_exchange_goods_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_permission_to_exchange_goods
    ADD CONSTRAINT products_permission_to_exchange_goods_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_permission_to_exchange_goods products_permission_to_exchange_goods_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_permission_to_exchange_goods
    ADD CONSTRAINT products_permission_to_exchange_goods_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_permission_to_recived_goods products_permission_to_recived_goods_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_permission_to_recived_goods
    ADD CONSTRAINT products_permission_to_recived_goods_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_permission_to_recived_goods products_permission_to_recived_goods_recived_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_permission_to_recived_goods
    ADD CONSTRAINT products_permission_to_recived_goods_recived_foreign FOREIGN KEY ("Recived") REFERENCES public.permission_to_recived_goods(id) ON DELETE CASCADE;


--
-- Name: products_permission_to_recived_goods products_permission_to_recived_goods_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_permission_to_recived_goods
    ADD CONSTRAINT products_permission_to_recived_goods_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: products_permission_to_recived_goods products_permission_to_recived_goods_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_permission_to_recived_goods
    ADD CONSTRAINT products_permission_to_recived_goods_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products_permission_to_recived_goods products_permission_to_recived_goods_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_permission_to_recived_goods
    ADD CONSTRAINT products_permission_to_recived_goods_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_permission_to_recived_goods products_permission_to_recived_goods_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_permission_to_recived_goods
    ADD CONSTRAINT products_permission_to_recived_goods_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_purchase_petrols products_purchase_petrols_petrol_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_purchase_petrols
    ADD CONSTRAINT products_purchase_petrols_petrol_foreign FOREIGN KEY ("Petrol") REFERENCES public.purchase_petrols(id) ON DELETE CASCADE;


--
-- Name: products_purchases_orders products_purchases_orders_p_order_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_purchases_orders
    ADD CONSTRAINT products_purchases_orders_p_order_foreign FOREIGN KEY ("P_Order") REFERENCES public.purchases_orders(id) ON DELETE CASCADE;


--
-- Name: products_purchases_orders products_purchases_orders_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_purchases_orders
    ADD CONSTRAINT products_purchases_orders_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_purchases_orders products_purchases_orders_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_purchases_orders
    ADD CONSTRAINT products_purchases_orders_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: products_purchases_orders products_purchases_orders_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_purchases_orders
    ADD CONSTRAINT products_purchases_orders_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products_purchases_orders products_purchases_orders_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_purchases_orders
    ADD CONSTRAINT products_purchases_orders_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_purchases_orders products_purchases_orders_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_purchases_orders
    ADD CONSTRAINT products_purchases_orders_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_purchases products_purchases_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_purchases
    ADD CONSTRAINT products_purchases_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_purchases products_purchases_purchase_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_purchases
    ADD CONSTRAINT products_purchases_purchase_foreign FOREIGN KEY ("Purchase") REFERENCES public.purchases(id) ON DELETE CASCADE;


--
-- Name: products_purchases products_purchases_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_purchases
    ADD CONSTRAINT products_purchases_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: products_purchases products_purchases_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_purchases
    ADD CONSTRAINT products_purchases_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products_purchases products_purchases_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_purchases
    ADD CONSTRAINT products_purchases_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_purchases products_purchases_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_purchases
    ADD CONSTRAINT products_purchases_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_qties products_qties_pro_stores_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_qties
    ADD CONSTRAINT products_qties_pro_stores_foreign FOREIGN KEY ("Pro_Stores") REFERENCES public.products_stores(id) ON DELETE CASCADE;


--
-- Name: products_qties products_qties_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_qties
    ADD CONSTRAINT products_qties_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_qties products_qties_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_qties
    ADD CONSTRAINT products_qties_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: products_qties products_qties_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_qties
    ADD CONSTRAINT products_qties_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products_qties products_qties_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_qties
    ADD CONSTRAINT products_qties_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_qties products_qties_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_qties
    ADD CONSTRAINT products_qties_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_quotes products_quotes_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_quotes
    ADD CONSTRAINT products_quotes_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_quotes products_quotes_s_quote_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_quotes
    ADD CONSTRAINT products_quotes_s_quote_foreign FOREIGN KEY ("S_Quote") REFERENCES public.quotes(id) ON DELETE CASCADE;


--
-- Name: products_quotes products_quotes_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_quotes
    ADD CONSTRAINT products_quotes_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: products_quotes products_quotes_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_quotes
    ADD CONSTRAINT products_quotes_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products_quotes products_quotes_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_quotes
    ADD CONSTRAINT products_quotes_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_quotes products_quotes_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_quotes
    ADD CONSTRAINT products_quotes_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_return_maintaince_bills products_return_maintaince_bills_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_return_maintaince_bills
    ADD CONSTRAINT products_return_maintaince_bills_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: products_return_maintaince_bills products_return_maintaince_bills_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_return_maintaince_bills
    ADD CONSTRAINT products_return_maintaince_bills_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products_return_maintaince_bills products_return_maintaince_bills_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_return_maintaince_bills
    ADD CONSTRAINT products_return_maintaince_bills_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_return_maintaince_bills products_return_maintaince_bills_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_return_maintaince_bills
    ADD CONSTRAINT products_return_maintaince_bills_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_secretariat_export_goods products_secretariat_export_goods_export_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_secretariat_export_goods
    ADD CONSTRAINT products_secretariat_export_goods_export_foreign FOREIGN KEY ("Export") REFERENCES public.secretariat_export_goods(id) ON DELETE CASCADE;


--
-- Name: products_secretariat_export_goods products_secretariat_export_goods_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_secretariat_export_goods
    ADD CONSTRAINT products_secretariat_export_goods_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_secretariat_export_goods products_secretariat_export_goods_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_secretariat_export_goods
    ADD CONSTRAINT products_secretariat_export_goods_store_foreign FOREIGN KEY ("Store") REFERENCES public.secretariat_stores(id) ON DELETE CASCADE;


--
-- Name: products_secretariat_export_goods products_secretariat_export_goods_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_secretariat_export_goods
    ADD CONSTRAINT products_secretariat_export_goods_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products_secretariat_export_goods products_secretariat_export_goods_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_secretariat_export_goods
    ADD CONSTRAINT products_secretariat_export_goods_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_secretariat_export_goods products_secretariat_export_goods_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_secretariat_export_goods
    ADD CONSTRAINT products_secretariat_export_goods_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_secretariat_import_goods products_secretariat_import_goods_import_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_secretariat_import_goods
    ADD CONSTRAINT products_secretariat_import_goods_import_foreign FOREIGN KEY ("Import") REFERENCES public.secretariat_import_goods(id) ON DELETE CASCADE;


--
-- Name: products_secretariat_import_goods products_secretariat_import_goods_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_secretariat_import_goods
    ADD CONSTRAINT products_secretariat_import_goods_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_secretariat_import_goods products_secretariat_import_goods_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_secretariat_import_goods
    ADD CONSTRAINT products_secretariat_import_goods_store_foreign FOREIGN KEY ("Store") REFERENCES public.secretariat_stores(id) ON DELETE CASCADE;


--
-- Name: products_secretariat_import_goods products_secretariat_import_goods_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_secretariat_import_goods
    ADD CONSTRAINT products_secretariat_import_goods_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products_secretariat_import_goods products_secretariat_import_goods_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_secretariat_import_goods
    ADD CONSTRAINT products_secretariat_import_goods_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_secretariat_import_goods products_secretariat_import_goods_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_secretariat_import_goods
    ADD CONSTRAINT products_secretariat_import_goods_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_shortcomings products_shortcomings_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_shortcomings
    ADD CONSTRAINT products_shortcomings_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_shortcomings products_shortcomings_shortmings_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_shortcomings
    ADD CONSTRAINT products_shortcomings_shortmings_foreign FOREIGN KEY ("Shortmings") REFERENCES public.shortcomings(id) ON DELETE CASCADE;


--
-- Name: products_shortcomings products_shortcomings_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_shortcomings
    ADD CONSTRAINT products_shortcomings_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: products_shortcomings products_shortcomings_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_shortcomings
    ADD CONSTRAINT products_shortcomings_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products_shortcomings products_shortcomings_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_shortcomings
    ADD CONSTRAINT products_shortcomings_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_shortcomings products_shortcomings_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_shortcomings
    ADD CONSTRAINT products_shortcomings_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_start_periods products_start_periods_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_start_periods
    ADD CONSTRAINT products_start_periods_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_start_periods products_start_periods_sp_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_start_periods
    ADD CONSTRAINT products_start_periods_sp_id_foreign FOREIGN KEY ("SP_ID") REFERENCES public.start_periods(id) ON DELETE CASCADE;


--
-- Name: products_start_periods products_start_periods_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_start_periods
    ADD CONSTRAINT products_start_periods_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products_start_periods products_start_periods_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_start_periods
    ADD CONSTRAINT products_start_periods_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_start_periods products_start_periods_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_start_periods
    ADD CONSTRAINT products_start_periods_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_stores products_stores_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_stores
    ADD CONSTRAINT products_stores_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_stores products_stores_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_stores
    ADD CONSTRAINT products_stores_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: products_stores_transfers products_stores_transfers_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_stores_transfers
    ADD CONSTRAINT products_stores_transfers_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_stores_transfers products_stores_transfers_st_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_stores_transfers
    ADD CONSTRAINT products_stores_transfers_st_id_foreign FOREIGN KEY ("ST_ID") REFERENCES public.stors_transfers(id) ON DELETE CASCADE;


--
-- Name: products_stores_transfers products_stores_transfers_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_stores_transfers
    ADD CONSTRAINT products_stores_transfers_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: products_stores_transfers products_stores_transfers_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_stores_transfers
    ADD CONSTRAINT products_stores_transfers_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_stores_transfers products_stores_transfers_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_stores_transfers
    ADD CONSTRAINT products_stores_transfers_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_stores products_stores_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_stores
    ADD CONSTRAINT products_stores_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_stores products_stores_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_stores
    ADD CONSTRAINT products_stores_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products products_tax_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products
    ADD CONSTRAINT products_tax_foreign FOREIGN KEY ("Tax") REFERENCES public.taxes(id) ON DELETE CASCADE;


--
-- Name: products_viras products_viras_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_viras
    ADD CONSTRAINT products_viras_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: products_viras products_viras_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_viras
    ADD CONSTRAINT products_viras_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: products_viras products_viras_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.products_viras
    ADD CONSTRAINT products_viras_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: project_teams project_teams_member_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_teams
    ADD CONSTRAINT project_teams_member_foreign FOREIGN KEY ("Member") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: project_teams project_teams_project_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_teams
    ADD CONSTRAINT project_teams_project_foreign FOREIGN KEY ("Project") REFERENCES public.projects(id) ON DELETE CASCADE;


--
-- Name: projects projects_client_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.projects
    ADD CONSTRAINT projects_client_foreign FOREIGN KEY ("Client") REFERENCES public.customers(id) ON DELETE CASCADE;


--
-- Name: projects projects_manager_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.projects
    ADD CONSTRAINT projects_manager_foreign FOREIGN KEY ("Manager") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: projects projects_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.projects
    ADD CONSTRAINT projects_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: purchase_petrols purchase_petrols_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchase_petrols
    ADD CONSTRAINT purchase_petrols_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: purchase_petrols purchase_petrols_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchase_petrols
    ADD CONSTRAINT purchase_petrols_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: purchase_petrols purchase_petrols_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchase_petrols
    ADD CONSTRAINT purchase_petrols_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: purchase_petrols purchase_petrols_vendor_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchase_petrols
    ADD CONSTRAINT purchase_petrols_vendor_foreign FOREIGN KEY ("Vendor") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: purchases purchases_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases
    ADD CONSTRAINT purchases_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: purchases purchases_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases
    ADD CONSTRAINT purchases_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: purchases_default_data purchases_default_data_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases_default_data
    ADD CONSTRAINT purchases_default_data_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: purchases_default_data purchases_default_data_delegate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases_default_data
    ADD CONSTRAINT purchases_default_data_delegate_foreign FOREIGN KEY ("Delegate") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: purchases_default_data purchases_default_data_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases_default_data
    ADD CONSTRAINT purchases_default_data_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: purchases_default_data purchases_default_data_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases_default_data
    ADD CONSTRAINT purchases_default_data_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: purchases_default_data purchases_default_data_vendor_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases_default_data
    ADD CONSTRAINT purchases_default_data_vendor_foreign FOREIGN KEY ("Vendor") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: purchases purchases_delegate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases
    ADD CONSTRAINT purchases_delegate_foreign FOREIGN KEY ("Delegate") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: purchases_orders purchases_orders_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases_orders
    ADD CONSTRAINT purchases_orders_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: purchases_orders purchases_orders_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases_orders
    ADD CONSTRAINT purchases_orders_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: purchases_orders purchases_orders_delegate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases_orders
    ADD CONSTRAINT purchases_orders_delegate_foreign FOREIGN KEY ("Delegate") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: purchases_orders purchases_orders_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases_orders
    ADD CONSTRAINT purchases_orders_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: purchases_orders purchases_orders_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases_orders
    ADD CONSTRAINT purchases_orders_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: purchases_orders purchases_orders_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases_orders
    ADD CONSTRAINT purchases_orders_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: purchases_orders purchases_orders_vendor_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases_orders
    ADD CONSTRAINT purchases_orders_vendor_foreign FOREIGN KEY ("Vendor") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: purchases purchases_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases
    ADD CONSTRAINT purchases_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: purchases purchases_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases
    ADD CONSTRAINT purchases_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: purchases purchases_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases
    ADD CONSTRAINT purchases_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: purchases purchases_vendor_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.purchases
    ADD CONSTRAINT purchases_vendor_foreign FOREIGN KEY ("Vendor") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: qualities qualities_manuexecution_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.qualities
    ADD CONSTRAINT qualities_manuexecution_foreign FOREIGN KEY ("ManuExecution") REFERENCES public.manufacturing_executions(id) ON DELETE CASCADE;


--
-- Name: qualities qualities_production_manager_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.qualities
    ADD CONSTRAINT qualities_production_manager_foreign FOREIGN KEY ("Production_Manager") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: qualities qualities_quality_manager_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.qualities
    ADD CONSTRAINT qualities_quality_manager_foreign FOREIGN KEY ("Quality_Manager") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: qualities qualities_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.qualities
    ADD CONSTRAINT qualities_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: quality_details quality_details_exmine_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.quality_details
    ADD CONSTRAINT quality_details_exmine_foreign FOREIGN KEY ("Exmine") REFERENCES public.examinations_types(id) ON DELETE CASCADE;


--
-- Name: quality_details quality_details_quality_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.quality_details
    ADD CONSTRAINT quality_details_quality_foreign FOREIGN KEY ("Quality") REFERENCES public.qualities(id) ON DELETE CASCADE;


--
-- Name: quotes quotes_client_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.quotes
    ADD CONSTRAINT quotes_client_foreign FOREIGN KEY ("Client") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: quotes quotes_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.quotes
    ADD CONSTRAINT quotes_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: quotes quotes_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.quotes
    ADD CONSTRAINT quotes_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: quotes quotes_delegate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.quotes
    ADD CONSTRAINT quotes_delegate_foreign FOREIGN KEY ("Delegate") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: quotes quotes_executor_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.quotes
    ADD CONSTRAINT quotes_executor_foreign FOREIGN KEY ("Executor") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: quotes quotes_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.quotes
    ADD CONSTRAINT quotes_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: quotes quotes_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.quotes
    ADD CONSTRAINT quotes_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: quotes quotes_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.quotes
    ADD CONSTRAINT quotes_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: rates rates_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.rates
    ADD CONSTRAINT rates_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: rates rates_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.rates
    ADD CONSTRAINT rates_user_foreign FOREIGN KEY ("User") REFERENCES public.customers(id) ON DELETE CASCADE;


--
-- Name: recipt_maintaince_errors recipt_maintaince_errors_recipt_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_maintaince_errors
    ADD CONSTRAINT recipt_maintaince_errors_recipt_foreign FOREIGN KEY ("Recipt") REFERENCES public.recipt_maintainces(id) ON DELETE CASCADE;


--
-- Name: recipt_maintainces recipt_maintainces_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_maintainces
    ADD CONSTRAINT recipt_maintainces_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: recipt_maintainces recipt_maintainces_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_maintainces
    ADD CONSTRAINT recipt_maintainces_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: recipt_maintainces recipt_maintainces_company_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_maintainces
    ADD CONSTRAINT recipt_maintainces_company_foreign FOREIGN KEY ("Company") REFERENCES public.manufacture_companies(id) ON DELETE CASCADE;


--
-- Name: recipt_maintainces recipt_maintainces_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_maintainces
    ADD CONSTRAINT recipt_maintainces_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: recipt_maintainces recipt_maintainces_device_case_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_maintainces
    ADD CONSTRAINT recipt_maintainces_device_case_foreign FOREIGN KEY ("Device_Case") REFERENCES public.desvice_cases(id) ON DELETE CASCADE;


--
-- Name: recipt_maintainces recipt_maintainces_device_type_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_maintainces
    ADD CONSTRAINT recipt_maintainces_device_type_foreign FOREIGN KEY ("Device_Type") REFERENCES public.devices_typesies(id) ON DELETE CASCADE;


--
-- Name: recipt_maintainces recipt_maintainces_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_maintainces
    ADD CONSTRAINT recipt_maintainces_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: recipt_voucher_details recipt_voucher_details_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_voucher_details
    ADD CONSTRAINT recipt_voucher_details_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: recipt_voucher_details recipt_voucher_details_rv_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_voucher_details
    ADD CONSTRAINT recipt_voucher_details_rv_id_foreign FOREIGN KEY ("RV_ID") REFERENCES public.recipt_vouchers(id) ON DELETE CASCADE;


--
-- Name: recipt_vouchers recipt_vouchers_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_vouchers
    ADD CONSTRAINT recipt_vouchers_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: recipt_vouchers recipt_vouchers_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_vouchers
    ADD CONSTRAINT recipt_vouchers_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: recipt_vouchers recipt_vouchers_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipt_vouchers
    ADD CONSTRAINT recipt_vouchers_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: recipts_sales_petrols recipts_sales_petrols_salespetrol_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipts_sales_petrols
    ADD CONSTRAINT recipts_sales_petrols_salespetrol_foreign FOREIGN KEY ("SalesPetrol") REFERENCES public.sales_petrols(id) ON DELETE CASCADE;


--
-- Name: recipts_types recipts_types_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recipts_types
    ADD CONSTRAINT recipts_types_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: recived_purch_products recived_purch_products_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_purch_products
    ADD CONSTRAINT recived_purch_products_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: recived_purch_products recived_purch_products_recived_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_purch_products
    ADD CONSTRAINT recived_purch_products_recived_foreign FOREIGN KEY ("Recived") REFERENCES public.recived_purchts(id) ON DELETE CASCADE;


--
-- Name: recived_purch_products recived_purch_products_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_purch_products
    ADD CONSTRAINT recived_purch_products_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: recived_purch_products recived_purch_products_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_purch_products
    ADD CONSTRAINT recived_purch_products_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: recived_purch_products recived_purch_products_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_purch_products
    ADD CONSTRAINT recived_purch_products_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: recived_purch_products recived_purch_products_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_purch_products
    ADD CONSTRAINT recived_purch_products_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: recived_purchts recived_purchts_purchase_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_purchts
    ADD CONSTRAINT recived_purchts_purchase_foreign FOREIGN KEY ("Purchase") REFERENCES public.purchases(id) ON DELETE CASCADE;


--
-- Name: recived_sales_products recived_sales_products_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_sales_products
    ADD CONSTRAINT recived_sales_products_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: recived_sales_products recived_sales_products_recived_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_sales_products
    ADD CONSTRAINT recived_sales_products_recived_foreign FOREIGN KEY ("Recived") REFERENCES public.recived_sales(id) ON DELETE CASCADE;


--
-- Name: recived_sales_products recived_sales_products_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_sales_products
    ADD CONSTRAINT recived_sales_products_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: recived_sales_products recived_sales_products_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_sales_products
    ADD CONSTRAINT recived_sales_products_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: recived_sales_products recived_sales_products_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_sales_products
    ADD CONSTRAINT recived_sales_products_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: recived_sales_products recived_sales_products_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_sales_products
    ADD CONSTRAINT recived_sales_products_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: recived_sales recived_sales_sales_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recived_sales
    ADD CONSTRAINT recived_sales_sales_foreign FOREIGN KEY ("Sales") REFERENCES public.sales(id) ON DELETE CASCADE;


--
-- Name: reg_over_times reg_over_times_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reg_over_times
    ADD CONSTRAINT reg_over_times_emp_foreign FOREIGN KEY ("Emp") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: reg_over_times reg_over_times_type_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reg_over_times
    ADD CONSTRAINT reg_over_times_type_foreign FOREIGN KEY ("Type") REFERENCES public.over_times(id) ON DELETE CASCADE;


--
-- Name: reg_over_times reg_over_times_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reg_over_times
    ADD CONSTRAINT reg_over_times_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: reservations reservations_client_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reservations
    ADD CONSTRAINT reservations_client_foreign FOREIGN KEY ("Client") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: reservations reservations_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reservations
    ADD CONSTRAINT reservations_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: reservations reservations_room_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reservations
    ADD CONSTRAINT reservations_room_foreign FOREIGN KEY ("Room") REFERENCES public.rooms(id) ON DELETE CASCADE;


--
-- Name: reservations reservations_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reservations
    ADD CONSTRAINT reservations_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: return_maintaince_bills return_maintaince_bills_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_maintaince_bills
    ADD CONSTRAINT return_maintaince_bills_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: return_maintaince_bills return_maintaince_bills_branch_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_maintaince_bills
    ADD CONSTRAINT return_maintaince_bills_branch_foreign FOREIGN KEY ("Branch") REFERENCES public.branches(id) ON DELETE CASCADE;


--
-- Name: return_maintaince_bills return_maintaince_bills_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_maintaince_bills
    ADD CONSTRAINT return_maintaince_bills_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: return_maintaince_bills return_maintaince_bills_company_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_maintaince_bills
    ADD CONSTRAINT return_maintaince_bills_company_foreign FOREIGN KEY ("Company") REFERENCES public.manufacture_companies(id) ON DELETE CASCADE;


--
-- Name: return_maintaince_bills return_maintaince_bills_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_maintaince_bills
    ADD CONSTRAINT return_maintaince_bills_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: return_maintaince_bills return_maintaince_bills_device_case_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_maintaince_bills
    ADD CONSTRAINT return_maintaince_bills_device_case_foreign FOREIGN KEY ("Device_Case") REFERENCES public.desvice_cases(id) ON DELETE CASCADE;


--
-- Name: return_maintaince_bills return_maintaince_bills_device_type_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_maintaince_bills
    ADD CONSTRAINT return_maintaince_bills_device_type_foreign FOREIGN KEY ("Device_Type") REFERENCES public.devices_typesies(id) ON DELETE CASCADE;


--
-- Name: return_maintaince_bills return_maintaince_bills_eng_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_maintaince_bills
    ADD CONSTRAINT return_maintaince_bills_eng_foreign FOREIGN KEY ("Eng") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: return_maintaince_bills return_maintaince_bills_recipient_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_maintaince_bills
    ADD CONSTRAINT return_maintaince_bills_recipient_foreign FOREIGN KEY ("Recipient") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: return_maintaince_bills return_maintaince_bills_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_maintaince_bills
    ADD CONSTRAINT return_maintaince_bills_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: return_maintaince_bills return_maintaince_bills_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_maintaince_bills
    ADD CONSTRAINT return_maintaince_bills_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: return_purch_products return_purch_products_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purch_products
    ADD CONSTRAINT return_purch_products_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: return_purch_products return_purch_products_return_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purch_products
    ADD CONSTRAINT return_purch_products_return_foreign FOREIGN KEY ("Return") REFERENCES public.return_purches(id) ON DELETE CASCADE;


--
-- Name: return_purch_products return_purch_products_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purch_products
    ADD CONSTRAINT return_purch_products_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: return_purch_products return_purch_products_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purch_products
    ADD CONSTRAINT return_purch_products_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: return_purch_products return_purch_products_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purch_products
    ADD CONSTRAINT return_purch_products_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: return_purch_products return_purch_products_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purch_products
    ADD CONSTRAINT return_purch_products_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: return_purches return_purches_purchase_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purches
    ADD CONSTRAINT return_purches_purchase_foreign FOREIGN KEY ("Purchase") REFERENCES public.purchases(id) ON DELETE CASCADE;


--
-- Name: return_purches return_purches_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_purches
    ADD CONSTRAINT return_purches_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: return_sales_products return_sales_products_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales_products
    ADD CONSTRAINT return_sales_products_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: return_sales_products return_sales_products_return_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales_products
    ADD CONSTRAINT return_sales_products_return_foreign FOREIGN KEY ("Return") REFERENCES public.return_sales(id) ON DELETE CASCADE;


--
-- Name: return_sales_products return_sales_products_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales_products
    ADD CONSTRAINT return_sales_products_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: return_sales_products return_sales_products_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales_products
    ADD CONSTRAINT return_sales_products_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: return_sales_products return_sales_products_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales_products
    ADD CONSTRAINT return_sales_products_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: return_sales_products return_sales_products_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales_products
    ADD CONSTRAINT return_sales_products_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: return_sales return_sales_sales_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales
    ADD CONSTRAINT return_sales_sales_foreign FOREIGN KEY ("Sales") REFERENCES public.sales(id) ON DELETE CASCADE;


--
-- Name: return_sales return_sales_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.return_sales
    ADD CONSTRAINT return_sales_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: role_has_permissions role_has_permissions_role_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.role_has_permissions
    ADD CONSTRAINT role_has_permissions_role_id_foreign FOREIGN KEY (role_id) REFERENCES public.roles(id) ON DELETE CASCADE;


--
-- Name: room_reservations room_reservations_room_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.room_reservations
    ADD CONSTRAINT room_reservations_room_foreign FOREIGN KEY ("Room") REFERENCES public.rooms(id) ON DELETE CASCADE;


--
-- Name: safe_transfers safe_transfers_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.safe_transfers
    ADD CONSTRAINT safe_transfers_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: safe_transfers safe_transfers_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.safe_transfers
    ADD CONSTRAINT safe_transfers_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: safe_transfers safe_transfers_from_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.safe_transfers
    ADD CONSTRAINT safe_transfers_from_safe_foreign FOREIGN KEY ("From_Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: safe_transfers safe_transfers_to_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.safe_transfers
    ADD CONSTRAINT safe_transfers_to_safe_foreign FOREIGN KEY ("To_Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: safe_transfers safe_transfers_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.safe_transfers
    ADD CONSTRAINT safe_transfers_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: safes_banks safes_banks_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.safes_banks
    ADD CONSTRAINT safes_banks_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: safes_banks safes_banks_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.safes_banks
    ADD CONSTRAINT safes_banks_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: sales sales_client_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales
    ADD CONSTRAINT sales_client_foreign FOREIGN KEY ("Client") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: sales sales_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales
    ADD CONSTRAINT sales_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: sales sales_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales
    ADD CONSTRAINT sales_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: sales sales_delegate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales
    ADD CONSTRAINT sales_delegate_foreign FOREIGN KEY ("Delegate") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: sales sales_executor_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales
    ADD CONSTRAINT sales_executor_foreign FOREIGN KEY ("Executor") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: sales_orders sales_orders_client_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_orders
    ADD CONSTRAINT sales_orders_client_foreign FOREIGN KEY ("Client") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: sales_orders sales_orders_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_orders
    ADD CONSTRAINT sales_orders_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: sales_orders sales_orders_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_orders
    ADD CONSTRAINT sales_orders_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: sales_orders sales_orders_delegate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_orders
    ADD CONSTRAINT sales_orders_delegate_foreign FOREIGN KEY ("Delegate") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: sales_orders sales_orders_executor_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_orders
    ADD CONSTRAINT sales_orders_executor_foreign FOREIGN KEY ("Executor") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: sales_orders sales_orders_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_orders
    ADD CONSTRAINT sales_orders_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: sales_orders sales_orders_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_orders
    ADD CONSTRAINT sales_orders_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: sales_orders sales_orders_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_orders
    ADD CONSTRAINT sales_orders_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: sales_petrols sales_petrols_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_petrols
    ADD CONSTRAINT sales_petrols_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: sales_petrols sales_petrols_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_petrols
    ADD CONSTRAINT sales_petrols_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: sales_petrols sales_petrols_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_petrols
    ADD CONSTRAINT sales_petrols_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: sales sales_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales
    ADD CONSTRAINT sales_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: sales sales_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales
    ADD CONSTRAINT sales_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: sales_subscribes sales_subscribes_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_subscribes
    ADD CONSTRAINT sales_subscribes_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: sales_subscribes sales_subscribes_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_subscribes
    ADD CONSTRAINT sales_subscribes_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: sales_subscribes sales_subscribes_delegate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_subscribes
    ADD CONSTRAINT sales_subscribes_delegate_foreign FOREIGN KEY ("Delegate") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: sales_subscribes sales_subscribes_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_subscribes
    ADD CONSTRAINT sales_subscribes_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: sales sales_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales
    ADD CONSTRAINT sales_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: secretariat_export_goods secretariat_export_goods_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.secretariat_export_goods
    ADD CONSTRAINT secretariat_export_goods_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: secretariat_export_goods secretariat_export_goods_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.secretariat_export_goods
    ADD CONSTRAINT secretariat_export_goods_store_foreign FOREIGN KEY ("Store") REFERENCES public.secretariat_stores(id) ON DELETE CASCADE;


--
-- Name: secretariat_export_goods secretariat_export_goods_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.secretariat_export_goods
    ADD CONSTRAINT secretariat_export_goods_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: secretariat_import_goods secretariat_import_goods_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.secretariat_import_goods
    ADD CONSTRAINT secretariat_import_goods_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: secretariat_import_goods secretariat_import_goods_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.secretariat_import_goods
    ADD CONSTRAINT secretariat_import_goods_store_foreign FOREIGN KEY ("Store") REFERENCES public.secretariat_stores(id) ON DELETE CASCADE;


--
-- Name: secretariat_import_goods secretariat_import_goods_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.secretariat_import_goods
    ADD CONSTRAINT secretariat_import_goods_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: secretariat_qties secretariat_qties_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.secretariat_qties
    ADD CONSTRAINT secretariat_qties_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: secretariat_qties secretariat_qties_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.secretariat_qties
    ADD CONSTRAINT secretariat_qties_store_foreign FOREIGN KEY ("Store") REFERENCES public.secretariat_stores(id) ON DELETE CASCADE;


--
-- Name: secretariat_qties secretariat_qties_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.secretariat_qties
    ADD CONSTRAINT secretariat_qties_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: secretariat_qties secretariat_qties_v1_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.secretariat_qties
    ADD CONSTRAINT secretariat_qties_v1_foreign FOREIGN KEY ("V1") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: secretariat_qties secretariat_qties_v2_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.secretariat_qties
    ADD CONSTRAINT secretariat_qties_v2_foreign FOREIGN KEY ("V2") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: settlements settlements_account_dificit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.settlements
    ADD CONSTRAINT settlements_account_dificit_foreign FOREIGN KEY ("Account_Dificit") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: settlements settlements_account_excess_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.settlements
    ADD CONSTRAINT settlements_account_excess_foreign FOREIGN KEY ("Account_Excess") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: settlements settlements_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.settlements
    ADD CONSTRAINT settlements_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: settlements settlements_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.settlements
    ADD CONSTRAINT settlements_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: settlements settlements_inv_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.settlements
    ADD CONSTRAINT settlements_inv_id_foreign FOREIGN KEY ("Inv_ID") REFERENCES public.inventories(id) ON DELETE CASCADE;


--
-- Name: settlements settlements_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.settlements
    ADD CONSTRAINT settlements_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: settlements settlements_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.settlements
    ADD CONSTRAINT settlements_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: sewing_accessories sewing_accessories_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_accessories
    ADD CONSTRAINT sewing_accessories_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: sewing_accessories sewing_accessories_sewingorder_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_accessories
    ADD CONSTRAINT sewing_accessories_sewingorder_foreign FOREIGN KEY ("SewingOrder") REFERENCES public.sewing_orders(id) ON DELETE CASCADE;


--
-- Name: sewing_al_kabkat sewing_al_kabkat_sewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_al_kabkat
    ADD CONSTRAINT sewing_al_kabkat_sewingtype_foreign FOREIGN KEY ("SewingType") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: sewing_al_taktak sewing_al_taktak_sewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_al_taktak
    ADD CONSTRAINT sewing_al_taktak_sewingtype_foreign FOREIGN KEY ("SewingType") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: sewing_buttons sewing_buttons_sewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_buttons
    ADD CONSTRAINT sewing_buttons_sewingtype_foreign FOREIGN KEY ("SewingType") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: sewing_chest_pocket_fillings sewing_chest_pocket_fillings_sewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_chest_pocket_fillings
    ADD CONSTRAINT sewing_chest_pocket_fillings_sewingtype_foreign FOREIGN KEY ("SewingType") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: sewing_chest_pockets sewing_chest_pockets_sewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_chest_pockets
    ADD CONSTRAINT sewing_chest_pockets_sewingtype_foreign FOREIGN KEY ("SewingType") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: sewing_collar_paddings sewing_collar_paddings_sewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_collar_paddings
    ADD CONSTRAINT sewing_collar_paddings_sewingtype_foreign FOREIGN KEY ("SewingType") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: sewing_collars sewing_collars_sewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_collars
    ADD CONSTRAINT sewing_collars_sewingtype_foreign FOREIGN KEY ("SewingType") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: sewing_cseed_sleeves sewing_cseed_sleeves_sewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_cseed_sleeves
    ADD CONSTRAINT sewing_cseed_sleeves_sewingtype_foreign FOREIGN KEY ("SewingType") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: sewing_cupcake_fillings sewing_cupcake_fillings_sewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_cupcake_fillings
    ADD CONSTRAINT sewing_cupcake_fillings_sewingtype_foreign FOREIGN KEY ("SewingType") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: sewing_embroideries sewing_embroideries_sewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_embroideries
    ADD CONSTRAINT sewing_embroideries_sewingtype_foreign FOREIGN KEY ("SewingType") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: sewing_order_modules sewing_order_modules_alkabkat_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_order_modules
    ADD CONSTRAINT sewing_order_modules_alkabkat_foreign FOREIGN KEY ("AlKabkat") REFERENCES public.sewing_al_kabkat(id) ON DELETE CASCADE;


--
-- Name: sewing_order_modules sewing_order_modules_altaktak_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_order_modules
    ADD CONSTRAINT sewing_order_modules_altaktak_foreign FOREIGN KEY ("AlTaktak") REFERENCES public.sewing_al_taktak(id) ON DELETE CASCADE;


--
-- Name: sewing_order_modules sewing_order_modules_buttons_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_order_modules
    ADD CONSTRAINT sewing_order_modules_buttons_foreign FOREIGN KEY ("Buttons") REFERENCES public.sewing_buttons(id) ON DELETE CASCADE;


--
-- Name: sewing_order_modules sewing_order_modules_chestpocket_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_order_modules
    ADD CONSTRAINT sewing_order_modules_chestpocket_foreign FOREIGN KEY ("ChestPocket") REFERENCES public.sewing_chest_pockets(id) ON DELETE CASCADE;


--
-- Name: sewing_order_modules sewing_order_modules_chestpocketfilling_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_order_modules
    ADD CONSTRAINT sewing_order_modules_chestpocketfilling_foreign FOREIGN KEY ("ChestPocketFilling") REFERENCES public.sewing_chest_pocket_fillings(id) ON DELETE CASCADE;


--
-- Name: sewing_order_modules sewing_order_modules_collar_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_order_modules
    ADD CONSTRAINT sewing_order_modules_collar_foreign FOREIGN KEY ("Collar") REFERENCES public.sewing_collars(id) ON DELETE CASCADE;


--
-- Name: sewing_order_modules sewing_order_modules_collarpadding_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_order_modules
    ADD CONSTRAINT sewing_order_modules_collarpadding_foreign FOREIGN KEY ("CollarPadding") REFERENCES public.sewing_collar_paddings(id) ON DELETE CASCADE;


--
-- Name: sewing_order_modules sewing_order_modules_cseedsleeves_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_order_modules
    ADD CONSTRAINT sewing_order_modules_cseedsleeves_foreign FOREIGN KEY ("CseedSleeves") REFERENCES public.sewing_cseed_sleeves(id) ON DELETE CASCADE;


--
-- Name: sewing_order_modules sewing_order_modules_cupcakefilling_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_order_modules
    ADD CONSTRAINT sewing_order_modules_cupcakefilling_foreign FOREIGN KEY ("CupcakeFilling") REFERENCES public.sewing_cupcake_fillings(id) ON DELETE CASCADE;


--
-- Name: sewing_order_modules sewing_order_modules_embroidery_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_order_modules
    ADD CONSTRAINT sewing_order_modules_embroidery_foreign FOREIGN KEY ("Embroidery") REFERENCES public.sewing_embroideries(id) ON DELETE CASCADE;


--
-- Name: sewing_order_modules sewing_order_modules_seedfilling_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_order_modules
    ADD CONSTRAINT sewing_order_modules_seedfilling_foreign FOREIGN KEY ("SeedFilling") REFERENCES public.sewing_seed_fillings(id) ON DELETE CASCADE;


--
-- Name: sewing_order_modules sewing_order_modules_seeds_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_order_modules
    ADD CONSTRAINT sewing_order_modules_seeds_foreign FOREIGN KEY ("Seeds") REFERENCES public.sewing_seeds(id) ON DELETE CASCADE;


--
-- Name: sewing_order_modules sewing_order_modules_sewingorder_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_order_modules
    ADD CONSTRAINT sewing_order_modules_sewingorder_foreign FOREIGN KEY ("SewingOrder") REFERENCES public.sewing_orders(id) ON DELETE CASCADE;


--
-- Name: sewing_order_modules sewing_order_modules_sidepocket_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_order_modules
    ADD CONSTRAINT sewing_order_modules_sidepocket_foreign FOREIGN KEY ("SidePocket") REFERENCES public.sewing_side_pockets(id) ON DELETE CASCADE;


--
-- Name: sewing_order_modules sewing_order_modules_sleeves_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_order_modules
    ADD CONSTRAINT sewing_order_modules_sleeves_foreign FOREIGN KEY ("Sleeves") REFERENCES public.sewing_sleeves(id) ON DELETE CASCADE;


--
-- Name: sewing_orders sewing_orders_branch_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_orders
    ADD CONSTRAINT sewing_orders_branch_foreign FOREIGN KEY ("Branch") REFERENCES public.branches(id) ON DELETE CASCADE;


--
-- Name: sewing_orders sewing_orders_client_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_orders
    ADD CONSTRAINT sewing_orders_client_foreign FOREIGN KEY ("Client") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: sewing_orders sewing_orders_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_orders
    ADD CONSTRAINT sewing_orders_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: sewing_orders sewing_orders_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_orders
    ADD CONSTRAINT sewing_orders_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: sewing_orders sewing_orders_delegate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_orders
    ADD CONSTRAINT sewing_orders_delegate_foreign FOREIGN KEY ("Delegate") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: sewing_orders sewing_orders_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_orders
    ADD CONSTRAINT sewing_orders_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: sewing_orders sewing_orders_recivedbranch_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_orders
    ADD CONSTRAINT sewing_orders_recivedbranch_foreign FOREIGN KEY ("RecivedBranch") REFERENCES public.branches(id) ON DELETE CASCADE;


--
-- Name: sewing_orders sewing_orders_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_orders
    ADD CONSTRAINT sewing_orders_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: sewing_orders sewing_orders_sewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_orders
    ADD CONSTRAINT sewing_orders_sewingtype_foreign FOREIGN KEY ("SewingType") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: sewing_orders sewing_orders_taxtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_orders
    ADD CONSTRAINT sewing_orders_taxtype_foreign FOREIGN KEY ("TaxType") REFERENCES public.taxes(id) ON DELETE CASCADE;


--
-- Name: sewing_request_details sewing_request_details_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_request_details
    ADD CONSTRAINT sewing_request_details_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: sewing_request_details sewing_request_details_sewingrequest_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_request_details
    ADD CONSTRAINT sewing_request_details_sewingrequest_foreign FOREIGN KEY ("SewingRequest") REFERENCES public.sewing_requests(id) ON DELETE CASCADE;


--
-- Name: sewing_request_details sewing_request_details_type_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_request_details
    ADD CONSTRAINT sewing_request_details_type_foreign FOREIGN KEY ("Type") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: sewing_requests sewing_requests_branch_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_requests
    ADD CONSTRAINT sewing_requests_branch_foreign FOREIGN KEY ("Branch") REFERENCES public.branches(id) ON DELETE CASCADE;


--
-- Name: sewing_requests sewing_requests_client_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_requests
    ADD CONSTRAINT sewing_requests_client_foreign FOREIGN KEY ("Client") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: sewing_requests sewing_requests_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_requests
    ADD CONSTRAINT sewing_requests_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: sewing_requests sewing_requests_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_requests
    ADD CONSTRAINT sewing_requests_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: sewing_requests sewing_requests_delegate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_requests
    ADD CONSTRAINT sewing_requests_delegate_foreign FOREIGN KEY ("Delegate") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: sewing_requests sewing_requests_outsidesewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_requests
    ADD CONSTRAINT sewing_requests_outsidesewingtype_foreign FOREIGN KEY ("OutsideSewingType") REFERENCES public.sewing_types(id) ON DELETE SET NULL;


--
-- Name: sewing_requests sewing_requests_recivedbranch_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_requests
    ADD CONSTRAINT sewing_requests_recivedbranch_foreign FOREIGN KEY ("RecivedBranch") REFERENCES public.branches(id) ON DELETE CASCADE;


--
-- Name: sewing_requests sewing_requests_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_requests
    ADD CONSTRAINT sewing_requests_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: sewing_requests sewing_requests_sewingorderid_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_requests
    ADD CONSTRAINT sewing_requests_sewingorderid_foreign FOREIGN KEY ("SewingOrderID") REFERENCES public.sewing_orders(id) ON DELETE SET NULL;


--
-- Name: sewing_requests sewing_requests_taxtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_requests
    ADD CONSTRAINT sewing_requests_taxtype_foreign FOREIGN KEY ("TaxType") REFERENCES public.taxes(id) ON DELETE CASCADE;


--
-- Name: sewing_requests sewing_requests_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_requests
    ADD CONSTRAINT sewing_requests_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: sewing_seed_fillings sewing_seed_fillings_sewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_seed_fillings
    ADD CONSTRAINT sewing_seed_fillings_sewingtype_foreign FOREIGN KEY ("SewingType") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: sewing_seeds sewing_seeds_sewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_seeds
    ADD CONSTRAINT sewing_seeds_sewingtype_foreign FOREIGN KEY ("SewingType") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: sewing_side_pockets sewing_side_pockets_sewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_side_pockets
    ADD CONSTRAINT sewing_side_pockets_sewingtype_foreign FOREIGN KEY ("SewingType") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: sewing_sleeves sewing_sleeves_sewingtype_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sewing_sleeves
    ADD CONSTRAINT sewing_sleeves_sewingtype_foreign FOREIGN KEY ("SewingType") REFERENCES public.sewing_types(id) ON DELETE CASCADE;


--
-- Name: shifts shifts_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shifts
    ADD CONSTRAINT shifts_emp_foreign FOREIGN KEY ("Emp") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: shifts shifts_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shifts
    ADD CONSTRAINT shifts_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: shipments_distribution_goods shipments_distribution_goods_shipmentsdistribution_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipments_distribution_goods
    ADD CONSTRAINT shipments_distribution_goods_shipmentsdistribution_foreign FOREIGN KEY ("ShipmentsDistribution") REFERENCES public.shipments_distributions(id) ON DELETE CASCADE;


--
-- Name: shipping_companies shipping_companies_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipping_companies
    ADD CONSTRAINT shipping_companies_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: shipping_orders shipping_orders_client_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipping_orders
    ADD CONSTRAINT shipping_orders_client_foreign FOREIGN KEY ("Client") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: shipping_orders shipping_orders_delegate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipping_orders
    ADD CONSTRAINT shipping_orders_delegate_foreign FOREIGN KEY ("Delegate") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: shipping_orders shipping_orders_status_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipping_orders
    ADD CONSTRAINT shipping_orders_status_foreign FOREIGN KEY ("Status") REFERENCES public.shipping_statuses(id) ON DELETE CASCADE;


--
-- Name: shipping_orders shipping_orders_type_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipping_orders
    ADD CONSTRAINT shipping_orders_type_foreign FOREIGN KEY ("Type") REFERENCES public.shipping_types(id) ON DELETE CASCADE;


--
-- Name: shipping_orders shipping_orders_vendor_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipping_orders
    ADD CONSTRAINT shipping_orders_vendor_foreign FOREIGN KEY ("Vendor") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: shortcomings shortcomings_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shortcomings
    ADD CONSTRAINT shortcomings_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: shortcomings shortcomings_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shortcomings
    ADD CONSTRAINT shortcomings_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: shortcomings shortcomings_delegate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shortcomings
    ADD CONSTRAINT shortcomings_delegate_foreign FOREIGN KEY ("Delegate") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: shortcomings shortcomings_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shortcomings
    ADD CONSTRAINT shortcomings_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: shortcomings shortcomings_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shortcomings
    ADD CONSTRAINT shortcomings_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: shortcomings shortcomings_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shortcomings
    ADD CONSTRAINT shortcomings_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: shortcomings shortcomings_vendor_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shortcomings
    ADD CONSTRAINT shortcomings_vendor_foreign FOREIGN KEY ("Vendor") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: spend_profits spend_profits_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.spend_profits
    ADD CONSTRAINT spend_profits_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: spend_profits spend_profits_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.spend_profits
    ADD CONSTRAINT spend_profits_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: spend_profits spend_profits_partner_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.spend_profits
    ADD CONSTRAINT spend_profits_partner_foreign FOREIGN KEY ("Partner") REFERENCES public.partners(id) ON DELETE CASCADE;


--
-- Name: spend_profits spend_profits_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.spend_profits
    ADD CONSTRAINT spend_profits_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: spend_profits spend_profits_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.spend_profits
    ADD CONSTRAINT spend_profits_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: start_periods start_periods_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.start_periods
    ADD CONSTRAINT start_periods_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: start_periods start_periods_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.start_periods
    ADD CONSTRAINT start_periods_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: start_periods start_periods_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.start_periods
    ADD CONSTRAINT start_periods_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: stores stores_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores
    ADD CONSTRAINT stores_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: stores_default_data stores_default_data_account_dificit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_default_data
    ADD CONSTRAINT stores_default_data_account_dificit_foreign FOREIGN KEY ("Account_Dificit") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: stores_default_data stores_default_data_account_excess_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_default_data
    ADD CONSTRAINT stores_default_data_account_excess_foreign FOREIGN KEY ("Account_Excess") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: stores_default_data stores_default_data_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_default_data
    ADD CONSTRAINT stores_default_data_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: stores_default_data stores_default_data_group_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_default_data
    ADD CONSTRAINT stores_default_data_group_foreign FOREIGN KEY ("Group") REFERENCES public.items_groups(id) ON DELETE CASCADE;


--
-- Name: stores_default_data stores_default_data_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_default_data
    ADD CONSTRAINT stores_default_data_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: stores_default_data stores_default_data_tax_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_default_data
    ADD CONSTRAINT stores_default_data_tax_foreign FOREIGN KEY ("Tax") REFERENCES public.taxes(id) ON DELETE CASCADE;


--
-- Name: stores_default_data stores_default_data_unit_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores_default_data
    ADD CONSTRAINT stores_default_data_unit_foreign FOREIGN KEY ("Unit") REFERENCES public.measuerments(id) ON DELETE CASCADE;


--
-- Name: stores stores_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stores
    ADD CONSTRAINT stores_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: stors_transfers stors_transfers_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stors_transfers
    ADD CONSTRAINT stors_transfers_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: stors_transfers stors_transfers_cost_center_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stors_transfers
    ADD CONSTRAINT stors_transfers_cost_center_foreign FOREIGN KEY ("Cost_Center") REFERENCES public.cost_centers(id) ON DELETE CASCADE;


--
-- Name: stors_transfers stors_transfers_from_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stors_transfers
    ADD CONSTRAINT stors_transfers_from_store_foreign FOREIGN KEY ("From_Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: stors_transfers stors_transfers_to_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stors_transfers
    ADD CONSTRAINT stors_transfers_to_store_foreign FOREIGN KEY ("To_Store") REFERENCES public.stores(id) ON DELETE CASCADE;


--
-- Name: stors_transfers stors_transfers_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stors_transfers
    ADD CONSTRAINT stors_transfers_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: sub_images sub_images_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sub_images
    ADD CONSTRAINT sub_images_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: sub_virables sub_virables_v_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sub_virables
    ADD CONSTRAINT sub_virables_v_id_foreign FOREIGN KEY ("V_ID") REFERENCES public.virables(id) ON DELETE CASCADE;


--
-- Name: unloading_shipments_goods unloading_shipments_goods_shipmentsunloading_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unloading_shipments_goods
    ADD CONSTRAINT unloading_shipments_goods_shipmentsunloading_foreign FOREIGN KEY ("ShipmentsUnloading") REFERENCES public.unloading_shipments(id) ON DELETE CASCADE;


--
-- Name: users_moves users_moves_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.users_moves
    ADD CONSTRAINT users_moves_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: v_a_prices v_a_prices_mainv_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.v_a_prices
    ADD CONSTRAINT v_a_prices_mainv_foreign FOREIGN KEY ("MainV") REFERENCES public.virables(id) ON DELETE CASCADE;


--
-- Name: v_a_prices v_a_prices_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.v_a_prices
    ADD CONSTRAINT v_a_prices_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: v_a_prices v_a_prices_subv_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.v_a_prices
    ADD CONSTRAINT v_a_prices_subv_foreign FOREIGN KEY ("SubV") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: v_a_products v_a_products_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.v_a_products
    ADD CONSTRAINT v_a_products_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: v_a_products v_a_products_productid_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.v_a_products
    ADD CONSTRAINT v_a_products_productid_foreign FOREIGN KEY ("ProductID") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: v_a_qties v_a_qties_mainv_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.v_a_qties
    ADD CONSTRAINT v_a_qties_mainv_foreign FOREIGN KEY ("MainV") REFERENCES public.virables(id) ON DELETE CASCADE;


--
-- Name: v_a_qties v_a_qties_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.v_a_qties
    ADD CONSTRAINT v_a_qties_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: v_a_qties v_a_qties_productid_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.v_a_qties
    ADD CONSTRAINT v_a_qties_productid_foreign FOREIGN KEY ("ProductID") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: v_a_qties v_a_qties_subv_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.v_a_qties
    ADD CONSTRAINT v_a_qties_subv_foreign FOREIGN KEY ("SubV") REFERENCES public.sub_virables(id) ON DELETE CASCADE;


--
-- Name: v_a_qties v_a_qties_vaproductid_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.v_a_qties
    ADD CONSTRAINT v_a_qties_vaproductid_foreign FOREIGN KEY ("VAProductID") REFERENCES public.v_a_products(id) ON DELETE CASCADE;


--
-- Name: vendors vendors_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vendors
    ADD CONSTRAINT vendors_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: vendors vendors_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vendors
    ADD CONSTRAINT vendors_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(id) ON DELETE CASCADE;


--
-- Name: wishlists wishlists_product_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.wishlists
    ADD CONSTRAINT wishlists_product_foreign FOREIGN KEY ("Product") REFERENCES public.products(id) ON DELETE CASCADE;


--
-- Name: wishlists wishlists_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.wishlists
    ADD CONSTRAINT wishlists_user_foreign FOREIGN KEY ("User") REFERENCES public.customers(id) ON DELETE CASCADE;


--
-- Name: workers_sales_petrols workers_sales_petrols_salespetrol_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workers_sales_petrols
    ADD CONSTRAINT workers_sales_petrols_salespetrol_foreign FOREIGN KEY ("SalesPetrol") REFERENCES public.sales_petrols(id) ON DELETE CASCADE;


--
-- Name: workers_sales_petrols workers_sales_petrols_worker_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.workers_sales_petrols
    ADD CONSTRAINT workers_sales_petrols_worker_foreign FOREIGN KEY ("Worker") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
--

