From f36db717bba261c354a082d19b4b4ecac48e5db0 Mon Sep 17 00:00:00 2001 From: Malebestia Date: Mon, 4 Sep 2023 13:16:28 +0200 Subject: [PATCH] rebase --- ...022_10_12_133532_create_contacts_table.php | 29 +++++++++++++++++++ Models/Contact.php | 5 ++++ 2 files changed, 34 insertions(+) create mode 100755 Database/Migrations/2022_10_12_133532_create_contacts_table.php diff --git a/Database/Migrations/2022_10_12_133532_create_contacts_table.php b/Database/Migrations/2022_10_12_133532_create_contacts_table.php new file mode 100755 index 00000000..b60994cb --- /dev/null +++ b/Database/Migrations/2022_10_12_133532_create_contacts_table.php @@ -0,0 +1,29 @@ +tableCreate( + function (Blueprint $table) { + $table->uuid('id')->primary(); + $table->morphs('model'); + $table->string('contact_type')->nullable(); + $table->string('value')->nullable(); + $table->timestamp('verified_at')->nullable(); + $table->timestamps(); + $table->string('updated_by')->nullable()->after('updated_at'); + $table->string('created_by')->nullable()->after('created_at'); + } + ); + } +} diff --git a/Models/Contact.php b/Models/Contact.php index 54d1fb94..14febd08 100755 --- a/Models/Contact.php +++ b/Models/Contact.php @@ -4,6 +4,7 @@ namespace Modules\Notify\Models; +<<<<<<< HEAD /** * Modules\Notify\Models\Contact. * @@ -123,4 +124,8 @@ class Contact extends BaseModel 'model_id' => 'string', 'user_id' => 'string', ]; +======= +class Contact extends BaseModel { + protected $fillable = ['model_id', 'model_type', 'contact_type', 'value', 'verified_at', 'updated_at', 'created_at', 'updated_by', 'created_by']; +>>>>>>> bd28543 (up) }