| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class CreateMtnMomoTokensTable extends Migration |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Run the migrations. |
||
| 11 | */ |
||
| 12 | public function up() |
||
| 13 | { |
||
| 14 | Schema::create('mtn_momo_tokens', function (Blueprint $table) { |
||
| 15 | $table->increments('id'); |
||
| 16 | $table->text('access_token'); |
||
| 17 | $table->text('refresh_token')->nullable(); |
||
| 18 | $table->string('token_type')->default('Bearer'); |
||
| 19 | $table->enum('product', [ |
||
| 20 | 'collection', |
||
| 21 | 'disbursement', |
||
| 22 | 'remittance', |
||
| 23 | ]); |
||
| 24 | $table->timestamps(); |
||
| 25 | $table->timestamp('expires_at')->nullable(); |
||
| 26 | $table->softDeletes(); |
||
| 27 | }); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Reverse the migrations. |
||
| 32 | */ |
||
| 33 | public function down() |
||
| 36 | } |
||
| 37 | } |
||
| 38 |