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

-13
View File
@@ -1,13 +0,0 @@
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;