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

class FalukantStockType extends Model { }

FalukantStockType.init({
    labelTr: {
        type: DataTypes.STRING,
        allowNull: false,
        unique: true},
    cost: {
        type: DataTypes.INTEGER,
        allowNull: false}
}, {
    sequelize,
    modelName: 'StockType',
    tableName: 'stock',
    schema: 'falukant_type',
    timestamps: false,
    underscored: true});

export default FalukantStockType;
