queryBook and createBook are working

This commit is contained in:
2022-02-27 12:12:20 +00:00
parent 6fe88da331
commit ce41108140
13 changed files with 748 additions and 16 deletions
+18
View File
@@ -0,0 +1,18 @@
const Sequelize = require('sequelize');
const sequelize = require('..');
module.exports = sequelize.define('author', {
index: {
type: Sequelize.INTEGER(11),
allowNull: false,
autoIncrement: true,
primaryKey: true,
unique: true
},
name: {
type: Sequelize.TEXT,
allowNull: true,
defaultValue: null
}
});