mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
- implement factories into models
- Model class refactored in relations
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user