Structor CSSD

This commit is contained in:
saeid
2019-04-25 20:14:09 +04:30
parent fc162db99b
commit 14a91bdef7
72 changed files with 6957 additions and 4636 deletions
@@ -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();