const { DataTypes } = require("sequelize");
const sequelize = require("../config/databaseConfig");
const TblMaquinas = sequelize.define("tbl_Maquinas", {
    intId: {
        type: DataTypes.BIGINT,
        primaryKey: true,
        autoIncrement: true,
      },
    intCodigo: {
        type: DataTypes.BIGINT,
        allowNull: false,
    },
    stringNome: {
        type: DataTypes.STRING,
        allowNull: false,
    },
    stringIp: {
        type: DataTypes.STRING,
        allowNull: false,
    },
    intIdLocalizacao: {
        type: DataTypes.BIGINT,
        allowNull: false,
    },
      bitEliminado: {
        type: DataTypes.BOOLEAN,
        allowNull: false,
      },
    
}, {
    paranoid: {
        deletedAt: 'bitEliminado',
        paranoid: true,
    },
    tableName: 'tbl_Maquinas',
});

module.exports = TblMaquinas;