Better individual scenes for documents

This commit is contained in:
Jori Lallo
2016-05-22 07:25:13 -07:00
parent 73e13e1849
commit b840b300b5
9 changed files with 50 additions and 7 deletions

View File

@@ -4,6 +4,7 @@ import {
} from '../sequelize';
import Atlas from './Atlas';
import Team from './Team';
import User from './User';
const Document = sequelize.define('document', {
id: { type: DataTypes.UUID, defaultValue: DataTypes.UUIDV4, primaryKey: true },
@@ -13,5 +14,6 @@ const Document = sequelize.define('document', {
Document.belongsTo(Atlas, { as: 'atlas' });
Document.belongsTo(Team);
Document.belongsTo(User);
export default Document;