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

class BuyableStock extends Model { }

BuyableStock.init({
    regionId: {
        type: DataTypes.INTEGER,
        allowNull: false},
    stockTypeId: {
        type: DataTypes.INTEGER,
        allowNull: false},
    quantity: {
        type: DataTypes.INTEGER,
        allowNull: false}}, {
    sequelize,
    modelName: 'BuyableStock',
    tableName: 'buyable_stock',
    schema: 'falukant_data',
    timestamps: false,
    underscored: true});

export default BuyableStock;
