import { Model, DataTypes } from 'sequelize';
import { sequelize } from '../../../utils/sequelize.js';

class BranchType extends Model { }

BranchType.init({
    labelTr: {
        type: DataTypes.STRING,
        allowNull: false},
    baseCost: {
        type: DataTypes.INTEGER,
        allowNull: false}
}, {
    sequelize,
    modelName: 'BranchType',
    tableName: 'branch',
    schema: 'falukant_type',
    timestamps: false,
    underscored: true,
    indexes: [
        {
            unique: true,
            fields: ['label_tr']
        }
    ]});

export default BranchType;
