table('extension_wuliu', ['comment' => '物流数据']); $table ->addColumn('number', 'string', ['limit' => 50, 'default' => '', 'comment' => '快递单号']) ->addColumn('type', 'string', ['limit' => 32, 'default' => '', 'comment' => '快递公司']) ->addColumn('list', 'json', ['null' => true, 'comment' => '物流信息']) ->addColumn('delivery_status', 'tinyinteger', ['signed' => false, 'default' => 0, 'comment' => '物流状态 0:快递收件(揽件)1.在途中 2.正在派件 3.已签收 4.派送失败 5.疑难件 6.退件签收']) ->addColumn('is_sign', 'tinyinteger', ['signed' => false, 'default' => 0, 'comment' => '是否签收']) ->addColumn('exp_name', 'string', ['limit' => 100, 'default' => '', 'comment' => '快递公司名称']) ->addColumn('exp_site', 'string', ['limit' => 255, 'default' => '', 'comment' => '快递公司官网']) ->addColumn('exp_phone', 'string', ['limit' => 32, 'default' => '', 'comment' => '快递公司电话']) ->addColumn('courier', 'string', ['limit' => 32, 'default' => '', 'comment' => '快递员']) ->addColumn('courier_phone', 'string', ['limit' => 32, 'default' => '', 'comment' => '快递员电话']) ->addColumn('take_time', 'string', ['limit' => 32, 'default' => '', 'comment' => '发货到收货消耗时长']) ->addColumn('logo', 'string', ['limit' => 255, 'default' => '', 'comment' => '快递公司LOGO']) ->addTimestamps('create_time', 'update_time') ->addIndex('number') ->create(); } }