{"size": 1646, "ext": "js", "max_stars_repo_path": "src/models/mysql/gift.model.js", "max_stars_repo_name": "tickstudiu/endpoint-api", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/models/mysql/gift.model.js", "max_issues_repo_name": "tickstudiu/endpoint-api", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/models/mysql/gift.model.js", "max_forks_repo_name": "tickstudiu/endpoint-api", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.3793103448, "max_line_length": 44, "alphanum_fraction": 0.3791008505}
module.exports = (sequelize, DataTypes) => {
    return sequelize.define('tb_gift', {
            id: {
                type: DataTypes.INTEGER(11),
                primaryKey: true,
                allowNull: false,
                autoIncrement: true
            },
            gift_name: {
                type: DataTypes.STRING(50),
                allowNull: false,
            },
            code: {
                type: DataTypes.STRING(10),
                allowNull: false,
            },
            limit_user: {
                type: DataTypes.INTEGER(7),
                allowNull: false,
            },
            point: {
                type: DataTypes.INTEGER(10),
                allowNull: false,
            },
            credit: {
                type: DataTypes.INTEGER(10),
                allowNull: false,
            },
            turnover: {
                type: DataTypes.INTEGER(2),
                allowNull: false,
            },
            user: {
                type: DataTypes.INTEGER(1),
                allowNull: false,
            },
            time_start: {
                type: DataTypes.INTEGER(25),
                allowNull: false,
            },
            time_end: {
                type: DataTypes.INTEGER(25),
                allowNull: false,
            },
            admin: {
                type: DataTypes.STRING(30),
                allowNull: false,
            },
            status: {
                type: DataTypes.INTEGER(1),
                allowNull: false,
                defaultValue: 1
            },
        },
        {
            freezeTableName: true
        });
}