Moved to using a real database ORM for testing

This commit is contained in:
2021-04-05 23:11:53 +10:00
parent 82bf61a88d
commit 2567ee4745
14 changed files with 668 additions and 130 deletions

View File

@@ -0,0 +1,24 @@
const Sequelize = require('sequelize');
const sequelize = require('..');
module.exports = sequelize.define('books', {
id: {
type: Sequelize.INTEGER(11),
allowNull: false,
autoIncrement: true,
primaryKey: true,
unique: true
},
title: {
type: Sequelize.TEXT
},
published: {
type: Sequelize.TEXT
},
rating: {
type: Sequelize.FLOAT
}
});