mirror of
https://github.com/Ratstail91/sineql-demo.git
synced 2026-05-06 15:40:11 +10:00
Added Author query, creation handlers
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const Sequelize = require('sequelize');
|
||||
const sequelize = require('..');
|
||||
|
||||
module.exports = sequelize.define('book', {
|
||||
const Book = sequelize.define('book', {
|
||||
index: {
|
||||
type: Sequelize.INTEGER(11),
|
||||
allowNull: false,
|
||||
@@ -23,3 +23,5 @@ module.exports = sequelize.define('book', {
|
||||
defaultValue: null
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = Book;
|
||||
Reference in New Issue
Block a user