Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('transfers', function (Blueprint $table) { |
||
17 | $table->bigIncrements('id'); |
||
18 | $table->morphs('from'); |
||
19 | $table->unsignedBigInteger('from_wallet_id'); |
||
20 | $table->string('action')->comment('操作行为:read/download/subscribe/trial 等'); |
||
21 | $table->morphs('to'); |
||
22 | $table->unsignedBigInteger('to_wallet_id'); |
||
23 | $table->bigInteger('fee')->defalut(0)->comment('手续费'); |
||
24 | $table->unsignedBigInteger('deposit_id')->comment('收款事务 id'); |
||
25 | $table->unsignedBigInteger('withdraw_id')->comment('付款事务 id'); |
||
26 | $table->uuid('uuid')->unique(); |
||
27 | $table->boolean('refund')->default(false)->comment('交易是否完成'); |
||
28 | $table->timestamps(); |
||
29 | }); |
||
42 |