add/update models

This commit is contained in:
Bilal Catic
2019-06-09 11:37:38 +02:00
parent c021b55c26
commit 4a030d63e6
4 changed files with 48 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
'use strict';
module.exports = (sequelize, DataTypes) => {
const officeResourceMapping = sequelize.define('officeResourceMapping', {
officeSlug: DataTypes.TEXT,
officeId: DataTypes.TEXT,
resourceSlug: DataTypes.TEXT,
resourceId: DataTypes.TEXT,
}, {});
officeResourceMapping.associate = function(models) {
// associations can be defined here
};
return officeResourceMapping;
};