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

class TitleOfNobility extends Model { }

TitleOfNobility.init({
    labelTr: {
        type: DataTypes.STRING,
        allowNull: false},
    level: {
        type: DataTypes.INTEGER,
        allowNull: false,
        defaultValue: 0}}, {
    sequelize,
    modelName: 'Title',
    tableName: 'title',
    schema: 'falukant_type',
    timestamps: false,
    underscored: true});

export default TitleOfNobility;
