Custom fields feature.

This commit is contained in:
Ahmed Bouhuolia
2019-09-13 20:24:09 +02:00
parent cba17739d6
commit ed4d37c8fb
64 changed files with 2307 additions and 121 deletions

View File

@@ -0,0 +1,22 @@
import bookshelf from './bookshelf';
const ViewRole = bookshelf.Model.extend({
/**
* Table name.
*/
tableName: 'view_roles',
/**
* Timestamp columns.
*/
hasTimestamps: false,
/**
* View role model may belongs to view model.
*/
view() {
return this.belongsTo('View', 'view_id');
},
});
export default bookshelf.model('ViewRole', ViewRole);