import { SYNC_DIRECTIONS } from '@tamanu/constants';
import { Model } from './Model';
export class TaskTemplateDesignation extends Model {
    static initModel({ primaryKey, ...options }) {
        super.init({
            id: primaryKey
        }, {
            ...options,
            syncDirection: SYNC_DIRECTIONS.BIDIRECTIONAL
        });
    }
    static initRelations(models) {
        this.belongsTo(models.TaskTemplate, {
            foreignKey: 'taskTemplateId',
            as: 'taskTemplate'
        });
        this.belongsTo(models.ReferenceData, {
            foreignKey: 'designationId',
            as: 'designation'
        });
    }
    static buildSyncFilter() {
        return null; // syncs everywhere
    }
    static async buildSyncLookupQueryDetails() {
        return null; // syncs everywhere
    }
}

//# sourceMappingURL=TaskTemplateDesignation.js.map