12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class CreateUsersTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('users', function (Blueprint $table) {
- $table->id();
- $table->string('name')->nullable();
- $table->string('surname')->nullable();
- $table->string('username')->unique();
- $table->string('email')->unique();
- $table->timestamp('email_verified_at')->nullable();
- $table->string('password')->nullable();
- $table->string('dob')->nullable();
- $table->string('status_text')->nullable();
- $table->unsignedBigInteger('country_id')->nullable();
- $table->unsignedBigInteger('city_id')->nullable();
- $table->string('skill')->nullable();
- $table->text('about')->nullable();
- $table->unsignedInteger('group')->default(1);
- $table->string('ban_info')->nullable();
- $table->string('avatar_url')->nullable();
- $table->double('balance')->default(0);
- $table->unsignedInteger('verify')->default(0);
- $table->rememberToken();
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('users');
- }
- }
|