rename model list to usercollection & fixed redlated errors

This commit is contained in:
X4Lo committed 2024-04-06 08:56:16 +00:00
1 parent 60b517500f
commit b48b395574
37 files changed
+2479 -1210

No files matched your search

+16
View File
@@ -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;