id(); $table->foreignId('company_id')->constrained('companies')->onDelete('cascade'); $table->integer('tag_id')->nullable(); $table->string('name')->nullable(); $table->string('from')->nullable(); $table->string('to')->nullable(); $table->string('subject_contains')->nullable(); $table->string('text_contains')->nullable(); $table->string('subject1_contains')->nullable(); $table->string('assign_to')->nullable(); $table->string('message_to_assigned_editor')->nullable(); $table->string('all_emails_automatically_mark_as_spam')->nullable(); $table->string('status'); $table->string('priority'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('rules'); } };