mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 19:11:07 +03:30
Structor CSSD
This commit is contained in:
@@ -15,8 +15,8 @@ class CreateTestTypesTable extends Migration
|
||||
{
|
||||
Schema::create('test_types', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('name');
|
||||
$table->integer('unique_code');
|
||||
$table->string('name')->unique();
|
||||
$table->string('unique_code')->unique();
|
||||
$table->unsignedBigInteger('user_id');
|
||||
$table->foreign('user_id')->references('id')->on('users');
|
||||
$table->timestamps();
|
||||
|
||||
Reference in New Issue
Block a user