PATH:
home
/
lab2454c
/
costbloc.com
/
Modules
/
FormBuilder
/
Database
/
Migrations
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateFormsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::dropIfExists('forms'); Schema::create('forms', function (Blueprint $table) { $table->increments('id'); $table->bigInteger('user_id')->nullable(); $table->string('name'); $table->string('visibility'); $table->boolean('allows_edit')->default(false); $table->string('type'); $table->string('identifier')->unique(); $table->text('form_builder_json')->nullable(); $table->string('custom_submit_url')->nullable(); $table->softDeletes(); $table->timestamps(); $table->foreign('user_id')->references('id')->on('users')->onDelete('CASCADE'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('forms'); } }
[+]
..
[-] 2022_03_21_095426_create_forms_table.php
[edit]
[-] 2022_03_21_095438_create_form_submission_table.php
[edit]