['type' => 'tinyint', 'title' => '商品类型 1 产品 2 套餐'], 'order_id' => ['type' => 'uBigint', 'title' => '订单id'], 'pay_channel' => ['type' => 'tinyint', 'default' => 0, 'title' => '支付渠道 1 微信 2 支付宝'], 'order_amount_total' => ['type' => 'text', 'default' => 0, 'title' => '实际付款总金额'], 'profit_money' => ['type' => 'decimal', 'length' => 8, 'decimal' => 2, 'title' => '分润金额', 'is_null' => 1], 'status' => ['type' => 'string', 'default' => 0, 'title' => '状态 1 进行中 2 已完成'], 'profit_account' => ['type' => 'string', 'title' => '分账接收方帐号'], 'profit_name' => ['type' => 'string', 'title' => '分账接收方全称'], 'profit_relation_type' => ['type' => 'string', 'title' => '与分账方的关系类型'], 'profit_custom_relation' => ['type' => 'json', 'title' => '自定义的分账关系'], 'profit_ratio' => ['type' => 'decimal', 'length' => 8, 'decimal' => 2, 'title' => '接收方分账比例'], ]; } /** * 初始化内容 */ public function init() { } /** * Run the database seeds. * * @return void */ public function run() { $this->schema = 'order_profit_record'; $this->title = '订单微信分账表'; $this->start(); } }