Your IP : 216.73.216.52


Current Path : /var/www/recommendations/www/model/
Upload File :
Current File : /var/www/recommendations/www/model/Related.js

const { Model, DataTypes } = require('sequelize');
const sequelize = require('../config/database');

class Related extends Model {}

Related.init(
    {
        id: {
            type: DataTypes.INTEGER,
            primaryKey: true,
            autoIncrement: true
        },
        sku: DataTypes.STRING,
        user: DataTypes.STRING,
        position: DataTypes.INTEGER,
        related: DataTypes.STRING,
        createdAt: DataTypes.DATE,
        updatedAt: DataTypes.DATE
    },
    {
        sequelize,
        modelName: 'Related',
        tableName: 'related'
    }
);

module.exports = Related;