{
  "version": "7",
  "dialect": "postgresql",
  "tables": {
    "public.users_roles": {
      "name": "users_roles",
      "schema": "",
      "columns": {
        "order": {
          "name": "order",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "parent_id": {
          "name": "parent_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "value": {
          "name": "value",
          "type": "enum_users_roles",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": false
        },
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        }
      },
      "indexes": {
        "users_roles_order_idx": {
          "name": "users_roles_order_idx",
          "columns": [
            {
              "expression": "order",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "users_roles_parent_idx": {
          "name": "users_roles_parent_idx",
          "columns": [
            {
              "expression": "parent_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "users_roles_parent_fk": {
          "name": "users_roles_parent_fk",
          "tableFrom": "users_roles",
          "tableTo": "users",
          "columnsFrom": ["parent_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.users_tenants_roles": {
      "name": "users_tenants_roles",
      "schema": "",
      "columns": {
        "order": {
          "name": "order",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "parent_id": {
          "name": "parent_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "value": {
          "name": "value",
          "type": "enum_users_tenants_roles",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": false
        },
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        }
      },
      "indexes": {
        "users_tenants_roles_order_idx": {
          "name": "users_tenants_roles_order_idx",
          "columns": [
            {
              "expression": "order",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "users_tenants_roles_parent_idx": {
          "name": "users_tenants_roles_parent_idx",
          "columns": [
            {
              "expression": "parent_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "users_tenants_roles_parent_fk": {
          "name": "users_tenants_roles_parent_fk",
          "tableFrom": "users_tenants_roles",
          "tableTo": "users_tenants",
          "columnsFrom": ["parent_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.users_tenants": {
      "name": "users_tenants",
      "schema": "",
      "columns": {
        "_order": {
          "name": "_order",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "_parent_id": {
          "name": "_parent_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "tenant_id": {
          "name": "tenant_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        }
      },
      "indexes": {
        "users_tenants_order_idx": {
          "name": "users_tenants_order_idx",
          "columns": [
            {
              "expression": "_order",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "users_tenants_parent_id_idx": {
          "name": "users_tenants_parent_id_idx",
          "columns": [
            {
              "expression": "_parent_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "users_tenants_tenant_idx": {
          "name": "users_tenants_tenant_idx",
          "columns": [
            {
              "expression": "tenant_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "users_tenants_tenant_id_tenants_id_fk": {
          "name": "users_tenants_tenant_id_tenants_id_fk",
          "tableFrom": "users_tenants",
          "tableTo": "tenants",
          "columnsFrom": ["tenant_id"],
          "columnsTo": ["id"],
          "onDelete": "set null",
          "onUpdate": "no action"
        },
        "users_tenants_parent_id_fk": {
          "name": "users_tenants_parent_id_fk",
          "tableFrom": "users_tenants",
          "tableTo": "users",
          "columnsFrom": ["_parent_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.users_sessions": {
      "name": "users_sessions",
      "schema": "",
      "columns": {
        "_order": {
          "name": "_order",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "_parent_id": {
          "name": "_parent_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": false
        },
        "expires_at": {
          "name": "expires_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true
        }
      },
      "indexes": {
        "users_sessions_order_idx": {
          "name": "users_sessions_order_idx",
          "columns": [
            {
              "expression": "_order",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "users_sessions_parent_id_idx": {
          "name": "users_sessions_parent_id_idx",
          "columns": [
            {
              "expression": "_parent_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "users_sessions_parent_id_fk": {
          "name": "users_sessions_parent_id_fk",
          "tableFrom": "users_sessions",
          "tableTo": "users",
          "columnsFrom": ["_parent_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.users": {
      "name": "users",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        },
        "name": {
          "name": "name",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "password": {
          "name": "password",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "username": {
          "name": "username",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "email": {
          "name": "email",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "reset_password_token": {
          "name": "reset_password_token",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "reset_password_expiration": {
          "name": "reset_password_expiration",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": false
        },
        "salt": {
          "name": "salt",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "hash": {
          "name": "hash",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "login_attempts": {
          "name": "login_attempts",
          "type": "numeric",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "lock_until": {
          "name": "lock_until",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {
        "users_username_idx": {
          "name": "users_username_idx",
          "columns": [
            {
              "expression": "username",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "users_updated_at_idx": {
          "name": "users_updated_at_idx",
          "columns": [
            {
              "expression": "updated_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "users_created_at_idx": {
          "name": "users_created_at_idx",
          "columns": [
            {
              "expression": "created_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "users_email_idx": {
          "name": "users_email_idx",
          "columns": [
            {
              "expression": "email",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": true,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.tenants": {
      "name": "tenants",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        },
        "name": {
          "name": "name",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "slug": {
          "name": "slug",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "domain": {
          "name": "domain",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "address": {
          "name": "address",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "phone": {
          "name": "phone",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "tenants_slug_idx": {
          "name": "tenants_slug_idx",
          "columns": [
            {
              "expression": "slug",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": true,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "tenants_updated_at_idx": {
          "name": "tenants_updated_at_idx",
          "columns": [
            {
              "expression": "updated_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "tenants_created_at_idx": {
          "name": "tenants_created_at_idx",
          "columns": [
            {
              "expression": "created_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.residents": {
      "name": "residents",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        },
        "tenant_id": {
          "name": "tenant_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "name": {
          "name": "name",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "room": {
          "name": "room",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "table": {
          "name": "table",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "station": {
          "name": "station",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "high_caloric": {
          "name": "high_caloric",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": false
        },
        "active": {
          "name": "active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": true
        },
        "aversions": {
          "name": "aversions",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "notes": {
          "name": "notes",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "residents_tenant_idx": {
          "name": "residents_tenant_idx",
          "columns": [
            {
              "expression": "tenant_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "residents_room_idx": {
          "name": "residents_room_idx",
          "columns": [
            {
              "expression": "room",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "residents_updated_at_idx": {
          "name": "residents_updated_at_idx",
          "columns": [
            {
              "expression": "updated_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "residents_created_at_idx": {
          "name": "residents_created_at_idx",
          "columns": [
            {
              "expression": "created_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "residents_tenant_id_tenants_id_fk": {
          "name": "residents_tenant_id_tenants_id_fk",
          "tableFrom": "residents",
          "tableTo": "tenants",
          "columnsFrom": ["tenant_id"],
          "columnsTo": ["id"],
          "onDelete": "set null",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.meal_orders": {
      "name": "meal_orders",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        },
        "tenant_id": {
          "name": "tenant_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "title": {
          "name": "title",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "date": {
          "name": "date",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true
        },
        "meal_type": {
          "name": "meal_type",
          "type": "enum_meal_orders_meal_type",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": true
        },
        "status": {
          "name": "status",
          "type": "enum_meal_orders_status",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": true,
          "default": "'draft'"
        },
        "meal_count": {
          "name": "meal_count",
          "type": "numeric",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "submitted_at": {
          "name": "submitted_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": false
        },
        "created_by_id": {
          "name": "created_by_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "notes": {
          "name": "notes",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "meal_orders_tenant_idx": {
          "name": "meal_orders_tenant_idx",
          "columns": [
            {
              "expression": "tenant_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "meal_orders_date_idx": {
          "name": "meal_orders_date_idx",
          "columns": [
            {
              "expression": "date",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "meal_orders_meal_type_idx": {
          "name": "meal_orders_meal_type_idx",
          "columns": [
            {
              "expression": "meal_type",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "meal_orders_status_idx": {
          "name": "meal_orders_status_idx",
          "columns": [
            {
              "expression": "status",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "meal_orders_created_by_idx": {
          "name": "meal_orders_created_by_idx",
          "columns": [
            {
              "expression": "created_by_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "meal_orders_updated_at_idx": {
          "name": "meal_orders_updated_at_idx",
          "columns": [
            {
              "expression": "updated_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "meal_orders_created_at_idx": {
          "name": "meal_orders_created_at_idx",
          "columns": [
            {
              "expression": "created_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "meal_orders_tenant_id_tenants_id_fk": {
          "name": "meal_orders_tenant_id_tenants_id_fk",
          "tableFrom": "meal_orders",
          "tableTo": "tenants",
          "columnsFrom": ["tenant_id"],
          "columnsTo": ["id"],
          "onDelete": "set null",
          "onUpdate": "no action"
        },
        "meal_orders_created_by_id_users_id_fk": {
          "name": "meal_orders_created_by_id_users_id_fk",
          "tableFrom": "meal_orders",
          "tableTo": "users",
          "columnsFrom": ["created_by_id"],
          "columnsTo": ["id"],
          "onDelete": "set null",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.meals": {
      "name": "meals",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        },
        "tenant_id": {
          "name": "tenant_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "title": {
          "name": "title",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "order_id": {
          "name": "order_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "resident_id": {
          "name": "resident_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "date": {
          "name": "date",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true
        },
        "meal_type": {
          "name": "meal_type",
          "type": "enum_meals_meal_type",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": true
        },
        "status": {
          "name": "status",
          "type": "enum_meals_status",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": true,
          "default": "'pending'"
        },
        "form_image_id": {
          "name": "form_image_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "created_by_id": {
          "name": "created_by_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "high_caloric": {
          "name": "high_caloric",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": false
        },
        "aversions": {
          "name": "aversions",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "notes": {
          "name": "notes",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_according_to_plan": {
          "name": "breakfast_according_to_plan",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": false
        },
        "breakfast_bread_bread_roll": {
          "name": "breakfast_bread_bread_roll",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_bread_whole_grain_roll": {
          "name": "breakfast_bread_whole_grain_roll",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_bread_grey_bread": {
          "name": "breakfast_bread_grey_bread",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_bread_whole_grain_bread": {
          "name": "breakfast_bread_whole_grain_bread",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_bread_white_bread": {
          "name": "breakfast_bread_white_bread",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_bread_crispbread": {
          "name": "breakfast_bread_crispbread",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_porridge": {
          "name": "breakfast_porridge",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_preparation_sliced": {
          "name": "breakfast_preparation_sliced",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_preparation_spread": {
          "name": "breakfast_preparation_spread",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_spreads_butter": {
          "name": "breakfast_spreads_butter",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_spreads_margarine": {
          "name": "breakfast_spreads_margarine",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_spreads_jam": {
          "name": "breakfast_spreads_jam",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_spreads_diabetic_jam": {
          "name": "breakfast_spreads_diabetic_jam",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_spreads_honey": {
          "name": "breakfast_spreads_honey",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_spreads_cheese": {
          "name": "breakfast_spreads_cheese",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_spreads_quark": {
          "name": "breakfast_spreads_quark",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_spreads_sausage": {
          "name": "breakfast_spreads_sausage",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_beverages_coffee": {
          "name": "breakfast_beverages_coffee",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_beverages_tea": {
          "name": "breakfast_beverages_tea",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_beverages_hot_milk": {
          "name": "breakfast_beverages_hot_milk",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_beverages_cold_milk": {
          "name": "breakfast_beverages_cold_milk",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_additions_sugar": {
          "name": "breakfast_additions_sugar",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_additions_sweetener": {
          "name": "breakfast_additions_sweetener",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "breakfast_additions_coffee_creamer": {
          "name": "breakfast_additions_coffee_creamer",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "lunch_portion_size": {
          "name": "lunch_portion_size",
          "type": "enum_meals_lunch_portion_size",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": false
        },
        "lunch_soup": {
          "name": "lunch_soup",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "lunch_dessert": {
          "name": "lunch_dessert",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "lunch_special_preparations_pureed_food": {
          "name": "lunch_special_preparations_pureed_food",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "lunch_special_preparations_pureed_meat": {
          "name": "lunch_special_preparations_pureed_meat",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "lunch_special_preparations_sliced_meat": {
          "name": "lunch_special_preparations_sliced_meat",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "lunch_special_preparations_mashed_potatoes": {
          "name": "lunch_special_preparations_mashed_potatoes",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "lunch_restrictions_no_fish": {
          "name": "lunch_restrictions_no_fish",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "lunch_restrictions_finger_food": {
          "name": "lunch_restrictions_finger_food",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "lunch_restrictions_only_sweet": {
          "name": "lunch_restrictions_only_sweet",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_according_to_plan": {
          "name": "dinner_according_to_plan",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": false
        },
        "dinner_bread_grey_bread": {
          "name": "dinner_bread_grey_bread",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_bread_whole_grain_bread": {
          "name": "dinner_bread_whole_grain_bread",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_bread_white_bread": {
          "name": "dinner_bread_white_bread",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_bread_crispbread": {
          "name": "dinner_bread_crispbread",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_preparation_spread": {
          "name": "dinner_preparation_spread",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_preparation_sliced": {
          "name": "dinner_preparation_sliced",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_spreads_butter": {
          "name": "dinner_spreads_butter",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_spreads_margarine": {
          "name": "dinner_spreads_margarine",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_soup": {
          "name": "dinner_soup",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_porridge": {
          "name": "dinner_porridge",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_no_fish": {
          "name": "dinner_no_fish",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_beverages_tea": {
          "name": "dinner_beverages_tea",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_beverages_cocoa": {
          "name": "dinner_beverages_cocoa",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_beverages_hot_milk": {
          "name": "dinner_beverages_hot_milk",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_beverages_cold_milk": {
          "name": "dinner_beverages_cold_milk",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_additions_sugar": {
          "name": "dinner_additions_sugar",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "dinner_additions_sweetener": {
          "name": "dinner_additions_sweetener",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "meals_tenant_idx": {
          "name": "meals_tenant_idx",
          "columns": [
            {
              "expression": "tenant_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "meals_order_idx": {
          "name": "meals_order_idx",
          "columns": [
            {
              "expression": "order_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "meals_resident_idx": {
          "name": "meals_resident_idx",
          "columns": [
            {
              "expression": "resident_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "meals_date_idx": {
          "name": "meals_date_idx",
          "columns": [
            {
              "expression": "date",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "meals_meal_type_idx": {
          "name": "meals_meal_type_idx",
          "columns": [
            {
              "expression": "meal_type",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "meals_status_idx": {
          "name": "meals_status_idx",
          "columns": [
            {
              "expression": "status",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "meals_form_image_idx": {
          "name": "meals_form_image_idx",
          "columns": [
            {
              "expression": "form_image_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "meals_created_by_idx": {
          "name": "meals_created_by_idx",
          "columns": [
            {
              "expression": "created_by_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "meals_updated_at_idx": {
          "name": "meals_updated_at_idx",
          "columns": [
            {
              "expression": "updated_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "meals_created_at_idx": {
          "name": "meals_created_at_idx",
          "columns": [
            {
              "expression": "created_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "meals_tenant_id_tenants_id_fk": {
          "name": "meals_tenant_id_tenants_id_fk",
          "tableFrom": "meals",
          "tableTo": "tenants",
          "columnsFrom": ["tenant_id"],
          "columnsTo": ["id"],
          "onDelete": "set null",
          "onUpdate": "no action"
        },
        "meals_order_id_meal_orders_id_fk": {
          "name": "meals_order_id_meal_orders_id_fk",
          "tableFrom": "meals",
          "tableTo": "meal_orders",
          "columnsFrom": ["order_id"],
          "columnsTo": ["id"],
          "onDelete": "set null",
          "onUpdate": "no action"
        },
        "meals_resident_id_residents_id_fk": {
          "name": "meals_resident_id_residents_id_fk",
          "tableFrom": "meals",
          "tableTo": "residents",
          "columnsFrom": ["resident_id"],
          "columnsTo": ["id"],
          "onDelete": "set null",
          "onUpdate": "no action"
        },
        "meals_form_image_id_media_id_fk": {
          "name": "meals_form_image_id_media_id_fk",
          "tableFrom": "meals",
          "tableTo": "media",
          "columnsFrom": ["form_image_id"],
          "columnsTo": ["id"],
          "onDelete": "set null",
          "onUpdate": "no action"
        },
        "meals_created_by_id_users_id_fk": {
          "name": "meals_created_by_id_users_id_fk",
          "tableFrom": "meals",
          "tableTo": "users",
          "columnsFrom": ["created_by_id"],
          "columnsTo": ["id"],
          "onDelete": "set null",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.media": {
      "name": "media",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        },
        "alt": {
          "name": "alt",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "caption": {
          "name": "caption",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "url": {
          "name": "url",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "thumbnail_u_r_l": {
          "name": "thumbnail_u_r_l",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "filename": {
          "name": "filename",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "mime_type": {
          "name": "mime_type",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "filesize": {
          "name": "filesize",
          "type": "numeric",
          "primaryKey": false,
          "notNull": false
        },
        "width": {
          "name": "width",
          "type": "numeric",
          "primaryKey": false,
          "notNull": false
        },
        "height": {
          "name": "height",
          "type": "numeric",
          "primaryKey": false,
          "notNull": false
        },
        "focal_x": {
          "name": "focal_x",
          "type": "numeric",
          "primaryKey": false,
          "notNull": false
        },
        "focal_y": {
          "name": "focal_y",
          "type": "numeric",
          "primaryKey": false,
          "notNull": false
        },
        "sizes_thumbnail_url": {
          "name": "sizes_thumbnail_url",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "sizes_thumbnail_width": {
          "name": "sizes_thumbnail_width",
          "type": "numeric",
          "primaryKey": false,
          "notNull": false
        },
        "sizes_thumbnail_height": {
          "name": "sizes_thumbnail_height",
          "type": "numeric",
          "primaryKey": false,
          "notNull": false
        },
        "sizes_thumbnail_mime_type": {
          "name": "sizes_thumbnail_mime_type",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "sizes_thumbnail_filesize": {
          "name": "sizes_thumbnail_filesize",
          "type": "numeric",
          "primaryKey": false,
          "notNull": false
        },
        "sizes_thumbnail_filename": {
          "name": "sizes_thumbnail_filename",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "sizes_preview_url": {
          "name": "sizes_preview_url",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "sizes_preview_width": {
          "name": "sizes_preview_width",
          "type": "numeric",
          "primaryKey": false,
          "notNull": false
        },
        "sizes_preview_height": {
          "name": "sizes_preview_height",
          "type": "numeric",
          "primaryKey": false,
          "notNull": false
        },
        "sizes_preview_mime_type": {
          "name": "sizes_preview_mime_type",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "sizes_preview_filesize": {
          "name": "sizes_preview_filesize",
          "type": "numeric",
          "primaryKey": false,
          "notNull": false
        },
        "sizes_preview_filename": {
          "name": "sizes_preview_filename",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {
        "media_updated_at_idx": {
          "name": "media_updated_at_idx",
          "columns": [
            {
              "expression": "updated_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "media_created_at_idx": {
          "name": "media_created_at_idx",
          "columns": [
            {
              "expression": "created_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "media_filename_idx": {
          "name": "media_filename_idx",
          "columns": [
            {
              "expression": "filename",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": true,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "media_sizes_thumbnail_sizes_thumbnail_filename_idx": {
          "name": "media_sizes_thumbnail_sizes_thumbnail_filename_idx",
          "columns": [
            {
              "expression": "sizes_thumbnail_filename",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "media_sizes_preview_sizes_preview_filename_idx": {
          "name": "media_sizes_preview_sizes_preview_filename_idx",
          "columns": [
            {
              "expression": "sizes_preview_filename",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.payload_kv": {
      "name": "payload_kv",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        },
        "key": {
          "name": "key",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "data": {
          "name": "data",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": true
        }
      },
      "indexes": {
        "payload_kv_key_idx": {
          "name": "payload_kv_key_idx",
          "columns": [
            {
              "expression": "key",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": true,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.payload_locked_documents": {
      "name": "payload_locked_documents",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        },
        "global_slug": {
          "name": "global_slug",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "payload_locked_documents_global_slug_idx": {
          "name": "payload_locked_documents_global_slug_idx",
          "columns": [
            {
              "expression": "global_slug",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "payload_locked_documents_updated_at_idx": {
          "name": "payload_locked_documents_updated_at_idx",
          "columns": [
            {
              "expression": "updated_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "payload_locked_documents_created_at_idx": {
          "name": "payload_locked_documents_created_at_idx",
          "columns": [
            {
              "expression": "created_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.payload_locked_documents_rels": {
      "name": "payload_locked_documents_rels",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        },
        "order": {
          "name": "order",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "parent_id": {
          "name": "parent_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "path": {
          "name": "path",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "users_id": {
          "name": "users_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "tenants_id": {
          "name": "tenants_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "residents_id": {
          "name": "residents_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "meal_orders_id": {
          "name": "meal_orders_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "meals_id": {
          "name": "meals_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "media_id": {
          "name": "media_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {
        "payload_locked_documents_rels_order_idx": {
          "name": "payload_locked_documents_rels_order_idx",
          "columns": [
            {
              "expression": "order",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "payload_locked_documents_rels_parent_idx": {
          "name": "payload_locked_documents_rels_parent_idx",
          "columns": [
            {
              "expression": "parent_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "payload_locked_documents_rels_path_idx": {
          "name": "payload_locked_documents_rels_path_idx",
          "columns": [
            {
              "expression": "path",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "payload_locked_documents_rels_users_id_idx": {
          "name": "payload_locked_documents_rels_users_id_idx",
          "columns": [
            {
              "expression": "users_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "payload_locked_documents_rels_tenants_id_idx": {
          "name": "payload_locked_documents_rels_tenants_id_idx",
          "columns": [
            {
              "expression": "tenants_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "payload_locked_documents_rels_residents_id_idx": {
          "name": "payload_locked_documents_rels_residents_id_idx",
          "columns": [
            {
              "expression": "residents_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "payload_locked_documents_rels_meal_orders_id_idx": {
          "name": "payload_locked_documents_rels_meal_orders_id_idx",
          "columns": [
            {
              "expression": "meal_orders_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "payload_locked_documents_rels_meals_id_idx": {
          "name": "payload_locked_documents_rels_meals_id_idx",
          "columns": [
            {
              "expression": "meals_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "payload_locked_documents_rels_media_id_idx": {
          "name": "payload_locked_documents_rels_media_id_idx",
          "columns": [
            {
              "expression": "media_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "payload_locked_documents_rels_parent_fk": {
          "name": "payload_locked_documents_rels_parent_fk",
          "tableFrom": "payload_locked_documents_rels",
          "tableTo": "payload_locked_documents",
          "columnsFrom": ["parent_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "payload_locked_documents_rels_users_fk": {
          "name": "payload_locked_documents_rels_users_fk",
          "tableFrom": "payload_locked_documents_rels",
          "tableTo": "users",
          "columnsFrom": ["users_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "payload_locked_documents_rels_tenants_fk": {
          "name": "payload_locked_documents_rels_tenants_fk",
          "tableFrom": "payload_locked_documents_rels",
          "tableTo": "tenants",
          "columnsFrom": ["tenants_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "payload_locked_documents_rels_residents_fk": {
          "name": "payload_locked_documents_rels_residents_fk",
          "tableFrom": "payload_locked_documents_rels",
          "tableTo": "residents",
          "columnsFrom": ["residents_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "payload_locked_documents_rels_meal_orders_fk": {
          "name": "payload_locked_documents_rels_meal_orders_fk",
          "tableFrom": "payload_locked_documents_rels",
          "tableTo": "meal_orders",
          "columnsFrom": ["meal_orders_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "payload_locked_documents_rels_meals_fk": {
          "name": "payload_locked_documents_rels_meals_fk",
          "tableFrom": "payload_locked_documents_rels",
          "tableTo": "meals",
          "columnsFrom": ["meals_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "payload_locked_documents_rels_media_fk": {
          "name": "payload_locked_documents_rels_media_fk",
          "tableFrom": "payload_locked_documents_rels",
          "tableTo": "media",
          "columnsFrom": ["media_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.payload_preferences": {
      "name": "payload_preferences",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        },
        "key": {
          "name": "key",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "value": {
          "name": "value",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "payload_preferences_key_idx": {
          "name": "payload_preferences_key_idx",
          "columns": [
            {
              "expression": "key",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "payload_preferences_updated_at_idx": {
          "name": "payload_preferences_updated_at_idx",
          "columns": [
            {
              "expression": "updated_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "payload_preferences_created_at_idx": {
          "name": "payload_preferences_created_at_idx",
          "columns": [
            {
              "expression": "created_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.payload_preferences_rels": {
      "name": "payload_preferences_rels",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        },
        "order": {
          "name": "order",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "parent_id": {
          "name": "parent_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "path": {
          "name": "path",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "users_id": {
          "name": "users_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {
        "payload_preferences_rels_order_idx": {
          "name": "payload_preferences_rels_order_idx",
          "columns": [
            {
              "expression": "order",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "payload_preferences_rels_parent_idx": {
          "name": "payload_preferences_rels_parent_idx",
          "columns": [
            {
              "expression": "parent_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "payload_preferences_rels_path_idx": {
          "name": "payload_preferences_rels_path_idx",
          "columns": [
            {
              "expression": "path",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "payload_preferences_rels_users_id_idx": {
          "name": "payload_preferences_rels_users_id_idx",
          "columns": [
            {
              "expression": "users_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "payload_preferences_rels_parent_fk": {
          "name": "payload_preferences_rels_parent_fk",
          "tableFrom": "payload_preferences_rels",
          "tableTo": "payload_preferences",
          "columnsFrom": ["parent_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "payload_preferences_rels_users_fk": {
          "name": "payload_preferences_rels_users_fk",
          "tableFrom": "payload_preferences_rels",
          "tableTo": "users",
          "columnsFrom": ["users_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.payload_migrations": {
      "name": "payload_migrations",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        },
        "name": {
          "name": "name",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "batch": {
          "name": "batch",
          "type": "numeric",
          "primaryKey": false,
          "notNull": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3) with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "payload_migrations_updated_at_idx": {
          "name": "payload_migrations_updated_at_idx",
          "columns": [
            {
              "expression": "updated_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "payload_migrations_created_at_idx": {
          "name": "payload_migrations_created_at_idx",
          "columns": [
            {
              "expression": "created_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    }
  },
  "enums": {
    "public.enum_users_roles": {
      "name": "enum_users_roles",
      "schema": "public",
      "values": ["super-admin", "user"]
    },
    "public.enum_users_tenants_roles": {
      "name": "enum_users_tenants_roles",
      "schema": "public",
      "values": ["admin", "caregiver", "kitchen"]
    },
    "public.enum_meal_orders_meal_type": {
      "name": "enum_meal_orders_meal_type",
      "schema": "public",
      "values": ["breakfast", "lunch", "dinner"]
    },
    "public.enum_meal_orders_status": {
      "name": "enum_meal_orders_status",
      "schema": "public",
      "values": ["draft", "submitted", "preparing", "completed"]
    },
    "public.enum_meals_meal_type": {
      "name": "enum_meals_meal_type",
      "schema": "public",
      "values": ["breakfast", "lunch", "dinner"]
    },
    "public.enum_meals_status": {
      "name": "enum_meals_status",
      "schema": "public",
      "values": ["pending", "preparing", "prepared"]
    },
    "public.enum_meals_lunch_portion_size": {
      "name": "enum_meals_lunch_portion_size",
      "schema": "public",
      "values": ["small", "large", "vegetarian"]
    }
  },
  "schemas": {},
  "sequences": {},
  "roles": {},
  "policies": {},
  "views": {},
  "_meta": {
    "schemas": {},
    "tables": {},
    "columns": {}
  },
  "id": "3fe1a562-cdc5-4c23-8d66-73b8d8f4e3fc",
  "prevId": "00000000-0000-0000-0000-000000000000"
}
