Document begin

This commit is contained in:
Александр Бабкин
2022-07-01 12:11:15 +03:00
parent b82bf121cf
commit 0b666ae79a
7 changed files with 47 additions and 95 deletions

View File

@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDocStructureModelsTable extends Migration
class CreateDocumentsTable extends Migration
{
/**
* Run the migrations.
@@ -13,10 +13,10 @@ class CreateDocStructureModelsTable extends Migration
*/
public function up()
{
Schema::create('doc_structure_models', function (Blueprint $table) {
Schema::create('documents', function (Blueprint $table) {
$table->id();
$table->integer('project_id')->unsigned();
$table->string('category');
$table->string('name');
$table->integer('parent_id')->unsigned()->nullable();
$table->timestamps();
$table->softDeletes();