Added more backend models
This commit is contained in:
1 parent
b1820521bc
commit
203aca7c65
9 files changed
+193
-14
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user