|
@@ -0,0 +1,39 @@
|
|
|
|
|
+<?php
|
|
|
|
|
+
|
|
|
|
|
+declare(strict_types=1);
|
|
|
|
|
+
|
|
|
|
|
+use Phinx\Migration\AbstractMigration;
|
|
|
|
|
+
|
|
|
|
|
+final class ProfitShareReceiver extends AbstractMigration
|
|
|
|
|
+{
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Change Method.
|
|
|
|
|
+ *
|
|
|
|
|
+ * Write your reversible migrations using this method.
|
|
|
|
|
+ *
|
|
|
|
|
+ * More information on writing migrations is available here:
|
|
|
|
|
+ * https://book.cakephp.org/phinx/0/en/migrations.html#the-change-method
|
|
|
|
|
+ *
|
|
|
|
|
+ * Remember to call "create()" or "update()" and NOT "save()" when working
|
|
|
|
|
+ * with the Table class.
|
|
|
|
|
+ */
|
|
|
|
|
+ public function change(): void
|
|
|
|
|
+ {
|
|
|
|
|
+ $this->table('profit_share_receivers', ['comment' => '分账接收方'])
|
|
|
|
|
+ ->addColumn('user_id', 'integer', ['null' => false, 'signed' => false, 'comment' => '用户ID'])
|
|
|
|
|
+ ->addColumn('order_no', 'string', ['null' => false, 'size' => 22, 'comment' => '订单编号'])
|
|
|
|
|
+ ->addColumn('org_code', 'string', ['null' => false, 'size' => 32, 'comment' => '机构编号'])
|
|
|
|
|
+ ->addColumn('receiver_name', 'string', ['null' => false, 'size' => 64, 'comment' => '分账接收方名称'])
|
|
|
|
|
+ ->addColumn('contact_mobile', 'string', ['null' => false, 'size' => 16, 'comment' => '联系手机号'])
|
|
|
|
|
+ ->addColumn('acct_no', 'string', ['null' => false, 'size' => 32, 'comment' => '收款账户卡号'])
|
|
|
|
|
+ ->addColumn('acct_name', 'string', ['null' => false, 'size' => 32, 'comment' => '收款账户名称'])
|
|
|
|
|
+ ->addColumn('acct_type_code', 'string', ['null' => false, 'size' => 32, 'default' => '58', 'comment' => '收款账户账户类型(57:对公 58:对私)'])
|
|
|
|
|
+ ->addColumn('acct_certificate_type', 'string', ['null' => false, 'size' => 32, 'default' => '17', 'comment' => '收款账户证件类型 17 身份证,18 护照,19 港澳居民来往内地通行证 20 台湾居民来往内地通行证'])
|
|
|
|
|
+ ->addColumn('acct_certificate_no', 'string', ['null' => false, 'size' => 32, 'comment' => '收款账户证件号'])
|
|
|
|
|
+ ->addColumn('acct_open_bank_code', 'string', ['null' => false, 'size' => 32, 'comment' => '收款账户开户行号'])
|
|
|
|
|
+ ->addColumn('acct_open_bank_name', 'string', ['null' => false, 'size' => 64, 'comment' => '收款账户开户行名称'])
|
|
|
|
|
+ ->addColumn('acct_clear_bank_code', 'string', ['null' => false, 'size' => 32, 'comment' => '收款账户清算行行号'])
|
|
|
|
|
+ ->addColumn('settle_type', 'string', ['null' => true, 'size' => 32, 'default' => '01', 'comment' => '提款类型 01:主动提款 03:交易自动结算'])
|
|
|
|
|
+ ->create();
|
|
|
|
|
+ }
|
|
|
|
|
+}
|