Changeset ff9da8b for database/migrations
- Timestamp:
- 02/26/21 18:14:28 (4 years ago)
- Branches:
- master
- Children:
- 7ed1069
- Parents:
- f457265
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
database/migrations/2019_10_12_000000_create_users_table.php
rf457265 rff9da8b 25 25 $table->string('mobile_number')->unique(); 26 26 $table->integer('company_id')->unsigned()->nullable(); 27 $table->foreign("company_id")->references("id")->on("companies") ;27 $table->foreign("company_id")->references("id")->on("companies")->onDelete("cascade"); 28 28 $table->integer('role_id')->unsigned(); 29 29 $table->foreign("role_id")->references("id")->on("roles");
Note:
See TracChangeset
for help on using the changeset viewer.