20 lines
641 B
JavaScript
20 lines
641 B
JavaScript
'use strict';
|
|
|
|
module.exports = (sequelize, DataTypes) => {
|
|
const bookingChangeIncident = sequelize.define('bookingChangeIncident', {
|
|
reservationId: DataTypes.TEXT,
|
|
memberId: DataTypes.TEXT,
|
|
resourceId: DataTypes.TEXT,
|
|
oldBookingStart: DataTypes.DATE,
|
|
oldBookingEnd: DataTypes.DATE,
|
|
newBookingStart: DataTypes.DATE,
|
|
newBookingEnd: DataTypes.DATE,
|
|
incidentType: DataTypes.INTEGER,
|
|
chargeFee: DataTypes.FLOAT,
|
|
}, {});
|
|
bookingChangeIncident.associate = function(models) {
|
|
// associations can be defined here
|
|
};
|
|
return bookingChangeIncident;
|
|
};
|