add backend models/ add properties for some
This commit is contained in:
1 parent
3f28660a4d
commit
8a1d5a8416
9 files changed
+67
-4
No files matched your search
@@ -0,0 +1,14 @@
|
||||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
|
||||
const Genre = sequelize.define("genre",
|
||||
{
|
||||
id: { type: DataTypes.INTEGER, primaryKey: true },
|
||||
|
||||
name: { type: DataTypes.STRING(30) },
|
||||
}, {
|
||||
timestamps: false,
|
||||
}
|
||||
);
|
||||
|
||||
module.exports = Genre;
|
||||
Reference in new issue
Block a user