- implement factories into models

- Model class refactored in relations
This commit is contained in:
Peter Papp
2021-02-26 17:57:21 +01:00
parent 1359b78d21
commit b7e1be7518
16 changed files with 55 additions and 106 deletions

View File

@@ -16,7 +16,7 @@ class CreateFileManagerFolders extends Migration
Schema::create('folders', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->uuid('user_id');
$table->uuid('parent_id');
$table->uuid('parent_id')->nullable();
$table->text('name');
$table->string('color')->nullable();
$table->string('emoji')->nullable();

View File

@@ -16,7 +16,7 @@ class CreateFileManagerFiles extends Migration
Schema::create('files', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->uuid('user_id');
$table->uuid('folder_id');
$table->uuid('folder_id')->nullable();
$table->text('thumbnail')->nullable();
$table->text('name');