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

class RegionType extends Model { }

RegionType.init({
    labelTr: {
        type: DataTypes.STRING,
        allowNull: false},
    parentId: {
        type: DataTypes.INTEGER,
        allowNull: true
    }
}, {
    sequelize,
    modelName: 'RegionType',
    tableName: 'region',
    schema: 'falukant_type',
    timestamps: false,
    underscored: true});

export default RegionType;
