rename model list to usercollection & fixed redlated errors
This commit is contained in:
1 parent
60b517500f
commit
b48b395574
37 files changed
+2479
-1210
No files matched your search
@@ -0,0 +1,16 @@
|
||||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
|
||||
const UserCollection = sequelize.define("userCollection",
|
||||
{
|
||||
id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
|
||||
|
||||
name: { type: DataTypes.STRING(50) },
|
||||
description: { type: DataTypes.STRING(500) },
|
||||
user_rating: { type: DataTypes.FLOAT },
|
||||
|
||||
poster_path: { type: DataTypes.STRING(60) },
|
||||
}
|
||||
);
|
||||
|
||||
module.exports = UserCollection;
|
||||
Reference in new issue
Block a user