const Sequelize = require('sequelize')
    , sequelize = require('./config');

class AmazonModel extends Sequelize.Model { }
AmazonModel.init({
    id: {
        type: Sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true
    },
    title: Sequelize.STRING,
    asin: Sequelize.STRING,
    img: Sequelize.STRING,
    price: Sequelize.STRING,
    stock: Sequelize.INTEGER,
    detail: Sequelize.STRING,
    spec: Sequelize.STRING,
    video_id: Sequelize.INTEGER,
    category_id: Sequelize.INTEGER,
    created_at: Sequelize.DATE
}, { sequelize, modelName: 'ds_amazon', freezeTableName: true, timestamps: false });

module.exports = {
    AmazonModel
}