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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.manufacture_companies_id_seq', 20, true);


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.measuerments_id_seq', 12, true);


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

SELECT pg_catalog.setval('public.migrations_id_seq', 123, true);


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.pack_prems_id_seq', 6692, true);


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.permission_to_exchange_goods_id_seq', 13, true);


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

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


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

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


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

SELECT pg_catalog.setval('public.permissions_id_seq', 744, true);


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.product_executing_receiving_secretariats_id_seq', 38, true);


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.product_moves_filter_twos_id_seq', 26, true);


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

SELECT pg_catalog.setval('public.product_moves_filters_id_seq', 26, true);


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

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


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

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


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

SELECT pg_catalog.setval('public.product_return_without_bills_id_seq', 12, true);


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.quality_details_id_seq', 12, true);


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.resturant_tables_id_seq', 28, true);


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.sales_bills_filter_twos_id_seq', 12, true);


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

SELECT pg_catalog.setval('public.sales_bills_filters_id_seq', 12, true);


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.shifts_id_seq', 17, true);


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.shipping_list_tickets_id_seq', 28, true);


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

SELECT pg_catalog.setval('public.shipping_lists_id_seq', 22, true);


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.stores_id_seq', 21, true);


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.stores_moves_filters_id_seq', 26, true);


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

SELECT pg_catalog.setval('public.stores_moves_id_seq', 195, true);


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.sub_virables_id_seq', 21, true);


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.ticket_products_id_seq', 26, true);


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.transltors_id_seq', 47, true);


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.users_moves_id_seq', 3201, true);


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.vendors_id_seq', 21, true);


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

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


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

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


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

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


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

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


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

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


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

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


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

SELECT pg_catalog.setval('public.work_departments_id_seq', 26, true);


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

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


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

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


--
-- 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: admins admins_email_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.admins
    ADD CONSTRAINT admins_email_unique UNIQUE (email);


--
-- Name: admins admins_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.admins
    ADD CONSTRAINT admins_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: 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: 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: 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: company_data company_data_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.company_data
    ADD CONSTRAINT company_data_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: 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 customers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT customers_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_data_show_hides default_data_show_hides_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_data_show_hides
    ADD CONSTRAINT default_data_show_hides_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: 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: 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: employesses employesses_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.employesses
    ADD CONSTRAINT employesses_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: 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: 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_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_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: 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: 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_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_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: 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: 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_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_default_data sales_default_data_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_default_data
    ADD CONSTRAINT sales_default_data_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: settlements settlements_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.settlements
    ADD CONSTRAINT settlements_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: 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: customers customers_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT customers_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: customers customers_activity_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT customers_activity_foreign FOREIGN KEY ("Activity") REFERENCES public.activites(id) ON DELETE CASCADE;


--
-- Name: customers customers_campagin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT customers_campagin_foreign FOREIGN KEY ("Campagin") REFERENCES public.campaigns(id) ON DELETE CASCADE;


--
-- Name: customers customers_city_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT customers_city_foreign FOREIGN KEY ("City") REFERENCES public.cities(id) ON DELETE CASCADE;


--
-- Name: customers customers_clientstatus_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT customers_clientstatus_foreign FOREIGN KEY ("ClientStatus") REFERENCES public.client_statuses(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 customers_governrate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT customers_governrate_foreign FOREIGN KEY ("Governrate") REFERENCES public.governrates(id) ON DELETE CASCADE;


--
-- Name: customers customers_responsible_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT customers_responsible_foreign FOREIGN KEY ("Responsible") REFERENCES public.employesses(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: customers customers_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT customers_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: 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: employesses employesses_account_emp_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.employesses
    ADD CONSTRAINT employesses_account_emp_foreign FOREIGN KEY ("Account_Emp") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: employesses employesses_account_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.employesses
    ADD CONSTRAINT employesses_account_foreign FOREIGN KEY ("Account") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: employesses employesses_department_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.employesses
    ADD CONSTRAINT employesses_department_foreign FOREIGN KEY ("Department") REFERENCES public.work_departments(id) ON DELETE CASCADE;


--
-- Name: employesses employesses_job_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.employesses
    ADD CONSTRAINT employesses_job_foreign FOREIGN KEY ("Job") REFERENCES public.jobs_types(id) ON DELETE CASCADE;


--
-- Name: employesses employesses_user_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.employesses
    ADD CONSTRAINT employesses_user_foreign FOREIGN KEY ("User") REFERENCES public.admins(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: 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: customers fk_customers_countris; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT fk_customers_countris FOREIGN KEY ("Nationality") REFERENCES public.countris(id);


--
-- Name: customers fk_customers_customers_groups; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT fk_customers_customers_groups FOREIGN KEY ("Group") REFERENCES public.customers_groups(id);


--
-- Name: customers fk_customers_places; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT fk_customers_places FOREIGN KEY ("Place") REFERENCES public.places(id);


--
-- Name: customers fk_customers_products; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT fk_customers_products FOREIGN KEY ("Product") REFERENCES public.products(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_default_data sales_default_data_client_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_default_data
    ADD CONSTRAINT sales_default_data_client_foreign FOREIGN KEY ("Client") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: sales_default_data sales_default_data_coin_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_default_data
    ADD CONSTRAINT sales_default_data_coin_foreign FOREIGN KEY ("Coin") REFERENCES public.coins(id) ON DELETE CASCADE;


--
-- Name: sales_default_data sales_default_data_delegate_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_default_data
    ADD CONSTRAINT sales_default_data_delegate_foreign FOREIGN KEY ("Delegate") REFERENCES public.employesses(id) ON DELETE CASCADE;


--
-- Name: sales_default_data sales_default_data_safe_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_default_data
    ADD CONSTRAINT sales_default_data_safe_foreign FOREIGN KEY ("Safe") REFERENCES public.acccounting_manuals(id) ON DELETE CASCADE;


--
-- Name: sales_default_data sales_default_data_store_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sales_default_data
    ADD CONSTRAINT sales_default_data_store_foreign FOREIGN KEY ("Store") REFERENCES public.stores(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: 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;


--
--

