mirror of
https://github.com/Ratstail91/sineQL.git
synced 2025-11-29 02:34:28 +11:00
Moved to using a real database ORM for testing
This commit is contained in:
16
test/database/models/authors.js
Normal file
16
test/database/models/authors.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const Sequelize = require('sequelize');
|
||||
const sequelize = require('..');
|
||||
|
||||
module.exports = sequelize.define('authors', {
|
||||
id: {
|
||||
type: Sequelize.INTEGER(11),
|
||||
allowNull: false,
|
||||
autoIncrement: true,
|
||||
primaryKey: true,
|
||||
unique: true
|
||||
},
|
||||
|
||||
name: {
|
||||
type: Sequelize.TEXT
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user