Conditions | 1 |
Paths | 1 |
Total Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create(config('email-log.table_name'), function (Blueprint $table) { |
||
17 | $table->bigIncrements('id'); |
||
18 | |||
19 | $table->string('from'); |
||
20 | $table->string('to'); |
||
21 | $table->string('subject'); |
||
22 | $table->text('body'); |
||
23 | |||
24 | $table->string('provider')->nullable(); |
||
25 | $table->string('provider_email_id')->nullable(); |
||
26 | |||
27 | $table->unsignedBigInteger('recipient_id')->nullable(); |
||
28 | $table->string('recipient_type')->nullable(); |
||
29 | |||
30 | $table->timestamp('delivered_at')->nullable(); |
||
31 | $table->timestamp('failed_at')->nullable(); |
||
32 | $table->timestamp('opened_at')->nullable(); |
||
33 | $table->timestamp('clicked_at')->nullable(); |
||
34 | $table->timestamps(); |
||
35 | |||
36 | $table->index(['recipient_id', 'recipient_type'], 'recipient'); |
||
37 | $table->index(['provider', 'provider_email_id'], 'provider_email_id'); |
||
38 | }); |
||
39 | } |
||
40 | |||
51 |