act_guochao_shop.js 1.22 KB
/* eslint new-cap: "off" */
const options = require('../model-opts');

module.exports = function(sequelize, DataTypes) {
    const actGuochaoShop = sequelize.define('actGuochaoShop', {
        id: {
            type: DataTypes.INTEGER(8),
            allowNull: false,
            primaryKey: true,
            autoIncrement: true
        },
        logo: {
            type: DataTypes.STRING(200),
            allowNull: true
        },
        url: {
            type: DataTypes.STRING(300),
            allowNull: true,
        },
        sort: {
            type: DataTypes.INTEGER(8),
            allowNull: true,
            defaultValue: '0'
        },
        place: {
            type: DataTypes.INTEGER(2),
            allowNull: true,
            defaultValue: '0'
        },
        collect_count: {
            type: DataTypes.INTEGER(8),
            allowNull: true,
            defaultValue: '0'
        },
        shop_id: {
            type: DataTypes.INTEGER(10),
            allowNull: true,
            defaultValue: '0'
        },
        shop_name: {
            type: DataTypes.STRING(50),
            allowNull: true,
        }
    }, Object.assign(options, {tableName: 'act_guochao_shop'}));

    return actGuochaoShop;
};