table('member_deduction_manual', array('id' => true, 'primary_key' => ['id'], 'engine' => 'InnoDB', 'comment' => '金米粒手工扣减表')) ->addColumn('user_id', 'integer', array('limit' => 11, 'signed' => false, 'default' => 0, 'comment' => '用户ID')) ->addColumn('number', 'string', array('limit' => 64, 'default' => '', 'comment' => '扣减单号')) ->addColumn('remark', 'string', array('limit' => 255, 'default' => '', 'comment' => '扣减原因说明')) ->addColumn('score', 'integer', array('limit' => 10, 'signed' => false, 'default'=> 0, 'comment' => '扣减金米粒数量')) ->addColumn('audit_status', 'integer',array('limit' => 4, 'signed' => false, 'default'=> 0,'comment'=>'审核状态 0待审核 1审核通过 2审核不通过')) ->addColumn('create_time', 'integer', array('limit' => 10,'signed' => false, 'default' => 0, 'comment' => '创建时间')) ->addColumn('update_time', 'integer', array('limit' => 10,'signed' => false, 'default' => 0, 'comment' => '更新时间')) ->create(); } }