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
+24
View File
@@ -0,0 +1,24 @@
const Sequelize = require('sequelize');
const sequelize = require('..');
module.exports = sequelize.define('book', {
index: {
type: Sequelize.INTEGER(11),
allowNull: false,
autoIncrement: true,
primaryKey: true,
unique: true
},
title: {
type: Sequelize.TEXT,
allowNull: true,
defaultValue: null
},
published: {
type: 'DATETIME',
allowNull: true,
defaultValue: null
}
});