fix: error: SQLITE_ERROR: near "AUTOINCREMENT": syntax error

This commit is contained in:
chenos 2022-11-15 16:14:47 +08:00
parent 9ad4bff62b
commit 2ea185a412

View File

@ -9,6 +9,16 @@ export default {
primaryKey: true,
autoIncrement: true
},
{
type: 'integer',
name: 'userId',
primaryKey: false,
},
{
type: 'integer',
name: 'jobId',
primaryKey: false,
},
{
type: 'belongsTo',
name: 'job'