- Timestamp:
- 10/17/21 18:39:50 (3 years ago)
- Branches:
- develop, master
- Children:
- bd9e8e3
- Parents:
- 120759b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
database/migrations/2021_09_27_171107_create_users_table.php
r120759b rd795fa6 22 22 $table->string('password'); 23 23 $table->string('email')->unique(); 24 $table->string(' mobile_number')->unique();24 $table->string('phone_number')->unique(); 25 25 $table->string('avatar')->nullable(); 26 26 $table->integer('role_id')->unsigned(); … … 32 32 $table->integer('security_code')->nullable(); 33 33 $table->string('verify_token')->nullable(); 34 $table->integer("created_by")->unsigned(); 34 35 $table->rememberToken(); 35 36 $table->timestamps(); 37 38 $table->foreign("created_by")->references("id")->on("users")->onDelete("cascade")->onUpdate("cascade"); 36 39 }); 37 40 }
Note:
See TracChangeset
for help on using the changeset viewer.