mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2025-12-06 12:04:07 +00:00
25 lines
594 B
JavaScript
25 lines
594 B
JavaScript
"use strict";
|
|
const {
|
|
Model
|
|
} = require("sequelize");
|
|
module.exports = (sequelize, DataTypes) => {
|
|
class playlists extends Model {
|
|
/**
|
|
* Helper method for defining associations.
|
|
* This method is not a part of Sequelize lifecycle.
|
|
* The `models/index` file will call this method automatically.
|
|
*/
|
|
static associate(models) {
|
|
// define association here
|
|
}
|
|
}
|
|
playlists.init({
|
|
playlistID: DataTypes.STRING,
|
|
playlistName: DataTypes.STRING,
|
|
userID: DataTypes.STRING
|
|
}, {
|
|
sequelize,
|
|
modelName: "playlists",
|
|
});
|
|
return playlists;
|
|
}; |