22 lines
483 B
JavaScript
22 lines
483 B
JavaScript
const Sequelize = require("sequelize");
|
|
const sequelize = require("../../config/sequelize.conf");
|
|
|
|
class Ubicacion extends Sequelize.Model {}
|
|
Ubicacion.init({
|
|
idUbicacion: {
|
|
type: Sequelize.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true,
|
|
allowNull: false,
|
|
},
|
|
ubicacion: {
|
|
type: Sequelize.CHAR,
|
|
allowNull: false,
|
|
// unique: true
|
|
},
|
|
}, {
|
|
sequelize,
|
|
tableName: "ubicacion",
|
|
});
|
|
|
|
module.exports = Ubicacion; |