created entry, entryid, entryRating, collection models
This commit is contained in:
1 parent
0670b4b65d
commit
772db77e98
4 files changed
+89
No files matched your search
@@ -0,0 +1,13 @@
|
||||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
|
||||
const Collection = sequelize.define("collection",
|
||||
{
|
||||
id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
|
||||
title: { type: DataTypes.STRING(50) },
|
||||
overview: { type: DataTypes.STRING(300) },
|
||||
user_rating: { type: DataTypes.FLOAT }
|
||||
}
|
||||
);
|
||||
|
||||
module.exports = Collection;
|
||||
Reference in new issue
Block a user