1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- return new class extends Migration
- {
- /**
- * Run the migrations.
- */
- public function up(): void
- {
- Schema::create('approval_flows', function (Blueprint $table) {
- $table->id();
- $table->string("name", 50);
- $table->integer("company_id");
- $table->string("object_type", 20);
- $table->integer("object_id");
- $table->json("nodes");
- $table->boolean("status")->default(true);
- $table->integer("created_by")->nullable();
- $table->softDeletes();
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- */
- public function down(): void
- {
- Schema::dropIfExists('approval_flows');
- }
- };
|