main
Last change
on this file was c454c0f, checked in by bube-ristovska <ristovska725@…>, 11 months ago |
First commit
|
-
Property mode
set to
100644
|
File size:
751 bytes
|
Rev | Line | |
---|
[c454c0f] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | use Illuminate\Database\Migrations\Migration;
|
---|
| 4 | use Illuminate\Database\Schema\Blueprint;
|
---|
| 5 | use Illuminate\Support\Facades\Schema;
|
---|
| 6 |
|
---|
| 7 | return new class extends Migration
|
---|
| 8 | {
|
---|
| 9 | /**
|
---|
| 10 | * Run the migrations.
|
---|
| 11 | */
|
---|
| 12 | public function up(): void
|
---|
| 13 | {
|
---|
| 14 | Schema::create('users', function (Blueprint $table) {
|
---|
| 15 | $table->id();
|
---|
| 16 | $table->string('name');
|
---|
| 17 | $table->string('email')->unique();
|
---|
| 18 | $table->timestamp('email_verified_at')->nullable();
|
---|
| 19 | $table->string('password');
|
---|
| 20 | $table->rememberToken();
|
---|
| 21 | $table->timestamps();
|
---|
| 22 | });
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | /**
|
---|
| 26 | * Reverse the migrations.
|
---|
| 27 | */
|
---|
| 28 | public function down(): void
|
---|
| 29 | {
|
---|
| 30 | Schema::dropIfExists('users');
|
---|
| 31 | }
|
---|
| 32 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.