add file model
This commit is contained in:
parent
53037d26af
commit
acf701da70
10 changed files with 96 additions and 9 deletions
|
@ -15,12 +15,16 @@ class CreateItemsTable extends Migration
|
|||
{
|
||||
Schema::create('items', function (Blueprint $table) {
|
||||
$table->bigIncrements('iid');
|
||||
$table->unsignedBigInteger('item_uid');
|
||||
$table->string('bezeichnung');
|
||||
$table->string('wann');
|
||||
$table->timestamp('wann');
|
||||
$table->string('wo');
|
||||
$table->unsignedBigInteger('eid');
|
||||
$table->unsignedBigInteger('cid');
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
$table->unique(['eid', 'item_uid']);
|
||||
|
||||
$table->foreign('eid')->references('eid')->on('events');
|
||||
$table->foreign('cid')->references('cid')->on('containers');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue