|
@@ -19,7 +19,7 @@ final class ProfitShareReceiver extends AbstractMigration
|
|
|
*/
|
|
*/
|
|
|
public function change(): void
|
|
public function change(): void
|
|
|
{
|
|
{
|
|
|
- $this->table('profit_share_receivers', ['comment' => '分账接收方'])
|
|
|
|
|
|
|
+ $this->table('profit_share_receiver', ['comment' => '分账接收方'])
|
|
|
->addColumn('user_id', 'integer', ['null' => false, 'signed' => false, 'comment' => '用户ID'])
|
|
->addColumn('user_id', 'integer', ['null' => false, 'signed' => false, 'comment' => '用户ID'])
|
|
|
->addColumn('order_no', 'string', ['null' => false, 'limit' => 22, 'comment' => '订单编号'])
|
|
->addColumn('order_no', 'string', ['null' => false, 'limit' => 22, 'comment' => '订单编号'])
|
|
|
->addColumn('org_code', 'string', ['null' => false, 'limit' => 32, 'comment' => '机构编号'])
|
|
->addColumn('org_code', 'string', ['null' => false, 'limit' => 32, 'comment' => '机构编号'])
|
|
@@ -37,6 +37,7 @@ final class ProfitShareReceiver extends AbstractMigration
|
|
|
->addColumn('org_id', 'string', ['null' => true, 'limit' => 32, 'comment' => '接收方所属机构'])
|
|
->addColumn('org_id', 'string', ['null' => true, 'limit' => 32, 'comment' => '接收方所属机构'])
|
|
|
->addColumn('org_name', 'string', ['null' => true, 'limit' => 32, 'comment' => '接收方所属机构名称'])
|
|
->addColumn('org_name', 'string', ['null' => true, 'limit' => 32, 'comment' => '接收方所属机构名称'])
|
|
|
->addColumn('receiver_no', 'string', ['null' => true, 'limit' => 32, 'comment' => '接收方编号'])
|
|
->addColumn('receiver_no', 'string', ['null' => true, 'limit' => 32, 'comment' => '接收方编号'])
|
|
|
|
|
+ ->addColumn('status', 'integer', ['signed' => false, 'default' => 1, 'comment' => '状态 1: 待审核 2:提交中 3: 验证通过 4: 验证失败 5:绑定中 6: 绑定成功 7: 绑定失败'])
|
|
|
->addTimestamps('create_time', 'update_time')
|
|
->addTimestamps('create_time', 'update_time')
|
|
|
->create();
|
|
->create();
|
|
|
}
|
|
}
|