table('user_share', array('id' => true, 'primary_key' => ['id'], 'engine' => 'InnoDB', 'comment' => '用户分享表')) ->addColumn('user_id', 'integer', array('limit' => 10, 'default' => 0, 'comment' => '用户ID')) ->addColumn('target_type', 'integer', array('limit' => 10, 'default' => 0, 'comment' => '类型 1-商品')) ->addColumn('target_id', 'integer', array('limit' => 10, 'default' => 0, 'comment' => '目标ID')) ->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(); } }