-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from LavaLite/master
Update user modules
- Loading branch information
Showing
14 changed files
with
213 additions
and
71 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
src/Litepie/Notification/Database/Seeders/NotificationTableSeeder.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Litepie\Notification\Database\Seeders; | ||
|
||
use Illuminate\Database\Seeder; | ||
|
||
class NotificationTableSeeder extends Seeder | ||
{ | ||
public function run() | ||
{ | ||
|
||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...otification/Database/migrations/2023_03_29_100001_create_notification_templates_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
class CreateNotificationTemplatesTable extends Migration | ||
{ | ||
/* | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
|
||
public function up() | ||
{ | ||
|
||
/* | ||
* Table: notifications | ||
*/ | ||
Schema::create('notification_templates', function ($table) { | ||
$table->id(); | ||
$table->string('key', 250)->nullable(); | ||
$table->string('language', 3)->default('en')->nullable(); | ||
$table->string('subject', 100)->nullable(); | ||
$table->text('message')->nullable(); | ||
$table->softDeletes(); | ||
$table->nullableTimestamps(); | ||
}); | ||
} | ||
|
||
/* | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
|
||
public function down() | ||
{ | ||
Schema::drop('notification_templates'); | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...Litepie/Notification/Database/migrations/2023_03_29_100001_create_notifications_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Support\Facades\Schema; | ||
use Illuminate\Database\Schema\Blueprint; | ||
|
||
class CreateNotificationsTable extends Migration | ||
{ | ||
/* | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
|
||
public function up() | ||
{ | ||
|
||
/* | ||
* Table: notifications | ||
*/ | ||
Schema::create('notifications', function ($table) { | ||
$table->string('id', 50); | ||
$table->string('type', 250)->nullable(); | ||
$table->string('type_sub', 20)->nullable(); | ||
$table->integer('notifiable_id')->nullable(); | ||
$table->string('notifiable_type', 250)->nullable(); | ||
$table->text('data')->nullable(); | ||
$table->text('message')->nullable(); | ||
$table->text('actions')->nullable(); | ||
$table->string('variant', 20)->nullable(); | ||
$table->tinyInteger('pinned')->nullable(); | ||
$table->dateTime('read_at')->nullable(); | ||
$table->softDeletes(); | ||
$table->nullableTimestamps(); | ||
}); | ||
} | ||
|
||
/* | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
|
||
public function down() | ||
{ | ||
Schema::drop('notifications'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.