Added almost all features except language, ads, seo, pages

This commit is contained in:
Gitea
2025-04-27 06:28:15 +05:30
parent 89f6410578
commit 94eb01b1ab
43 changed files with 1842 additions and 188 deletions

View File

@@ -0,0 +1,44 @@
<?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('emails', function (Blueprint $table) {
$table->id();
$table->string('message_id')->unique()->index();
$table->string('subject')->nullable();
$table->string('from_name')->nullable();
$table->string('from_email');
$table->text('to');
$table->text('cc')->nullable();
$table->text('bcc')->nullable();
$table->dateTime('timestamp')->nullable();
$table->longText('body_text')->nullable();
$table->longText('body_html')->nullable();
$table->boolean('is_seen')->default(false);
$table->boolean('is_flagged')->default(false);
$table->unsignedBigInteger('size')->nullable();
$table->string('mailbox')->default('INBOX');
$table->longText('raw_headers')->nullable();
$table->longText('raw_body')->nullable();
$table->json('attachments')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('emails');
}
};