finish up example and fixes
This commit is contained in:
parent
b4f2ccd8fe
commit
88789d83c6
8 changed files with 143 additions and 858 deletions
|
|
@ -19,7 +19,7 @@ module.exports = {
|
|||
submittedBy: {
|
||||
type: Sequelize.INTEGER,
|
||||
references: {
|
||||
model: 'user',
|
||||
model: 'users',
|
||||
key: 'id',
|
||||
onDelete: 'SET NULL',
|
||||
onUpdate: 'CASCADE'
|
||||
|
|
@ -28,7 +28,7 @@ module.exports = {
|
|||
reviewedBy: {
|
||||
type: Sequelize.INTEGER,
|
||||
references: {
|
||||
model: 'user',
|
||||
model: 'users',
|
||||
key: 'id',
|
||||
onDelete: 'SET NULL',
|
||||
onUpdate: 'CASCADE'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue