Ignore:
Timestamp:
10/19/21 17:46:21 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
6b95845
Parents:
b9c4a92
Message:

added files crud in table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • database/migrations/2021_10_10_103309_create_files_table.php

    rb9c4a92 rea7b12a  
    1616        Schema::create('files', function (Blueprint $table) {
    1717            $table->bigIncrements('id');
    18             $table->bigInteger('document_id')->unsigned()->nullable();
    19             $table->string("link");
     18            $table->bigInteger('document_id')->unsigned();
     19            $table->string("name");
     20            $table->string("location");
    2021            $table->foreign("document_id")->references("id")->on("documents");
    2122            $table->timestamps();
Note: See TracChangeset for help on using the changeset viewer.