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

class FalukantStock extends Model { }

FalukantStock.init({
    branchId: {
        type: DataTypes.INTEGER,
        allowNull: false,
        defaultValue: 0
    },
    stockTypeId: {
        type: DataTypes.INTEGER,
        allowNull: false},
    quantity: {
        type: DataTypes.INTEGER,
        allowNull: false}}, {
    sequelize,
    modelName: 'StockData',
    tableName: 'stock',
    schema: 'falukant_data',
    timestamps: false,
    underscored: true});

export default FalukantStock;
