project continue

This commit is contained in:
Александр Бабкин
2022-06-27 20:39:35 +03:00
parent 34f6fa7733
commit e8e132051a
7 changed files with 128 additions and 133 deletions

View File

@@ -15,7 +15,7 @@ class CreateUsersTable extends Migration
{
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('username');
$table->string('username')->unique();
$table->string('name');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();

View File

@@ -15,8 +15,9 @@ class CreateProjectsTable extends Migration
{
Schema::create('projects', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('name')->unique();
$table->string('description');
$table->string('mmc_path');
$table->timestamps();
$table->softDeletes();
});

View File

@@ -15,6 +15,7 @@ class CreateDocStructureModelsTable extends Migration
{
Schema::create('doc_structure_models', function (Blueprint $table) {
$table->id();
$table->integer('project_id')->unsigned();
$table->string('category');
$table->integer('parent_id')->unsigned()->nullable();
$table->timestamps();