JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "2020_09_11_190640_create_webmails_table.php"

Full Path: /var/www/lionsclub/core/database/migrations/2020_09_11_190640_create_webmails_table.php
File size: 1.49 KB
MIME-type: text/x-php
Charset: utf-8

<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateWebmailsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('webmails', function (Blueprint $table) {
            $table->id();
            $table->integer('cat_id')->default("0");
            $table->integer('group_id')->nullable();
            $table->integer('contact_id')->nullable();
            $table->integer('father_id')->nullable();
            $table->string('title')->nullable();
            $table->longText('details')->nullable();
            $table->dateTime('date');
            $table->string('from_email')->nullable();
            $table->string('from_name')->nullable();
            $table->string('from_phone')->nullable();
            $table->string('to_email')->nullable();
            $table->string('to_name')->nullable();
            $table->string('to_cc')->nullable();
            $table->string('to_bcc')->nullable();
            $table->tinyInteger('status')->default("0");
            $table->tinyInteger('flag')->default("0");
            $table->integer('created_by')->nullable();
            $table->integer('updated_by')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('webmails');
    }
}