diff --git a/modules/events/venue.model.js b/modules/events/venue.model.js index 56ba444..bb6b961 100644 --- a/modules/events/venue.model.js +++ b/modules/events/venue.model.js @@ -28,7 +28,7 @@ module.exports = function (sequelize, DataTypes) { state: { type: DataTypes.STRING, }, - postal_core: { + postal_code: { type: DataTypes.STRING, }, accessibility: { @@ -38,7 +38,8 @@ module.exports = function (sequelize, DataTypes) { type: DataTypes.INTEGER, allowNull: false, defaultValue: 1, - }, + }, + }, { tableName: 'venues', freezeTableName: true, diff --git a/modules/events/venue.validations.js b/modules/events/venue.validations.js index 52c3d4d..83f649a 100644 --- a/modules/events/venue.validations.js +++ b/modules/events/venue.validations.js @@ -8,7 +8,7 @@ const VenueInputType = Joi.object().keys({ description: Joi.string().optional(), country: Joi.string().optional(), state: Joi.string().optional(), - postal_core: Joi.string().optional(), + postal_code: Joi.string().optional(), accessibility: Joi.string().optional() }); /* diff --git a/script-carga-bd-completa.sql b/script-carga-bd-completa.sql index 8dd12bf..21933a2 100644 --- a/script-carga-bd-completa.sql +++ b/script-carga-bd-completa.sql @@ -832,7 +832,7 @@ CREATE TABLE `venues` ( `city` varchar(255) NOT NULL, `country` varchar(255) DEFAULT NULL, `state` varchar(255) DEFAULT NULL, - `postal_core` varchar(255) DEFAULT NULL, + `postal_code` varchar(255) DEFAULT NULL, `accessibility` varchar(255) DEFAULT NULL, `gmt` int(11) NOT NULL DEFAULT '1', `createdAt` datetime NOT NULL,