table('kj_activity_goods', array('id' => true, 'primary_key' => ['id'], 'engine' => 'InnoDB', 'comment' => '活动砍价商品表')); $table->addColumn('activity_id', 'integer',array('limit' => 4, 'signed' => false, 'default'=> 0,'comment'=>'活动id')) ->addColumn('goods_id', 'integer',array('limit' => 11,'signed'=>false,'default'=>0,'comment'=>'商品id')) ->addColumn('goods_sku_id', 'integer',array('limit' => 11,'signed'=>false,'default'=>0,'comment'=>'商品sku唯一标识')) ->addColumn('goods_sku_no', 'string',array('limit' => 100,'default'=>'','comment'=>'商品sku编码')) ->addColumn('low_price', 'decimal',array('limit' => 11,'precision'=>10,'scale'=>2,'signed'=>false,'default'=>0,'comment'=>'活动底价')) ->addColumn('help_kj_up_cnt', 'integer',array('limit' => 11,'signed'=>false,'default'=>0,'comment'=>'帮砍人数上限')) ->addColumn('create_time', 'datetime',array('null' => true,'comment'=>'创建时间')) ->addColumn('update_time', 'datetime',array('null' => true,'comment'=>'更新时间')) ->create(); } }