Added more backend models

This commit is contained in:
X4Lo committed 2024-04-01 07:30:42 +00:00
1 parent b1820521bc
commit 203aca7c65
9 files changed
+193 -14

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
const { DataTypes } = require('sequelize');
const sequelize = require('../db/database');
const List = sequelize.define("list",
{
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 = List;