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

class UndergroundType extends Model { }

UndergroundType.init({
    tr: {
        type: DataTypes.STRING,
        allowNull: false,
        unique: true},
    cost: {
        type: DataTypes.INTEGER,
        allowNull: false}
}, {
    sequelize,
    modelName: 'UndergroundType',
    tableName: 'underground',
    schema: 'falukant_type',
    timestamps: false,
    underscored: true});

export default UndergroundType;
