table('coupon_activity_coupon', array('id' => true, 'primary_key' => ['id'], 'engine' => 'InnoDB', 'comment' => '裂变活动关联的优惠券表')) ->addColumn('coupon_activity_id', 'integer', array('limit' => 11, 'signed' => false, 'default' => 0, 'comment' => '裂变活动ID')) ->addColumn('coupon_id', 'integer', array('limit' => 11, 'signed' => false, 'default' => 0, 'comment' => '优惠券ID')) ->addColumn('type', 'integer', array('limit' => 11, 'signed' => false, 'default' => 0, 'comment' => '类型 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(); } }