<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
    <changeSet author="Ibrahima (generated)" id="1687122810094-1">
        <createTable tableName="verification_token">
            <column autoIncrement="true" name="id" startWith="67" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="verification_token_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="expiry_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="token" type="VARCHAR(255)"/>
            <column name="user_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-2">
        <createTable tableName="t_asset_customer_associations">
            <column name="id_customer" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_asset" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-3">
        <createTable tableName="t_asset_file_associations">
            <column name="id_asset" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_file" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-4">
        <createTable tableName="t_asset_part_associations">
            <column name="id_part" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_asset" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-5">
        <createTable tableName="t_asset_team_associations">
            <column name="id_asset" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_team" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-6">
        <createTable tableName="t_asset_user_associations">
            <column name="id_user" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_asset" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-7">
        <createTable tableName="t_asset_vendor_associations">
            <column name="id_vendor" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_asset" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-8">
        <createTable tableName="t_location_customer_associations">
            <column name="id_location" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_customer" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-9">
        <createTable tableName="t_location_file_associations">
            <column name="id_location" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_file" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-10">
        <createTable tableName="t_location_team_associations">
            <column name="id_location" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_team" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-11">
        <createTable tableName="t_location_user_associations">
            <column name="id_location" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_user" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-12">
        <createTable tableName="t_location_vendor_associations">
            <column name="id_location" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_vendor" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-13">
        <createTable tableName="t_meter_user_associations">
            <column name="id_meter" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_user" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-14">
        <createTable tableName="t_multi_parts_part_associations">
            <column name="id_part" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_multi_parts" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-15">
        <createTable tableName="t_part_customer_associations">
            <column name="id_part" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_customer" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-16">
        <createTable tableName="t_part_file_associations">
            <column name="id_part" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_file" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-17">
        <createTable tableName="t_part_team_associations">
            <column name="id_part" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_team" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-18">
        <createTable tableName="t_part_user_associations">
            <column name="id_part" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_user" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-19">
        <createTable tableName="t_part_vendor_associations">
            <column name="id_part" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_vendor" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-20">
        <createTable tableName="t_request_file_associations">
            <column name="id_file" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_request" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-21">
        <createTable tableName="t_team_user_associations">
            <column name="id_user" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_team" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-22">
        <createTable tableName="t_work_order_file_associations">
            <column name="id_file" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id_work_order" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-23">
        <createTable tableName="file">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="file_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="type" type="INTEGER"/>
            <column name="url" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="task_id" type="BIGINT"/>
            <column defaultValueBoolean="false" name="hidden" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-24">
        <createTable tableName="push_notification_token">
            <column autoIncrement="true" name="id" startWith="11" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="push_notification_token_pkey"/>
            </column>
            <column name="token" type="VARCHAR(255)"/>
            <column name="user_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-25">
        <createTable tableName="part_consumption">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="part_consumption_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="quantity" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="part_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="work_order_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-26">
        <createTable tableName="part_quantity">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="part_quantity_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="quantity" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="part_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="purchase_order_id" type="BIGINT"/>
            <column name="work_order_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-27">
        <createTable tableName="checklist_task_bases">
            <column name="checklist_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="task_bases_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-28">
        <createTable tableName="currency">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="currency_pkey"/>
            </column>
            <column name="code" type="VARCHAR(255)"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-29">
        <createTable tableName="own_user">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="own_user_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="email" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="enabled" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="first_name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="job_title" type="VARCHAR(255)"/>
            <column name="last_name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="owns_company" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="password" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="phone" type="VARCHAR(255)"/>
            <column name="rate" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="username" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="company_id" type="BIGINT"/>
            <column name="image_id" type="BIGINT"/>
            <column name="location_id" type="BIGINT"/>
            <column name="role_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="user_settings_id" type="BIGINT"/>
            <column name="enabled_in_subscription" type="BOOLEAN"/>
            <column name="last_login" type="TIMESTAMP WITHOUT TIME ZONE"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-30">
        <createTable tableName="asset">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="asset_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="acquisition_cost" type="BIGINT"/>
            <column name="additional_infos" type="VARCHAR(255)"/>
            <column name="archived" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="area" type="VARCHAR(255)"/>
            <column name="bar_code" type="VARCHAR(255)"/>
            <column name="description" type="VARCHAR(255)"/>
            <column name="has_children" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="in_service_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="model" type="VARCHAR(255)"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="serial_number" type="VARCHAR(255)"/>
            <column name="status" type="INTEGER"/>
            <column name="warranty_expiration_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="category_id" type="BIGINT"/>
            <column name="deprecation_id" type="BIGINT"/>
            <column name="image_id" type="BIGINT"/>
            <column name="location_id" type="BIGINT"/>
            <column name="parent_asset_id" type="BIGINT"/>
            <column name="primary_user_id" type="BIGINT"/>
            <column name="nfc_id" type="VARCHAR(255)"/>
            <column name="bar_code_type" type="VARCHAR(255)"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-31">
        <createTable tableName="workflow_secondary_conditions">
            <column name="workflow_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="secondary_conditions_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-32">
        <createIndex indexName="idx_customer_asset_customer_id" tableName="t_asset_customer_associations">
            <column name="id_customer"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-33">
        <createIndex indexName="idx_customer_asset_asset_id" tableName="t_asset_customer_associations">
            <column name="id_asset"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-34">
        <createIndex indexName="idx_file_asset_file_id" tableName="t_asset_file_associations">
            <column name="id_file"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-35">
        <createIndex indexName="idx_file_asset_asset_id" tableName="t_asset_file_associations">
            <column name="id_asset"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-36">
        <createIndex indexName="idx_asset_part_asset_id" tableName="t_asset_part_associations">
            <column name="id_asset"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-37">
        <createIndex indexName="idx_asset_part_part_id" tableName="t_asset_part_associations">
            <column name="id_part"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-38">
        <createIndex indexName="idx_asset_team_asset_id" tableName="t_asset_team_associations">
            <column name="id_asset"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-39">
        <createIndex indexName="idx_team_asset_team_id" tableName="t_asset_team_associations">
            <column name="id_team"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-40">
        <createIndex indexName="idx_user_asset_asset_id" tableName="t_asset_user_associations">
            <column name="id_asset"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-41">
        <createIndex indexName="idx_asset_user_user_id" tableName="t_asset_user_associations">
            <column name="id_user"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-42">
        <createIndex indexName="idx_vendor_asset_vendor_id" tableName="t_asset_vendor_associations">
            <column name="id_vendor"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-43">
        <createIndex indexName="idx_vendor_asset_asset_id" tableName="t_asset_vendor_associations">
            <column name="id_asset"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-44">
        <createIndex indexName="idx_location_customer_customer_id" tableName="t_location_customer_associations">
            <column name="id_customer"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-45">
        <createIndex indexName="idx_customer_location_location_id" tableName="t_location_customer_associations">
            <column name="id_location"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-46">
        <createIndex indexName="idx_location_file_location_id" tableName="t_location_file_associations">
            <column name="id_location"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-47">
        <createIndex indexName="idx_file_location_file_id" tableName="t_location_file_associations">
            <column name="id_file"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-48">
        <createIndex indexName="idx_location_team_location_id" tableName="t_location_team_associations">
            <column name="id_location"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-49">
        <createIndex indexName="idx_team_location_team_id" tableName="t_location_team_associations">
            <column name="id_team"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-50">
        <createIndex indexName="idx_user_location_user_id" tableName="t_location_user_associations">
            <column name="id_user"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-51">
        <createIndex indexName="idx_user_location_location_id" tableName="t_location_user_associations">
            <column name="id_location"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-52">
        <createIndex indexName="idx_vendor_location_vendor_id" tableName="t_location_vendor_associations">
            <column name="id_vendor"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-53">
        <createIndex indexName="idx_vendor_location_location_id" tableName="t_location_vendor_associations">
            <column name="id_location"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-54">
        <createIndex indexName="idx_meter_user_meter_id" tableName="t_meter_user_associations">
            <column name="id_meter"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-55">
        <createIndex indexName="idx_meter_user_user_id" tableName="t_meter_user_associations">
            <column name="id_user"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-56">
        <createIndex indexName="idx_part_multi_parts_part_id" tableName="t_multi_parts_part_associations">
            <column name="id_part"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-57">
        <createIndex indexName="idx_part_multi_parts_multi_parts_id" tableName="t_multi_parts_part_associations">
            <column name="id_multi_parts"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-58">
        <createIndex indexName="idx_part_customer_part_id" tableName="t_part_customer_associations">
            <column name="id_part"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-59">
        <createIndex indexName="idx_customer_part_customer_id" tableName="t_part_customer_associations">
            <column name="id_customer"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-60">
        <createIndex indexName="idx_part_file_part_id" tableName="t_part_file_associations">
            <column name="id_part"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-61">
        <createIndex indexName="idx_file_part_file_id" tableName="t_part_file_associations">
            <column name="id_file"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-62">
        <createIndex indexName="idx_part_team_part_id" tableName="t_part_team_associations">
            <column name="id_part"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-63">
        <createIndex indexName="idx_part_team_team_id" tableName="t_part_team_associations">
            <column name="id_team"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-64">
        <createIndex indexName="idx_part_user_part_id" tableName="t_part_user_associations">
            <column name="id_part"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-65">
        <createIndex indexName="idx_user_part_user_id" tableName="t_part_user_associations">
            <column name="id_user"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-66">
        <createIndex indexName="idx_part_vendor_part_id" tableName="t_part_vendor_associations">
            <column name="id_part"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-67">
        <createIndex indexName="idx_vendor_part_vendor_id" tableName="t_part_vendor_associations">
            <column name="id_vendor"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-68">
        <createIndex indexName="idx_file_request_file_id" tableName="t_request_file_associations">
            <column name="id_file"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-69">
        <createIndex indexName="idx_file_request_request_id" tableName="t_request_file_associations">
            <column name="id_request"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-70">
        <createIndex indexName="idx_user_team_user_id" tableName="t_team_user_associations">
            <column name="id_user"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-71">
        <createIndex indexName="idx_user_team_team_id" tableName="t_team_user_associations">
            <column name="id_team"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-72">
        <createIndex indexName="idx_file_work_order_file_id" tableName="t_work_order_file_associations">
            <column name="id_file"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-73">
        <createIndex indexName="idx_file_work_order_work_order_id" tableName="t_work_order_file_associations">
            <column name="id_work_order"/>
        </createIndex>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-74">
        <addUniqueConstraint columnNames="task_bases_id" constraintName="uk_h7shuxfq9i72379fte8od4pdm"
                             tableName="checklist_task_bases"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-75">
        <addUniqueConstraint columnNames="code" constraintName="uk_h84pd2rtr12isnifnj655rkra" tableName="currency"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-76">
        <addUniqueConstraint columnNames="name" constraintName="uk_ou8q9939fa4k88wjh17qwcmre" tableName="currency"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-77">
        <addUniqueConstraint columnNames="email" constraintName="uk_hw660abbm8lkw2m1ty1hhlkd7" tableName="own_user"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-78">
        <addUniqueConstraint columnNames="nfc_id" constraintName="uk_my7qulnyx67jmex8shpk4dwlo" tableName="asset"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-79">
        <addUniqueConstraint columnNames="secondary_conditions_id" constraintName="uk_qpmhueid5ujh87ujsfu30bq3e"
                             tableName="workflow_secondary_conditions"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-80">
        <createSequence cacheSize="1" cycle="false" dataType="bigint" incrementBy="1" maxValue="9223372036854775807"
                        minValue="1" sequenceName="hibernate_sequence" startValue="1"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-81">
        <createTable tableName="additional_cost">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="additional_cost_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="cost" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="date" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="description" type="VARCHAR(255)"/>
            <column name="include_to_total_cost" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="category_id" type="BIGINT"/>
            <column name="assigned_to_id" type="BIGINT"/>
            <column name="work_order_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-82">
        <createTable tableName="asset_category">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="asset_category_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="company_settings_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-83">
        <createTable tableName="asset_downtime">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="asset_downtime_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="duration" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="starts_on" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="asset_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-84">
        <createTable tableName="bank_card">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="bank_card_pkey"/>
            </column>
            <column name="cardholder_name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="cvv" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="expiration_month" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="expiration_year" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="number" type="INTEGER">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-85">
        <createTable tableName="checklist">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="checklist_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="category" type="VARCHAR(255)"/>
            <column name="description" type="VARCHAR(255)"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="company_settings_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-86">
        <createTable tableName="company">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="company_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="address" type="VARCHAR(255)"/>
            <column name="city" type="VARCHAR(255)"/>
            <column name="email" type="VARCHAR(255)"/>
            <column name="employees_count" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="name" type="VARCHAR(255)"/>
            <column name="phone" type="VARCHAR(255)"/>
            <column name="state" type="VARCHAR(255)"/>
            <column name="website" type="VARCHAR(255)"/>
            <column name="zip_code" type="VARCHAR(255)"/>
            <column name="bank_card_id" type="BIGINT"/>
            <column name="company_settings_id" type="BIGINT"/>
            <column name="logo_id" type="BIGINT"/>
            <column name="subscription_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-87">
        <createTable tableName="company_settings">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="company_settings_pkey"/>
            </column>
            <column name="work_order_request_configuration_id" type="BIGINT"/>
            <column name="company_id" type="BIGINT"/>
            <column name="general_preferences_id" type="BIGINT"/>
            <column name="work_order_configuration_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-88">
        <createTable tableName="cost_category">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="cost_category_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="company_settings_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-89">
        <createTable tableName="custom_field">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="custom_field_pkey"/>
            </column>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="value" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="vendor_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-90">
        <createTable tableName="customer">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="customer_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="address" type="VARCHAR(255)"/>
            <column name="email" type="VARCHAR(255)"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="phone" type="VARCHAR(255)"/>
            <column name="website" type="VARCHAR(255)"/>
            <column name="billing_address" type="VARCHAR(255)"/>
            <column name="billing_address2" type="VARCHAR(255)"/>
            <column name="billing_name" type="VARCHAR(255)"/>
            <column name="customer_type" type="VARCHAR(255)"/>
            <column name="description" type="VARCHAR(255)"/>
            <column name="rate" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="billing_currency_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-91">
        <createTable tableName="deprecation">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="deprecation_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="current_value" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="purchase_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="purchase_price" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="rate" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="residual_value" type="VARCHAR(255)"/>
            <column name="usefullife" type="VARCHAR(255)"/>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-92">
        <createTable tableName="field_configuration">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="field_configuration_pkey"/>
            </column>
            <column name="field_name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="field_type" type="INTEGER"/>
            <column name="work_order_configuration_id" type="BIGINT"/>
            <column name="work_order_request_configuration_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-93">
        <createTable tableName="floor_plan">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="floor_plan_pkey"/>
            </column>
            <column name="area" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="image_id" type="BIGINT"/>
            <column name="location_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-94">
        <createTable tableName="general_preferences">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="general_preferences_pkey"/>
            </column>
            <column name="ask_feed_back_onwoclosed" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="auto_assign_requests" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="auto_assign_work_orders" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="business_type" type="INTEGER"/>
            <column name="date_format" type="INTEGER"/>
            <column name="disable_closed_work_orders_notif" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="labor_cost_in_total_cost" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="language" type="INTEGER"/>
            <column name="time_zone" type="VARCHAR(255)"/>
            <column name="wo_update_for_requesters" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="company_settings_id" type="BIGINT"/>
            <column name="currency_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-95">
        <createTable tableName="labor">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="labor_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="duration" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="hourly_rate" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="include_to_total_time" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="logged" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="started_at" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="status" type="INTEGER"/>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="assigned_to_id" type="BIGINT"/>
            <column name="time_category_id" type="BIGINT"/>
            <column name="work_order_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-96">
        <createTable tableName="location">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="location_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="address" type="VARCHAR(255)"/>
            <column name="has_children" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="latitude" type="BIGINT"/>
            <column name="longitude" type="BIGINT"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="image_id" type="BIGINT"/>
            <column name="parent_location_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-97">
        <createTable tableName="meter">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="meter_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="unit" type="VARCHAR(255)"/>
            <column name="update_frequency" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="asset_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="image_id" type="BIGINT"/>
            <column name="location_id" type="BIGINT"/>
            <column name="meter_category_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-98">
        <createTable tableName="meter_category">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="meter_category_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="company_settings_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-99">
        <createTable tableName="multi_parts">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="multi_parts_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-100">
        <createTable tableName="notification">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="notification_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="message" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="notification_type" type="INTEGER"/>
            <column name="resource_id" type="BIGINT"/>
            <column name="seen" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="user_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-101">
        <createTable tableName="own_user_preventive_maintenances">
            <column name="own_user_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="preventive_maintenances_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-102">
        <createTable tableName="own_user_work_orders">
            <column name="own_user_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="work_orders_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-103">
        <createTable tableName="part">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="part_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="additional_infos" type="VARCHAR(255)"/>
            <column name="area" type="VARCHAR(255)"/>
            <column name="barcode" type="VARCHAR(255)"/>
            <column name="category" type="VARCHAR(255)"/>
            <column name="cost" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="description" type="VARCHAR(255)"/>
            <column name="min_quantity" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="non_stock" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="quantity" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="image_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-104">
        <createTable tableName="part_preventive_maintenances">
            <column name="part_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="preventive_maintenances_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-105">
        <createTable tableName="preventive_maintenance">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="preventive_maintenance_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="description" type="VARCHAR(255)"/>
            <column name="due_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="estimated_duration" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="priority" type="INTEGER"/>
            <column name="required_signature" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="title" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="name" type="VARCHAR(255)"/>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="asset_id" type="BIGINT"/>
            <column name="category_id" type="BIGINT"/>
            <column name="image_id" type="BIGINT"/>
            <column name="location_id" type="BIGINT"/>
            <column name="primary_user_id" type="BIGINT"/>
            <column name="team_id" type="BIGINT"/>
            <column name="schedule_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-106">
        <createTable tableName="preventive_maintenance_assigned_to">
            <column name="preventive_maintenance_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="assigned_to_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-107">
        <createTable tableName="preventive_maintenance_customers">
            <column name="preventive_maintenance_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="customers_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-108">
        <createTable tableName="preventive_maintenance_files">
            <column name="preventive_maintenance_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="files_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-109">
        <createTable tableName="purchase_order">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="purchase_order_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="additional_info_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="additional_info_notes" type="VARCHAR(255)"/>
            <column name="additional_info_requisitioned_name" type="VARCHAR(255)"/>
            <column name="additional_info_shipping_order_category" type="VARCHAR(255)"/>
            <column name="additional_info_term" type="VARCHAR(255)"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="shipping_additional_detail" type="VARCHAR(255)"/>
            <column name="shipping_address" type="VARCHAR(255)"/>
            <column name="shipping_city" type="VARCHAR(255)"/>
            <column name="shipping_company_name" type="VARCHAR(255)"/>
            <column name="shipping_due_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="shipping_fax" type="VARCHAR(255)"/>
            <column name="shipping_phone" type="VARCHAR(255)"/>
            <column name="shipping_ship_to_name" type="VARCHAR(255)"/>
            <column name="shipping_state" type="VARCHAR(255)"/>
            <column name="shipping_zip_code" type="VARCHAR(255)"/>
            <column name="status" type="INTEGER"/>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="category_id" type="BIGINT"/>
            <column name="vendor_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-110">
        <createTable tableName="purchase_order_category">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="purchase_order_category_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="company_settings_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-111">
        <createTable tableName="reading">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="reading_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="value" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="meter_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-112">
        <createTable tableName="relation">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="relation_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="relation_type" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="child_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="parent_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-113">
        <createTable tableName="request">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="request_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="description" type="VARCHAR(255)"/>
            <column name="due_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="estimated_duration" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="priority" type="INTEGER"/>
            <column name="required_signature" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="title" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="cancelled" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="asset_id" type="BIGINT"/>
            <column name="category_id" type="BIGINT"/>
            <column name="image_id" type="BIGINT"/>
            <column name="location_id" type="BIGINT"/>
            <column name="primary_user_id" type="BIGINT"/>
            <column name="team_id" type="BIGINT"/>
            <column name="work_order_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-114">
        <createTable tableName="request_assigned_to">
            <column name="request_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="assigned_to_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-115">
        <createTable tableName="request_customers">
            <column name="request_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="customers_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-116">
        <createTable tableName="request_files">
            <column name="request_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="files_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-117">
        <createTable tableName="role">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="role_pkey"/>
            </column>
            <column name="code" type="INTEGER"/>
            <column name="description" type="VARCHAR(255)"/>
            <column name="external_id" type="VARCHAR(255)"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="paid" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="role_type" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="company_settings_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-118">
        <createTable tableName="role_create_permissions">
            <column name="role_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="create_permissions" type="INTEGER"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-119">
        <createTable tableName="role_delete_other_permissions">
            <column name="role_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="delete_other_permissions" type="INTEGER"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-120">
        <createTable tableName="role_edit_other_permissions">
            <column name="role_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="edit_other_permissions" type="INTEGER"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-121">
        <createTable tableName="role_view_other_permissions">
            <column name="role_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="view_other_permissions" type="INTEGER"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-122">
        <createTable tableName="role_view_permissions">
            <column name="role_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="view_permissions" type="INTEGER"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-123">
        <createTable tableName="schedule">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="schedule_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="disabled" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="ends_on" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="frequency" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="starts_on" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="preventive_maintenance_id" type="BIGINT"/>
            <column name="due_date_delay" type="INTEGER"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-124">
        <createTable tableName="subscription">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="subscription_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="activated" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="cancelled" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="ends_on" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="fast_spring_id" type="VARCHAR(255)"/>
            <column name="monthly" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="starts_on" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="users_count" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="subscription_plan_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="downgrade_needed" type="BOOLEAN"/>
            <column name="upgrade_needed" type="BOOLEAN"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-125">
        <createTable tableName="subscription_plan">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="subscription_plan_pkey"/>
            </column>
            <column name="code" type="VARCHAR(255)"/>
            <column name="monthly_cost_per_user" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="yearly_cost_per_user" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-126">
        <createTable tableName="subscription_plan_features">
            <column name="subscription_plan_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="features" type="INTEGER"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-127">
        <createTable tableName="task">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="task_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="notes" type="VARCHAR(255)"/>
            <column name="value" type="VARCHAR(255)"/>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="task_base_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="work_order_id" type="BIGINT"/>
            <column name="preventive_maintenance_id" type="numeric"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-128">
        <createTable tableName="task_base">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="task_base_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="label" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="task_type" type="INTEGER"/>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="asset_id" type="BIGINT"/>
            <column name="meter_id" type="BIGINT"/>
            <column name="user_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-129">
        <createTable tableName="task_option">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="task_option_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="label" type="VARCHAR(255)"/>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="task_base_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-130">
        <createTable tableName="team">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="team_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="description" type="VARCHAR(255)"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-131">
        <createTable tableName="time_category">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="time_category_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="company_settings_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-132">
        <createTable tableName="user_invitation">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="user_invitation_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="email" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="role_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-133">
        <createTable tableName="user_settings">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="user_settings_pkey"/>
            </column>
            <column name="email_notified" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="email_updates_for_purchase_orders" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="email_updates_for_requests" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="email_updates_for_work_orders" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="stats_for_assigned_work_orders" type="BOOLEAN"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-134">
        <createTable tableName="vendor">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="vendor_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="address" type="VARCHAR(255)"/>
            <column name="email" type="VARCHAR(255)"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="phone" type="VARCHAR(255)"/>
            <column name="website" type="VARCHAR(255)"/>
            <column name="company_name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="description" type="VARCHAR(255)"/>
            <column name="rate" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="vendor_type" type="VARCHAR(255)"/>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-135">
        <createTable tableName="work_order">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="work_order_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="description" type="VARCHAR(255)"/>
            <column name="due_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="estimated_duration" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="priority" type="INTEGER"/>
            <column name="required_signature" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="title" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="archived" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="completed_on" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="feedback" type="VARCHAR(255)"/>
            <column name="status" type="INTEGER"/>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="asset_id" type="BIGINT"/>
            <column name="category_id" type="BIGINT"/>
            <column name="image_id" type="BIGINT"/>
            <column name="location_id" type="BIGINT"/>
            <column name="primary_user_id" type="BIGINT"/>
            <column name="team_id" type="BIGINT"/>
            <column name="completed_by_id" type="BIGINT"/>
            <column name="parent_preventive_maintenance_id" type="BIGINT"/>
            <column name="parent_request_id" type="BIGINT"/>
            <column name="signature_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-136">
        <createTable tableName="work_order_assigned_to">
            <column name="work_order_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="assigned_to_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-137">
        <createTable tableName="work_order_category">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="work_order_category_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="company_settings_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-138">
        <createTable tableName="work_order_configuration">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="work_order_configuration_pkey"/>
            </column>
            <column name="company_settings_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-139">
        <createTable tableName="work_order_customers">
            <column name="work_order_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="customers_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-140">
        <createTable tableName="work_order_files">
            <column name="work_order_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="files_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-141">
        <createTable tableName="work_order_history">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="work_order_history_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="user_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="work_order_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-142">
        <createTable tableName="work_order_meter_trigger">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="work_order_meter_trigger_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="description" type="VARCHAR(255)"/>
            <column name="due_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="estimated_duration" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="priority" type="INTEGER"/>
            <column name="required_signature" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="title" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="name" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="recurrent" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="trigger_condition" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="value" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="wait_before" type="INTEGER">
                <constraints nullable="false"/>
            </column>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="asset_id" type="BIGINT"/>
            <column name="category_id" type="BIGINT"/>
            <column name="image_id" type="BIGINT"/>
            <column name="location_id" type="BIGINT"/>
            <column name="primary_user_id" type="BIGINT"/>
            <column name="team_id" type="BIGINT"/>
            <column name="meter_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-143">
        <createTable tableName="work_order_meter_trigger_assigned_to">
            <column name="work_order_meter_trigger_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="assigned_to_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-144">
        <createTable tableName="work_order_meter_trigger_customers">
            <column name="work_order_meter_trigger_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="customers_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-145">
        <createTable tableName="work_order_meter_trigger_files">
            <column name="work_order_meter_trigger_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="files_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-146">
        <createTable tableName="work_order_request_configuration">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="work_order_request_configuration_pkey"/>
            </column>
            <column name="company_settings_id" type="BIGINT"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-147">
        <createTable tableName="workflow">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="workflow_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="action" type="INTEGER"/>
            <column name="main_condition" type="INTEGER"/>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="action_id" type="BIGINT"/>
            <column name="title" type="VARCHAR(255)">
                <constraints nullable="false"/>
            </column>
            <column name="enabled" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-148">
        <createTable tableName="workflow_action">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="workflow_action_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="created_time_end" type="INTEGER"/>
            <column name="created_time_start" type="INTEGER"/>
            <column name="due_date_end" type="INTEGER"/>
            <column name="due_date_start" type="INTEGER"/>
            <column name="priority" type="INTEGER"/>
            <column name="workflow_action_enum" type="INTEGER"/>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="asset_id" type="BIGINT"/>
            <column name="category_id" type="BIGINT"/>
            <column name="checklist_id" type="BIGINT"/>
            <column name="location_id" type="BIGINT"/>
            <column name="team_id" type="BIGINT"/>
            <column name="user_id" type="BIGINT"/>
            <column name="workflow_id" type="BIGINT"/>
            <column name="asset_status" type="INTEGER"/>
            <column name="email" type="VARCHAR(255)"/>
            <column name="part_action" type="INTEGER"/>
            <column name="purchase_order_action" type="INTEGER"/>
            <column name="request_action" type="INTEGER"/>
            <column name="task_action" type="INTEGER"/>
            <column name="work_order_action" type="INTEGER"/>
            <column name="purchase_order_category_id" type="BIGINT"/>
            <column name="vendor_id" type="BIGINT"/>
            <column name="work_order_category_id" type="BIGINT"/>
            <column name="number_value" type="INTEGER"/>
            <column name="value" type="VARCHAR(255)"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-149">
        <createTable tableName="workflow_condition">
            <column name="id" type="BIGINT">
                <constraints nullable="false" primaryKey="true" primaryKeyName="workflow_condition_pkey"/>
            </column>
            <column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
                <constraints nullable="false"/>
            </column>
            <column name="created_by" type="BIGINT"/>
            <column name="updated_by" type="BIGINT"/>
            <column name="created_time_end" type="INTEGER"/>
            <column name="created_time_start" type="INTEGER"/>
            <column name="due_date_end" type="INTEGER"/>
            <column name="due_date_start" type="INTEGER"/>
            <column name="priority" type="INTEGER"/>
            <column name="wf_secondary_condition" type="INTEGER"/>
            <column name="company_id" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="asset_id" type="BIGINT"/>
            <column name="category_id" type="BIGINT"/>
            <column name="location_id" type="BIGINT"/>
            <column name="team_id" type="BIGINT"/>
            <column name="user_id" type="BIGINT"/>
            <column name="workflow_id" type="BIGINT"/>
            <column name="label" type="VARCHAR(255)"/>
            <column name="number_value" type="INTEGER"/>
            <column name="part_condition" type="INTEGER"/>
            <column name="purchase_order_condition" type="INTEGER"/>
            <column name="purchase_order_status" type="INTEGER"/>
            <column name="request_condition" type="INTEGER"/>
            <column name="start" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="task_condition" type="INTEGER"/>
            <column name="value" type="VARCHAR(255)"/>
            <column name="work_order_condition" type="INTEGER"/>
            <column name="work_order_status" type="INTEGER"/>
            <column name="part_id" type="BIGINT"/>
            <column name="purchase_order_category_id" type="BIGINT"/>
            <column name="vendor_id" type="BIGINT"/>
            <column name="work_order_category_id" type="BIGINT"/>
            <column name="end_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
            <column name="start_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
        </createTable>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-150">
        <addForeignKeyConstraint baseColumnNames="id_user" baseTableName="t_team_user_associations"
                                 constraintName="fk18sbate5bpyyxby399j40x7re" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-151">
        <addForeignKeyConstraint baseColumnNames="id_part" baseTableName="t_part_customer_associations"
                                 constraintName="fk1lqox0hm74ii88ptyp0ks4hx6" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="part" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-152">
        <addForeignKeyConstraint baseColumnNames="id_customer" baseTableName="t_part_customer_associations"
                                 constraintName="fk1uem77bfgvi2e1a5bd2c9juoc" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="customer" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-153">
        <addForeignKeyConstraint baseColumnNames="id_team" baseTableName="t_asset_team_associations"
                                 constraintName="fk1wctjv9n7v7os67th2j241t0s" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="team" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-154">
        <addForeignKeyConstraint baseColumnNames="id_asset" baseTableName="t_asset_file_associations"
                                 constraintName="fk20hrlr3c09srq7yt5ibdal2pv" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-155">
        <addForeignKeyConstraint baseColumnNames="vendor_id" baseTableName="purchase_order"
                                 constraintName="fk20jcn7pw6hvx0uo0sh4y1d9xv" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="vendor" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-156">
        <addForeignKeyConstraint baseColumnNames="part_id" baseTableName="part_quantity"
                                 constraintName="fk21q7kq7mtnvshipi5oym9t2b3" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="part" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-157">
        <addForeignKeyConstraint baseColumnNames="id_customer" baseTableName="t_location_customer_associations"
                                 constraintName="fk26ljyp1uaoiw65qxqxtfr8i44" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="customer" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-158">
        <addForeignKeyConstraint baseColumnNames="company_settings_id" baseTableName="meter_category"
                                 constraintName="fk26q7jqesxesg8d65hj8c9f1gv" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company_settings" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-159">
        <addForeignKeyConstraint baseColumnNames="company_settings_id" baseTableName="work_order_category"
                                 constraintName="fk29i1j8j23y946usq1eth5qf6a" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company_settings" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-160">
        <addForeignKeyConstraint baseColumnNames="category_id" baseTableName="purchase_order"
                                 constraintName="fk29o4jh7n4ttmsfh50ulu11hjg" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="purchase_order_category"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-161">
        <addForeignKeyConstraint baseColumnNames="role_id" baseTableName="role_view_other_permissions"
                                 constraintName="fk2o0cjn2xwd4jkb5bsukxlnod8" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="role" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-162">
        <addForeignKeyConstraint baseColumnNames="id_team" baseTableName="t_team_user_associations"
                                 constraintName="fk2p1ho57toyn0pe8vq0cgtd10o" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="team" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-163">
        <addForeignKeyConstraint baseColumnNames="asset_id" baseTableName="preventive_maintenance"
                                 constraintName="fk2r1291umxjxrddelq96v3pl4n" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-164">
        <addForeignKeyConstraint baseColumnNames="id_location" baseTableName="t_location_user_associations"
                                 constraintName="fk2vp8mot9fhshwsh8flivg2e61" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="location" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-165">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="workflow"
                                 constraintName="fk2yopr6sxpui8gj22yt1qlot2g" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-166">
        <addForeignKeyConstraint baseColumnNames="schedule_id" baseTableName="preventive_maintenance"
                                 constraintName="fk3a3u3u7kqwtapl3lskjayyyrl" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="schedule" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-167">
        <addForeignKeyConstraint baseColumnNames="role_id" baseTableName="role_delete_other_permissions"
                                 constraintName="fk3cjdng98d8kdkyhqniaatb1nq" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="role" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-168">
        <addForeignKeyConstraint baseColumnNames="image_id" baseTableName="request"
                                 constraintName="fk3j1uj2uh9af66u9jmfjtvraar" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-169">
        <addForeignKeyConstraint baseColumnNames="company_settings_id" baseTableName="work_order_configuration"
                                 constraintName="fk3kl0h9w3re1oi0vl5k8rx1ojh" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company_settings" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-170">
        <addForeignKeyConstraint baseColumnNames="image_id" baseTableName="work_order"
                                 constraintName="fk3rui6pnm8in4f41ck17h595kg" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-171">
        <addForeignKeyConstraint baseColumnNames="work_order_id" baseTableName="additional_cost"
                                 constraintName="fk3tboe213wgtlwl476ci6ue5ia" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-172">
        <addForeignKeyConstraint baseColumnNames="task_base_id" baseTableName="task"
                                 constraintName="fk40yui5s4d1qatg5yv31py6fr2" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="task_base" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-173">
        <addForeignKeyConstraint baseColumnNames="work_order_meter_trigger_id"
                                 baseTableName="work_order_meter_trigger_assigned_to"
                                 constraintName="fk42orqs7y05ghgkis54tathjv" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order_meter_trigger"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-174">
        <addForeignKeyConstraint baseColumnNames="files_id" baseTableName="work_order_meter_trigger_files"
                                 constraintName="fk48ipt6j68d2prhkoeo6tv7toc" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-175">
        <addForeignKeyConstraint baseColumnNames="category_id" baseTableName="work_order"
                                 constraintName="fk4b1ej5p5dfnnqb68te2pd9hx4" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order_category" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-176">
        <addForeignKeyConstraint baseColumnNames="time_category_id" baseTableName="labor"
                                 constraintName="fk4p8pded3s0v3w690dfbv829im" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="time_category" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-177">
        <addForeignKeyConstraint baseColumnNames="location_id" baseTableName="preventive_maintenance"
                                 constraintName="fk53hdmxmgd3fjb2fjsh43d1irf" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="location" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-178">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="meter"
                                 constraintName="fk578asjaixmqs7pn07tho2i1pc" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-179">
        <addForeignKeyConstraint baseColumnNames="work_order_request_configuration_id" baseTableName="company_settings"
                                 constraintName="fk5bl8j09pkd2jw3tpg4nlx8x9g" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order_request_configuration"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-180">
        <addForeignKeyConstraint baseColumnNames="action_id" baseTableName="workflow"
                                 constraintName="fk5bqe81hkk7jfmavn55a8yvca7" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="workflow_action" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-181">
        <addForeignKeyConstraint baseColumnNames="work_order_id" baseTableName="work_order_customers"
                                 constraintName="fk5c0105hu4penp7v2u9tmjg50w" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-182">
        <addForeignKeyConstraint baseColumnNames="preventive_maintenances_id"
                                 baseTableName="part_preventive_maintenances"
                                 constraintName="fk5cmcx8pexxynebufh9lh49vl6" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="preventive_maintenance"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-183">
        <addForeignKeyConstraint baseColumnNames="image_id" baseTableName="preventive_maintenance"
                                 constraintName="fk5uad3bfd5192xkt6u5lx1lhjw" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-184">
        <addForeignKeyConstraint baseColumnNames="company_settings_id" baseTableName="role"
                                 constraintName="fk5vkif568seghq1gpej2f64dne" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company_settings" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-185">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="request"
                                 constraintName="fk5w6no964jn5lpg4tpeugv8xx7" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-186">
        <addForeignKeyConstraint baseColumnNames="category_id" baseTableName="workflow_action"
                                 constraintName="fk65m0g1wolxboqe8yqq18ehysu" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order_category" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-187">
        <addForeignKeyConstraint baseColumnNames="customers_id" baseTableName="request_customers"
                                 constraintName="fk676vq0swlk6qsrpecgud7rdww" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="customer" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-188">
        <addForeignKeyConstraint baseColumnNames="id_multi_parts" baseTableName="t_multi_parts_part_associations"
                                 constraintName="fk68kd07kt2lpb0oach23f1spmm" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="multi_parts" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-189">
        <addForeignKeyConstraint baseColumnNames="id_part" baseTableName="t_part_user_associations"
                                 constraintName="fk690l6jljarx0xx5mq51qhgq64" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="part" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-190">
        <addForeignKeyConstraint baseColumnNames="location_id" baseTableName="workflow_action"
                                 constraintName="fk6nkenbmcv4vyxw23kwm4ftgaq" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="location" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-191">
        <addForeignKeyConstraint baseColumnNames="parent_asset_id" baseTableName="asset"
                                 constraintName="fk6qu6wqhpppa2w4y09l3tt4q56" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-192">
        <addForeignKeyConstraint baseColumnNames="customers_id" baseTableName="work_order_meter_trigger_customers"
                                 constraintName="fk6tm1ncq9jkxakgv2imdbwnntj" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="customer" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-193">
        <addForeignKeyConstraint baseColumnNames="id_part" baseTableName="t_part_vendor_associations"
                                 constraintName="fk7d9ha6pxi5gajdqeds5ekdcw5" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="part" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-194">
        <addForeignKeyConstraint baseColumnNames="team_id" baseTableName="workflow_condition"
                                 constraintName="fk7mrdl03tbxy73louegqmtff5y" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="team" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-195">
        <addForeignKeyConstraint baseColumnNames="role_id" baseTableName="role_edit_other_permissions"
                                 constraintName="fk7rf93e2irl5320ogujwr8wcgt" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="role" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-196">
        <addForeignKeyConstraint baseColumnNames="image_id" baseTableName="meter"
                                 constraintName="fk7sr43v36jpwvqhwvuk0o8ob0w" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-197">
        <addForeignKeyConstraint baseColumnNames="id_user" baseTableName="t_part_user_associations"
                                 constraintName="fk82khjnm7mtmukbbuwnm5okidn" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-198">
        <addForeignKeyConstraint baseColumnNames="billing_currency_id" baseTableName="customer"
                                 constraintName="fk86m32arbbnl01mtk7qjeqi0mu" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="currency" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-199">
        <addForeignKeyConstraint baseColumnNames="meter_id" baseTableName="work_order_meter_trigger"
                                 constraintName="fk87doqr843tj4vmxarqujm3sgy" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="meter" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-200">
        <addForeignKeyConstraint baseColumnNames="company_settings_id" baseTableName="time_category"
                                 constraintName="fk87e9ddkvokl4g0d787clik15c" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company_settings" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-201">
        <addForeignKeyConstraint baseColumnNames="work_order_id" baseTableName="labor"
                                 constraintName="fk88ovjan75lbo5xk7k7omt0xb6" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-202">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="work_order"
                                 constraintName="fk89batrcg5n0tvewqhad27e8oa" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-203">
        <addForeignKeyConstraint baseColumnNames="id_meter" baseTableName="t_meter_user_associations"
                                 constraintName="fk8ikpoqiwcc3i40wdfjl2dynv7" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="meter" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-204">
        <addForeignKeyConstraint baseColumnNames="location_id" baseTableName="meter"
                                 constraintName="fk8jgoj4oi6b9sjqeuh9v592a6q" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="location" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-205">
        <addForeignKeyConstraint baseColumnNames="team_id" baseTableName="work_order_meter_trigger"
                                 constraintName="fk8ldob1vt7bg8dexi3p6x86sfo" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="team" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-206">
        <addForeignKeyConstraint baseColumnNames="files_id" baseTableName="preventive_maintenance_files"
                                 constraintName="fk8mtccux67q9rtp914y4n7jvom" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-207">
        <addForeignKeyConstraint baseColumnNames="id_vendor" baseTableName="t_location_vendor_associations"
                                 constraintName="fk8qdsmekvft0a8cjricw0fyjeq" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="vendor" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-208">
        <addForeignKeyConstraint baseColumnNames="preventive_maintenance_id"
                                 baseTableName="preventive_maintenance_assigned_to"
                                 constraintName="fk8s7h4xe4shx1myrlnum9wj23h" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="preventive_maintenance"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-209">
        <addForeignKeyConstraint baseColumnNames="id_team" baseTableName="t_part_team_associations"
                                 constraintName="fk8xln4ekdxsmga312jsw9lqxg8" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="team" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-210">
        <addForeignKeyConstraint baseColumnNames="user_id" baseTableName="notification"
                                 constraintName="fk99ahq0v75lcyyue9jk2jx01xh" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-211">
        <addForeignKeyConstraint baseColumnNames="general_preferences_id" baseTableName="company_settings"
                                 constraintName="fk9lv45cb6urv0o8r8sq1exw2rt" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="general_preferences" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-212">
        <addForeignKeyConstraint baseColumnNames="company_settings_id" baseTableName="general_preferences"
                                 constraintName="fk9of1ivg6k1wtws25cck4x7t50" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company_settings" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-213">
        <addForeignKeyConstraint baseColumnNames="parent_location_id" baseTableName="location"
                                 constraintName="fk9s1sco601u8l6ptdxf432h4kb" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="location" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-214">
        <addForeignKeyConstraint baseColumnNames="user_id" baseTableName="verification_token"
                                 constraintName="fk9sh6q5nyk1pmm19t235i67sxk" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-215">
        <addForeignKeyConstraint baseColumnNames="own_user_id" baseTableName="own_user_work_orders"
                                 constraintName="fk9shb970menrny3c08rd8hqwd5" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-216">
        <addForeignKeyConstraint baseColumnNames="own_user_id" baseTableName="own_user_preventive_maintenances"
                                 constraintName="fk9ttebk37s6yxteght7367u6hl" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-217">
        <addForeignKeyConstraint baseColumnNames="completed_by_id" baseTableName="work_order"
                                 constraintName="fkac4vsg728gaycwq1w9o77uw3c" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-218">
        <addForeignKeyConstraint baseColumnNames="parent_preventive_maintenance_id" baseTableName="work_order"
                                 constraintName="fkajaqh96l0dquvxdfw8fj77241" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="preventive_maintenance"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-219">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="multi_parts"
                                 constraintName="fkam5yy13545on89ahiokjtb59q" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-220">
        <addForeignKeyConstraint baseColumnNames="deprecation_id" baseTableName="asset"
                                 constraintName="fkas2sx5fk8xkk8l6mppu2tmlvc" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="deprecation" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-221">
        <addForeignKeyConstraint baseColumnNames="team_id" baseTableName="work_order"
                                 constraintName="fkauql9ts1kbmwftgtrjbdys6a3" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="team" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-222">
        <addForeignKeyConstraint baseColumnNames="id_location" baseTableName="t_location_vendor_associations"
                                 constraintName="fkb6alk3ojlofcs76q4hnce764b" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="location" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-223">
        <addForeignKeyConstraint baseColumnNames="purchase_order_id" baseTableName="part_quantity"
                                 constraintName="fkb8l63n0csjq7q33wwbkvsj61u" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="purchase_order" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-224">
        <addForeignKeyConstraint baseColumnNames="image_id" baseTableName="work_order_meter_trigger"
                                 constraintName="fkbdhu8fagmbqqtyf07h10lap9o" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-225">
        <addForeignKeyConstraint baseColumnNames="assigned_to_id" baseTableName="work_order_meter_trigger_assigned_to"
                                 constraintName="fkbjgihoivnrlo4tnjf3mlb93e8" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-226">
        <addForeignKeyConstraint baseColumnNames="part_id" baseTableName="workflow_condition"
                                 constraintName="fkbn902y2gyu5mrf43spdiw8duo" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="part" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-227">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="asset"
                                 constraintName="fkbnbckrvy4gleqsugkauihx7d7" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-228">
        <addForeignKeyConstraint baseColumnNames="work_order_id" baseTableName="task"
                                 constraintName="fkbopfrnwvm6sr4iq4y1j8xa36e" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-229">
        <addForeignKeyConstraint baseColumnNames="bank_card_id" baseTableName="company"
                                 constraintName="fkbsm5cfeu1upv2si83iye7nehs" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="bank_card" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-230">
        <addForeignKeyConstraint baseColumnNames="checklist_id" baseTableName="workflow_action"
                                 constraintName="fkbvldf2gcw2fnr9flgnfr76i7i" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="checklist" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-231">
        <addForeignKeyConstraint baseColumnNames="part_id" baseTableName="part_consumption"
                                 constraintName="fkbx2tggt11xc2ofuwui2xsxkg0" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="part" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-232">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="location"
                                 constraintName="fkbxoiqd2lmvk7c3r3qhfoou2py" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-233">
        <addForeignKeyConstraint baseColumnNames="workflow_id" baseTableName="workflow_action"
                                 constraintName="fkbxotj0ge7bcd66u0j46hscm0o" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="workflow" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-234">
        <addForeignKeyConstraint baseColumnNames="company_settings_id" baseTableName="purchase_order_category"
                                 constraintName="fkc7wlc4jicpk0243alj8biab6v" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company_settings" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-235">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="customer"
                                 constraintName="fkcc6lvs1hfb70cc5rjbyq0m8is" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-236">
        <addForeignKeyConstraint baseColumnNames="files_id" baseTableName="work_order_files"
                                 constraintName="fkccol3khq2jntfddtvcfv8hk56" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-237">
        <addForeignKeyConstraint baseColumnNames="part_id" baseTableName="part_preventive_maintenances"
                                 constraintName="fkcec0nx6ooubsuiwcwg23jod93" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="part" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-238">
        <addForeignKeyConstraint baseColumnNames="work_orders_id" baseTableName="own_user_work_orders"
                                 constraintName="fkcgnpjx8ahn3ptxpl9ucot819u" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-239">
        <addForeignKeyConstraint baseColumnNames="team_id" baseTableName="preventive_maintenance"
                                 constraintName="fkcp1qytc19odw5ngu7y4lx79me" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="team" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-240">
        <addForeignKeyConstraint baseColumnNames="preventive_maintenances_id"
                                 baseTableName="own_user_preventive_maintenances"
                                 constraintName="fkcppm5srhdsuc9di027fiv62aa" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="preventive_maintenance"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-241">
        <addForeignKeyConstraint baseColumnNames="id_user" baseTableName="t_meter_user_associations"
                                 constraintName="fkctimil7gh7ea6xa1n98kea0id" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-242">
        <addForeignKeyConstraint baseColumnNames="vendor_id" baseTableName="custom_field"
                                 constraintName="fkcwi4mla1ubj888tvm6ex3k3hy" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="vendor" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-243">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="workflow_action"
                                 constraintName="fkd1dqs6sf06v5i8jp26pax02dc" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-244">
        <addForeignKeyConstraint baseColumnNames="logo_id" baseTableName="company"
                                 constraintName="fkd2u2jho0d84whs0ryeg9ixs5t" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-245">
        <addForeignKeyConstraint baseColumnNames="checklist_id" baseTableName="checklist_task_bases"
                                 constraintName="fkd34phs94o7382otdgl82mcoua" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="checklist" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-246">
        <addForeignKeyConstraint baseColumnNames="request_id" baseTableName="request_files"
                                 constraintName="fkd3vswlusjseoo7lpwb0697w2o" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="request" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-247">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="task_base"
                                 constraintName="fkd4mq9o4l0yvmwa8n913k8xmei" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-248">
        <addForeignKeyConstraint baseColumnNames="location_id" baseTableName="work_order"
                                 constraintName="fkdbtdl51i4yup1hs6ek3ecqros" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="location" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-249">
        <addForeignKeyConstraint baseColumnNames="role_id" baseTableName="role_view_permissions"
                                 constraintName="fkdcn9sty6hgjhdocywpdyqbl8s" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="role" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-250">
        <addForeignKeyConstraint baseColumnNames="asset_id" baseTableName="work_order_meter_trigger"
                                 constraintName="fkdkxi8xmqmo48y8xtml1860nbc" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-251">
        <addForeignKeyConstraint baseColumnNames="work_order_id" baseTableName="work_order_files"
                                 constraintName="fkdoggd73pxsy9naoq00g3epsg1" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-252">
        <addForeignKeyConstraint baseColumnNames="files_id" baseTableName="request_files"
                                 constraintName="fke28fh1hvbl1e8jww275n3b1w0" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-253">
        <addForeignKeyConstraint baseColumnNames="id_user" baseTableName="t_location_user_associations"
                                 constraintName="fke43mw9vk8u1y3ugxjhwt19s0g" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-254">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="own_user"
                                 constraintName="fkedmmabpmsf25ut5ak07i1rban" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-255">
        <addForeignKeyConstraint baseColumnNames="id_file" baseTableName="t_asset_file_associations"
                                 constraintName="fkefr6a3an7giyclgfs4e2vqjp0" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-256">
        <addForeignKeyConstraint baseColumnNames="request_id" baseTableName="request_assigned_to"
                                 constraintName="fkeg8mmectqp7vcxgxw7k64wt1h" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="request" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-257">
        <addForeignKeyConstraint baseColumnNames="image_id" baseTableName="part"
                                 constraintName="fkeh8vu21l8gci666ew34wnfgb9" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-258">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="task_option"
                                 constraintName="fkepxf7nnly1w2n7w9c4wj9w68m" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-259">
        <addForeignKeyConstraint baseColumnNames="vendor_id" baseTableName="workflow_condition"
                                 constraintName="fkexm8hsr4hficvbx66p66asyhs" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="vendor" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-260">
        <addForeignKeyConstraint baseColumnNames="role_id" baseTableName="user_invitation"
                                 constraintName="fkf77hi4ixclj9edbkfheps1sv9" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="role" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-261">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="deprecation"
                                 constraintName="fkfcqj01lp3ibnkgsmym76tx1hh" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-262">
        <addForeignKeyConstraint baseColumnNames="asset_id" baseTableName="task_base"
                                 constraintName="fkfcyjas01bhns54mn9uxk3xqx8" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-263">
        <addForeignKeyConstraint baseColumnNames="image_id" baseTableName="floor_plan"
                                 constraintName="fkfg2lm01gcc8gwo3kkm1l64vc0" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-264">
        <addForeignKeyConstraint baseColumnNames="parent_id" baseTableName="relation"
                                 constraintName="fkfi6xl41fol251r2391ypx9ga5" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-265">
        <addForeignKeyConstraint baseColumnNames="workflow_id" baseTableName="workflow_condition"
                                 constraintName="fkfmbloqmc60bpasgbnps5qvtps" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="workflow" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-266">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="labor"
                                 constraintName="fkfqjl9rhhuh45t4tyuo7i5qys9" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-267">
        <addForeignKeyConstraint baseColumnNames="company_settings_id" baseTableName="company"
                                 constraintName="fkfv376ws8n2akfbxvagtxbkiu2" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company_settings" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-268">
        <addForeignKeyConstraint baseColumnNames="category_id" baseTableName="request"
                                 constraintName="fkfweq9owhxrrcsowk9w12qgmrb" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order_category" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-269">
        <addForeignKeyConstraint baseColumnNames="user_id" baseTableName="work_order_history"
                                 constraintName="fkggkgvrsfxoevabt4igrse99m3" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-270">
        <addForeignKeyConstraint baseColumnNames="id_file" baseTableName="t_work_order_file_associations"
                                 constraintName="fkghh8ggrdasrs4wij0xneb4qhj" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-271">
        <addForeignKeyConstraint baseColumnNames="workflow_id" baseTableName="workflow_secondary_conditions"
                                 constraintName="fkghlfm1gckeadderktdefpo66s" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="workflow" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-272">
        <addForeignKeyConstraint baseColumnNames="id_work_order" baseTableName="t_work_order_file_associations"
                                 constraintName="fkgky3mpbw56uh8apli8ys6w4lv" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-273">
        <addForeignKeyConstraint baseColumnNames="customers_id" baseTableName="work_order_customers"
                                 constraintName="fkglrmndromgkolt5unqykpu45u" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="customer" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-274">
        <addForeignKeyConstraint baseColumnNames="meter_id" baseTableName="task_base"
                                 constraintName="fkgtij68ko3kykqk1od01ahoudg" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="meter" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-275">
        <addForeignKeyConstraint baseColumnNames="id_part" baseTableName="t_multi_parts_part_associations"
                                 constraintName="fkh2jvrtqx4b25nfqafdlc92aek" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="part" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-276">
        <addForeignKeyConstraint baseColumnNames="image_id" baseTableName="asset"
                                 constraintName="fkhh76eg71adtmdagspxgbnmjd5" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-277">
        <addForeignKeyConstraint baseColumnNames="task_bases_id" baseTableName="checklist_task_bases"
                                 constraintName="fkhk7924rrpw72xmw6xcnd04xtf" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="task_base" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-278">
        <addForeignKeyConstraint baseColumnNames="subscription_plan_id" baseTableName="subscription"
                                 constraintName="fkhn8hnxbdoi29nb4m7ojkocqfm" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="subscription_plan" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-279">
        <addForeignKeyConstraint baseColumnNames="asset_id" baseTableName="workflow_condition"
                                 constraintName="fkhsrmx7f4fbfh4g1jdo5vray90" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-280">
        <addForeignKeyConstraint baseColumnNames="id_file" baseTableName="t_location_file_associations"
                                 constraintName="fkhtvits97qtdn3ocj1kgik44j" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-281">
        <addForeignKeyConstraint baseColumnNames="category_id" baseTableName="additional_cost"
                                 constraintName="fkhw3t1120mikcf9ajl5tvqb4le" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="cost_category" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-282">
        <addForeignKeyConstraint baseColumnNames="category_id" baseTableName="asset"
                                 constraintName="fkhw44q3ymkd329b8b6mvqxatsh" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset_category" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-283">
        <addForeignKeyConstraint baseColumnNames="id_request" baseTableName="t_request_file_associations"
                                 constraintName="fki27xearjt3x6ralbb0of1jmmd" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="request" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-284">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="part_consumption"
                                 constraintName="fkib1h4krpiuuk1meixq7qf9g86" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-285">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="preventive_maintenance"
                                 constraintName="fkibhc2hvq2hfbom3rwxu7pfxw0" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-286">
        <addForeignKeyConstraint baseColumnNames="location_id" baseTableName="floor_plan"
                                 constraintName="fkidx35wj5iwhfi5xrcs9jdsr2d" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="location" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-287">
        <addForeignKeyConstraint baseColumnNames="id_asset" baseTableName="t_asset_customer_associations"
                                 constraintName="fkil356y7ax7m8tqfryd4p8pe6o" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-288">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="file"
                                 constraintName="fkipblk8l80i440v7n7be1gnyet" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-289">
        <addForeignKeyConstraint baseColumnNames="location_id" baseTableName="request"
                                 constraintName="fkj7y0rwrqngdydkkdcohwisqq6" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="location" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-290">
        <addForeignKeyConstraint baseColumnNames="work_order_id" baseTableName="part_consumption"
                                 constraintName="fkj99sa2uououd6s977aqyc0yri" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-291">
        <addForeignKeyConstraint baseColumnNames="id_user" baseTableName="t_asset_user_associations"
                                 constraintName="fkjgn04l4eish0drw94bb50lrk3" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-292">
        <addForeignKeyConstraint baseColumnNames="preventive_maintenance_id"
                                 baseTableName="preventive_maintenance_customers"
                                 constraintName="fkjihm0pei7bll8d9oim1v4edjo" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="preventive_maintenance"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-293">
        <addForeignKeyConstraint baseColumnNames="assigned_to_id" baseTableName="preventive_maintenance_assigned_to"
                                 constraintName="fkjqfkojt6e6my5qxjgirsg6v8" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-294">
        <addForeignKeyConstraint baseColumnNames="image_id" baseTableName="location"
                                 constraintName="fkjuo4g2hd6k6g383v9jr6megvr" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-295">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="workflow_condition"
                                 constraintName="fkjus3y7kh66dyo0ryefx02iqx3" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-296">
        <addForeignKeyConstraint baseColumnNames="user_id" baseTableName="task_base"
                                 constraintName="fkjuw0e6wckoo1tqast1m6baj9f" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-297">
        <addForeignKeyConstraint baseColumnNames="purchase_order_category_id" baseTableName="workflow_action"
                                 constraintName="fkk62qy20rgsjmy2l8jvehrew58" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="purchase_order_category"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-298">
        <addForeignKeyConstraint baseColumnNames="id_customer" baseTableName="t_asset_customer_associations"
                                 constraintName="fkk6oovqj8yvfaxueq7pdjm9rj6" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="customer" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-299">
        <addForeignKeyConstraint baseColumnNames="company_settings_id" baseTableName="cost_category"
                                 constraintName="fkkbgeqfdaesfnsrbf0vxfdho6t" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company_settings" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-300">
        <addForeignKeyConstraint baseColumnNames="company_settings_id" baseTableName="checklist"
                                 constraintName="fkkffakgosiaa46j512a564wkpd" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company_settings" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-301">
        <addForeignKeyConstraint baseColumnNames="task_id" baseTableName="file"
                                 constraintName="fkkl8espv0gf1wcu82gvj2lccbm" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="task" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-302">
        <addForeignKeyConstraint baseColumnNames="task_base_id" baseTableName="task_option"
                                 constraintName="fkko048mkiejn0ikwy5t4rqwf7o" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="task_base" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-303">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="task"
                                 constraintName="fkkovhsjug063l45ggbgdfxp21s" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-304">
        <addForeignKeyConstraint baseColumnNames="work_order_meter_trigger_id"
                                 baseTableName="work_order_meter_trigger_customers"
                                 constraintName="fkkvfp8se58k6wyyt8ctgv4r3f0" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order_meter_trigger"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-305">
        <addForeignKeyConstraint baseColumnNames="request_id" baseTableName="request_customers"
                                 constraintName="fklbeh6vh70b2pqoj6lri2ua4fk" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="request" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-306">
        <addForeignKeyConstraint baseColumnNames="id_vendor" baseTableName="t_part_vendor_associations"
                                 constraintName="fklhnjg0qhqks9ob72oybq4xk73" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="vendor" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-307">
        <addForeignKeyConstraint baseColumnNames="company_settings_id" baseTableName="asset_category"
                                 constraintName="fklj3296bvmjcd0xlho5feip44a" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company_settings" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-308">
        <addForeignKeyConstraint baseColumnNames="id_location" baseTableName="t_location_team_associations"
                                 constraintName="fkljl6bq0u1fc9qgyj3ry1pfu1n" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="location" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-309">
        <addForeignKeyConstraint baseColumnNames="id_asset" baseTableName="t_asset_part_associations"
                                 constraintName="fklok6yse9itekmdxni6i1f58ys" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-310">
        <addForeignKeyConstraint baseColumnNames="work_order_configuration_id" baseTableName="company_settings"
                                 constraintName="fklr3cfk7ltvoc41wylou0p9llc" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order_configuration"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-311">
        <addForeignKeyConstraint baseColumnNames="id_file" baseTableName="t_request_file_associations"
                                 constraintName="fklrujxbod3pgniljml93urvthe" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-312">
        <addForeignKeyConstraint baseColumnNames="work_order_category_id" baseTableName="workflow_action"
                                 constraintName="fklujtc6kod27c7hqhtuvfx5nx6" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order_category" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-313">
        <addForeignKeyConstraint baseColumnNames="customers_id" baseTableName="preventive_maintenance_customers"
                                 constraintName="fkm4lsl8y9ttb1jvliu0af15mh3" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="customer" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-314">
        <addForeignKeyConstraint baseColumnNames="location_id" baseTableName="work_order_meter_trigger"
                                 constraintName="fkmdb3avajahyo8mc6wi38ls8xi" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="location" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-315">
        <addForeignKeyConstraint baseColumnNames="work_order_id" baseTableName="work_order_assigned_to"
                                 constraintName="fkmfhu1adi2mobtmdpsprmuo267" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-316">
        <addForeignKeyConstraint baseColumnNames="id_part" baseTableName="t_part_file_associations"
                                 constraintName="fkmjt71i7hevju3uswyyumdgttb" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="part" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-317">
        <addForeignKeyConstraint baseColumnNames="asset_id" baseTableName="request"
                                 constraintName="fkml2rlcjiurmq5rjyw1gmsstf6" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-318">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="work_order_meter_trigger"
                                 constraintName="fkmlswjhdj6yvdr0gxttjbivans" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-319">
        <addForeignKeyConstraint baseColumnNames="child_id" baseTableName="relation"
                                 constraintName="fkmn3265pc5poqrn82h1j75if3p" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-320">
        <addForeignKeyConstraint baseColumnNames="primary_user_id" baseTableName="asset"
                                 constraintName="fkmq4as1d1exvm4mg3ayokdan30" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-321">
        <addForeignKeyConstraint baseColumnNames="primary_user_id" baseTableName="request"
                                 constraintName="fkn6hy6udqudy40u4cgtwvwtp9l" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-322">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="purchase_order"
                                 constraintName="fknhrkwmvmqly4yq8isdbsbs6mc" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-323">
        <addForeignKeyConstraint baseColumnNames="primary_user_id" baseTableName="work_order"
                                 constraintName="fknixhvhyqdk11xntyainal50tf" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-324">
        <addForeignKeyConstraint baseColumnNames="work_order_configuration_id" baseTableName="field_configuration"
                                 constraintName="fknm0jfo2of1li65idn1qvbbm00" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order_configuration"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-325">
        <addForeignKeyConstraint baseColumnNames="id_part" baseTableName="t_asset_part_associations"
                                 constraintName="fkno24a5qbnjjn9xl0x2goppspd" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="part" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-326">
        <addForeignKeyConstraint baseColumnNames="parent_request_id" baseTableName="work_order"
                                 constraintName="fko87wf45c2qbyn4jhgjv8s4s5d" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="request" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-327">
        <addForeignKeyConstraint baseColumnNames="meter_category_id" baseTableName="meter"
                                 constraintName="fkoid61jgpxbr04np7rop8pag13" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="meter_category" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-328">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="company_settings"
                                 constraintName="fkokimhprb4eh1c0d48brd1fdaa" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-329">
        <addForeignKeyConstraint baseColumnNames="work_order_meter_trigger_id"
                                 baseTableName="work_order_meter_trigger_files"
                                 constraintName="fkol2wwydmtktqbnc7lvv23r5jy" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order_meter_trigger"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-330">
        <addForeignKeyConstraint baseColumnNames="vendor_id" baseTableName="workflow_action"
                                 constraintName="fkonpcm48v2k8p83xkj6gf5wwip" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="vendor" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-331">
        <addForeignKeyConstraint baseColumnNames="location_id" baseTableName="asset"
                                 constraintName="fkoo11h2f4j12wv0axk6d8u1wy0" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="location" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-332">
        <addForeignKeyConstraint baseColumnNames="work_order_id" baseTableName="request"
                                 constraintName="fkoo6uxlauwwyxfohx3lver2t0x" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-333">
        <addForeignKeyConstraint baseColumnNames="work_order_id" baseTableName="part_quantity"
                                 constraintName="fkoosoyfli9uk7bitxrpkrthrnj" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-334">
        <addForeignKeyConstraint baseColumnNames="location_id" baseTableName="workflow_condition"
                                 constraintName="fkoueqwngifye55uqf2pj5u0257" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="location" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-335">
        <addForeignKeyConstraint baseColumnNames="assigned_to_id" baseTableName="additional_cost"
                                 constraintName="fkov7r0agrfyv2u9v67rd4e4hxf" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-336">
        <addForeignKeyConstraint baseColumnNames="company_settings_id" baseTableName="work_order_request_configuration"
                                 constraintName="fkow32v30lf3pnb8wnvp5lqst0w" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company_settings" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-337">
        <addForeignKeyConstraint baseColumnNames="category_id" baseTableName="preventive_maintenance"
                                 constraintName="fkp1wj9d43qdhi19swp3ab00r4e" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order_category" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-338">
        <addForeignKeyConstraint baseColumnNames="id_part" baseTableName="t_part_team_associations"
                                 constraintName="fkp3whk5onr642t9ts5p2jmuda9" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="part" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-339">
        <addForeignKeyConstraint baseColumnNames="asset_id" baseTableName="work_order"
                                 constraintName="fkp4hbmaa9hcp6myymsfyxg6fo2" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-340">
        <addForeignKeyConstraint baseColumnNames="id_asset" baseTableName="t_asset_vendor_associations"
                                 constraintName="fkpgtou9e97sr7cmfyxfp1hp9sb" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-341">
        <addForeignKeyConstraint baseColumnNames="id_location" baseTableName="t_location_file_associations"
                                 constraintName="fkpxrshqnllftrn323eubyaqqhq" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="location" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-342">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="team"
                                 constraintName="fkq7becd703i1w0ry1jxy15qxid" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-343">
        <addForeignKeyConstraint baseColumnNames="preventive_maintenance_id"
                                 baseTableName="preventive_maintenance_files"
                                 constraintName="fkqhoc4ma9gysgmv2445yitvs8f" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="preventive_maintenance"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-344">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="part_quantity"
                                 constraintName="fkqipxpeva75fa76890xnl4u0fx" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-345">
        <addForeignKeyConstraint baseColumnNames="assigned_to_id" baseTableName="request_assigned_to"
                                 constraintName="fkqlbo8p3wkhw4ddewc0cx4d28q" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-346">
        <addForeignKeyConstraint baseColumnNames="id_file" baseTableName="t_part_file_associations"
                                 constraintName="fkqny8ad10cc9oam3yrfhenfthp" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-347">
        <addForeignKeyConstraint baseColumnNames="id_asset" baseTableName="t_asset_team_associations"
                                 constraintName="fkqr34hfl16wsv4krhpdcatpeft" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-348">
        <addForeignKeyConstraint baseColumnNames="work_order_request_configuration_id"
                                 baseTableName="field_configuration" constraintName="fkqrsw1egn2l8w4ve311io2fa5e"
                                 deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order_request_configuration"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-349">
        <addForeignKeyConstraint baseColumnNames="image_id" baseTableName="own_user"
                                 constraintName="fkqwalae8dm1n117q5p2k5xv8mk" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-350">
        <addForeignKeyConstraint baseColumnNames="work_order_id" baseTableName="work_order_history"
                                 constraintName="fkqxdc4ix6tovtwyr0on2f59hh4" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-351">
        <addForeignKeyConstraint baseColumnNames="purchase_order_category_id" baseTableName="workflow_condition"
                                 constraintName="fkr0f6t6jua29he3jhq40ty7wkc" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="purchase_order_category"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-352">
        <addForeignKeyConstraint baseColumnNames="subscription_id" baseTableName="company"
                                 constraintName="fkr5eqioud6jn02js440qjt6mxb" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="subscription" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-353">
        <addForeignKeyConstraint baseColumnNames="assigned_to_id" baseTableName="labor"
                                 constraintName="fkr5slomxbec1ob9k9npjcdad05" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-354">
        <addForeignKeyConstraint baseColumnNames="asset_id" baseTableName="asset_downtime"
                                 constraintName="fkrbg55bho0cxaorbbt7jwskrpo" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-355">
        <addForeignKeyConstraint baseColumnNames="meter_id" baseTableName="reading"
                                 constraintName="fkrk4bo4tq59pfymwvx2jnjvlae" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="meter" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-356">
        <addForeignKeyConstraint baseColumnNames="primary_user_id" baseTableName="work_order_meter_trigger"
                                 constraintName="fkrle6bql4ubcd8vjmqb19aukwl" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-357">
        <addForeignKeyConstraint baseColumnNames="role_id" baseTableName="own_user"
                                 constraintName="fkrlvsrdrcmmbtbgeqr8y4j69p4" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="role" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-358">
        <addForeignKeyConstraint baseColumnNames="id_location" baseTableName="t_location_customer_associations"
                                 constraintName="fkrohs7o68xw77yvwvlo0prue70" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="location" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-359">
        <addForeignKeyConstraint baseColumnNames="id_vendor" baseTableName="t_asset_vendor_associations"
                                 constraintName="fkrqd179yspkkgkqn96oggb7lhp" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="vendor" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-360">
        <addForeignKeyConstraint baseColumnNames="user_id" baseTableName="push_notification_token"
                                 constraintName="fkrv32gwhy1ktdvrlfeg2y1pcqo" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-361">
        <addForeignKeyConstraint baseColumnNames="assigned_to_id" baseTableName="work_order_assigned_to"
                                 constraintName="fks2pjdwafjgekyxtwj4f82qn4q" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-362">
        <addForeignKeyConstraint baseColumnNames="user_id" baseTableName="workflow_action"
                                 constraintName="fks2ytj9hm7fm8w9uekixsq2vip" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-363">
        <addForeignKeyConstraint baseColumnNames="signature_id" baseTableName="work_order"
                                 constraintName="fks33w3o0htu3jkkj4r40w1plvs" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="file" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-364">
        <addForeignKeyConstraint baseColumnNames="id_team" baseTableName="t_location_team_associations"
                                 constraintName="fks4ryynu0uwcxtffdq28y54bbr" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="team" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-365">
        <addForeignKeyConstraint baseColumnNames="user_id" baseTableName="workflow_condition"
                                 constraintName="fks9hh8bjsvrt9f5od4uyyw0j6c" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-366">
        <addForeignKeyConstraint baseColumnNames="team_id" baseTableName="workflow_action"
                                 constraintName="fksc5wshd9hdy2gdfrgnh73r9n2" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="team" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-367">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="vendor"
                                 constraintName="fksfx6gf0an0bo7kwscuhi1hoya" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-368">
        <addForeignKeyConstraint baseColumnNames="secondary_conditions_id" baseTableName="workflow_secondary_conditions"
                                 constraintName="fkshydsqbgheutdqrqsol5h9e0p" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="workflow_condition" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-369">
        <addForeignKeyConstraint baseColumnNames="currency_id" baseTableName="general_preferences"
                                 constraintName="fkskbryn4bunuqp0op70ogiu4ow" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="currency" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-370">
        <addForeignKeyConstraint baseColumnNames="preventive_maintenance_id" baseTableName="schedule"
                                 constraintName="fkslpq17o786xhp0jbk869hvdhy" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="preventive_maintenance"
                                 validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-371">
        <addForeignKeyConstraint baseColumnNames="user_settings_id" baseTableName="own_user"
                                 constraintName="fkssx9vqtrk77wqmtsi1gokyi8l" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="user_settings" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-372">
        <addForeignKeyConstraint baseColumnNames="asset_id" baseTableName="meter"
                                 constraintName="fkswqod52v3556tp6obl9c8lvxi" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-373">
        <addForeignKeyConstraint baseColumnNames="primary_user_id" baseTableName="preventive_maintenance"
                                 constraintName="fkt6xom1a5ksujm9l99daervnjw" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="own_user" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-374">
        <addForeignKeyConstraint baseColumnNames="category_id" baseTableName="work_order_meter_trigger"
                                 constraintName="fkt8pkfck219uufrehqu9k8ekh5" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order_category" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-375">
        <addForeignKeyConstraint baseColumnNames="subscription_plan_id" baseTableName="subscription_plan_features"
                                 constraintName="fkt9uih9cwfu9enes7yueekd2rx" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="subscription_plan" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-376">
        <addForeignKeyConstraint baseColumnNames="team_id" baseTableName="request"
                                 constraintName="fktb79vm0l79yhsnqtllqgf97nl" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="team" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-377">
        <addForeignKeyConstraint baseColumnNames="id_asset" baseTableName="t_asset_user_associations"
                                 constraintName="fktelhjpyo61q5q6ex771eug6y" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-378">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="part"
                                 constraintName="fkthru5degka2ss0r44n7uphvoj" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-379">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="relation"
                                 constraintName="fktka3m8kybt9riu4x4no4vwat0" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-380">
        <addForeignKeyConstraint baseColumnNames="category_id" baseTableName="workflow_condition"
                                 constraintName="fktlup5sh0tdowr2n5cfxfamr6o" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order_category" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-381">
        <addForeignKeyConstraint baseColumnNames="company_id" baseTableName="asset_downtime"
                                 constraintName="fktm1akp965a93k4gdxg1st9rfi" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="company" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-382">
        <addForeignKeyConstraint baseColumnNames="location_id" baseTableName="own_user"
                                 constraintName="fktmprdfwe8axkp8cobywe2gc1d" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="location" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-383">
        <addForeignKeyConstraint baseColumnNames="role_id" baseTableName="role_create_permissions"
                                 constraintName="fktncs84qs8gmbgb3qsula45o4r" deferrable="false"
                                 initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="role" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-384">
        <addForeignKeyConstraint baseColumnNames="work_order_category_id" baseTableName="workflow_condition"
                                 constraintName="fktqo77yorjst58d6j6rovs4yi7" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="work_order_category" validate="true"/>
    </changeSet>
    <changeSet author="Ibrahima (generated)" id="1687122810094-385">
        <addForeignKeyConstraint baseColumnNames="asset_id" baseTableName="workflow_action"
                                 constraintName="fkufu41twy3j9sfswo2tm7nkue" deferrable="false"
                                 initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION"
                                 referencedColumnNames="id" referencedTableName="asset" validate="true"/>
    </changeSet>
</databaseChangeLog>
