Authored by 李奇

本地开发mysql免密

... ... @@ -105,7 +105,7 @@ module.exports = (env) => {
path.join(__dirname, '../public/vue')
],
alias:{
'vue$':'vue/dist/vue.js'
'vue$':'vue/dist/vue.esm.js'
}
},
stats: {
... ...
module.exports = {
test: {
username: 'root',
password: '123456',
password: '',
database: 'yoho_activity_platform',
port: '3306',
host: '0.0.0.0',
... ...
... ... @@ -21,6 +21,10 @@ module.exports = function(Sequelize, DataTypes) {
type: DataTypes.INTEGER(2),
allowNull: true
},
value: {
type: DataTypes.STRING(200),
allowNull: true
},
img: {
type: DataTypes.STRING(300),
allowNull: true
... ...
... ... @@ -37,6 +37,7 @@ CREATE TABLE IF NOT EXISTS act_wheel_surf_prize (
`act_id` INT(8) NOT NULL DEFAULT 0,
`name` VARCHAR(50) COMMENT '奖品名称',
`type` INT(2) DEFAULT 0 COMMENT '奖品类型: 0、空奖 2、红包 3、优惠券',
`value` VARCHAR(200) DEFAULT '' COMMENT '奖品口令或面值等',
`img` VARCHAR(300) COMMENT '奖品图片',
`total` INT(8) DEFAULT 0 COMMENT '奖品总数',
`total_left` INT(8) DEFAULT 0 COMMENT '奖品总数',
... ...