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 CreateAccountsTable extends Migration
8: {
9: /**
10: * Run the migrations.
11: *
12: * @return void
13: */
14: public function up()
15: {
16: Capsule::schema()->create('standard_auth_accounts', function (Blueprint $table) {
17: $table->increments('Id');
18: $table->boolean('IsDisabled')->default(false);
19: $table->integer('IdUser')->default(0);
20: $table->string('Login')->default('');
21: $table->string('Password')->default('');
22: $table->dateTime('LastModified')->default(date('Y-m-d H:i:s'));
23: $table->json('Properties')->nullable();
24: $table->timestamp(\Aurora\System\Classes\Model::CREATED_AT)->nullable();
25: $table->timestamp(\Aurora\System\Classes\Model::UPDATED_AT)->nullable();
26: });
27: }
28:
29: /**
30: * Reverse the migrations.
31: *
32: * @return void
33: */
34: public function down()
35: {
36: Capsule::schema()->dropIfExists('standard_auth_accounts');
37: }
38: }
39: