foundry-rs 0.6.1

Configuration-driven REST backend library for Rust with PostgreSQL — define schemas, tables, and APIs in JSON, get a production-grade REST service.
Documentation
[
  {
    "id": "rel_users_organization",
    "from_schema_id": "default",
    "from_table_id": "tbl_users",
    "from_column_id": "col_users_organization_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_organizations",
    "to_column_id": "col_organizations_id",
    "on_update": "CASCADE",
    "on_delete": "CASCADE",
    "name": "fk_users_organization_id"
  },
  {
    "id": "rel_customers_organization",
    "from_schema_id": "default",
    "from_table_id": "tbl_customers",
    "from_column_id": "col_customers_organization_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_organizations",
    "to_column_id": "col_organizations_id",
    "on_update": "CASCADE",
    "on_delete": "CASCADE",
    "name": "fk_customers_organization_id"
  },
  {
    "id": "rel_addresses_customer",
    "from_schema_id": "default",
    "from_table_id": "tbl_addresses",
    "from_column_id": "col_addresses_customer_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_customers",
    "to_column_id": "col_customers_id",
    "on_update": "CASCADE",
    "on_delete": "CASCADE",
    "name": "fk_addresses_customer_id"
  },
  {
    "id": "rel_warehouses_organization",
    "from_schema_id": "default",
    "from_table_id": "tbl_warehouses",
    "from_column_id": "col_warehouses_organization_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_organizations",
    "to_column_id": "col_organizations_id",
    "on_update": "CASCADE",
    "on_delete": "CASCADE",
    "name": "fk_warehouses_organization_id"
  },
  {
    "id": "rel_product_categories_organization",
    "from_schema_id": "default",
    "from_table_id": "tbl_product_categories",
    "from_column_id": "col_product_categories_organization_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_organizations",
    "to_column_id": "col_organizations_id",
    "on_update": "CASCADE",
    "on_delete": "CASCADE",
    "name": "fk_product_categories_organization_id"
  },
  {
    "id": "rel_product_categories_parent",
    "from_schema_id": "default",
    "from_table_id": "tbl_product_categories",
    "from_column_id": "col_product_categories_parent_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_product_categories",
    "to_column_id": "col_product_categories_id",
    "on_update": "CASCADE",
    "on_delete": "SET NULL",
    "name": "fk_product_categories_parent_id"
  },
  {
    "id": "rel_products_organization",
    "from_schema_id": "default",
    "from_table_id": "tbl_products",
    "from_column_id": "col_products_organization_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_organizations",
    "to_column_id": "col_organizations_id",
    "on_update": "CASCADE",
    "on_delete": "CASCADE",
    "name": "fk_products_organization_id"
  },
  {
    "id": "rel_product_category_mappings_product",
    "from_schema_id": "default",
    "from_table_id": "tbl_product_category_mappings",
    "from_column_id": "col_product_category_mappings_product_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_products",
    "to_column_id": "col_products_id",
    "on_update": "CASCADE",
    "on_delete": "CASCADE",
    "name": "fk_product_category_mappings_product_id"
  },
  {
    "id": "rel_product_category_mappings_category",
    "from_schema_id": "default",
    "from_table_id": "tbl_product_category_mappings",
    "from_column_id": "col_product_category_mappings_category_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_product_categories",
    "to_column_id": "col_product_categories_id",
    "on_update": "CASCADE",
    "on_delete": "CASCADE",
    "name": "fk_product_category_mappings_category_id"
  },
  {
    "id": "rel_orders_organization",
    "from_schema_id": "default",
    "from_table_id": "tbl_orders",
    "from_column_id": "col_orders_organization_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_organizations",
    "to_column_id": "col_organizations_id",
    "on_update": "CASCADE",
    "on_delete": "CASCADE",
    "name": "fk_orders_organization_id"
  },
  {
    "id": "rel_orders_customer",
    "from_schema_id": "default",
    "from_table_id": "tbl_orders",
    "from_column_id": "col_orders_customer_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_customers",
    "to_column_id": "col_customers_id",
    "on_update": "CASCADE",
    "on_delete": "RESTRICT",
    "name": "fk_orders_customer_id"
  },
  {
    "id": "rel_orders_shipping_address",
    "from_schema_id": "default",
    "from_table_id": "tbl_orders",
    "from_column_id": "col_orders_shipping_address_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_addresses",
    "to_column_id": "col_addresses_id",
    "on_update": "CASCADE",
    "on_delete": "SET NULL",
    "name": "fk_orders_shipping_address_id"
  },
  {
    "id": "rel_orders_billing_address",
    "from_schema_id": "default",
    "from_table_id": "tbl_orders",
    "from_column_id": "col_orders_billing_address_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_addresses",
    "to_column_id": "col_addresses_id",
    "on_update": "CASCADE",
    "on_delete": "SET NULL",
    "name": "fk_orders_billing_address_id"
  },
  {
    "id": "rel_order_items_order",
    "from_schema_id": "default",
    "from_table_id": "tbl_order_items",
    "from_column_id": "col_order_items_order_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_orders",
    "to_column_id": "col_orders_id",
    "on_update": "CASCADE",
    "on_delete": "CASCADE",
    "name": "fk_order_items_order_id"
  },
  {
    "id": "rel_order_items_product",
    "from_schema_id": "default",
    "from_table_id": "tbl_order_items",
    "from_column_id": "col_order_items_product_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_products",
    "to_column_id": "col_products_id",
    "on_update": "CASCADE",
    "on_delete": "RESTRICT",
    "name": "fk_order_items_product_id"
  },
  {
    "id": "rel_payments_order",
    "from_schema_id": "default",
    "from_table_id": "tbl_payments",
    "from_column_id": "col_payments_order_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_orders",
    "to_column_id": "col_orders_id",
    "on_update": "CASCADE",
    "on_delete": "CASCADE",
    "name": "fk_payments_order_id"
  },
  {
    "id": "rel_inventory_product",
    "from_schema_id": "default",
    "from_table_id": "tbl_inventory",
    "from_column_id": "col_inventory_product_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_products",
    "to_column_id": "col_products_id",
    "on_update": "CASCADE",
    "on_delete": "CASCADE",
    "name": "fk_inventory_product_id"
  },
  {
    "id": "rel_inventory_warehouse",
    "from_schema_id": "default",
    "from_table_id": "tbl_inventory",
    "from_column_id": "col_inventory_warehouse_id",
    "to_schema_id": "default",
    "to_table_id": "tbl_warehouses",
    "to_column_id": "col_warehouses_id",
    "on_update": "CASCADE",
    "on_delete": "CASCADE",
    "name": "fk_inventory_warehouse_id"
  }
]