2020-08-14 17:22:42 -05:00
|
|
|
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,
|
2020-09-10 03:06:23 -05:00
|
|
|
unique: true
|
2020-08-14 17:22:42 -05:00
|
|
|
},
|
|
|
|
|
}, {
|
|
|
|
|
sequelize,
|
|
|
|
|
tableName: "ubicacion",
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
module.exports = Ubicacion;
|