1: <?php
2:
3: use Illuminate\Database\Migrations\Migration;
4: use Illuminate\Database\Schema\Blueprint;
5: use Illuminate\Database\Capsule\Manager as Capsule;
6:
7: class CreateAuthTokensTable extends Migration
8: {
9: /**
10: * Run the migrations.
11: *
12: * @return void
13: */
14: public function up()
15: {
16: Capsule::schema()->create('core_auth_tokens', function (Blueprint $table) {
17: $table->id('Id');
18: $table->integer('UserId')->default(0);
19: $table->text('Token');
20: $table->integer('LastUsageDateTime')->default(0);
21: $table->timestamp(\Aurora\System\Classes\Model::CREATED_AT)->nullable();
22: $table->timestamp(\Aurora\System\Classes\Model::UPDATED_AT)->nullable();
23: });
24: }
25:
26: /**
27: * Reverse the migrations.
28: *
29: * @return void
30: */
31: public function down()
32: {
33: Capsule::schema()->dropIfExists('core_auth_tokens');
34: }
35: }
36: