Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/database/migrations/2016_09_04_182835_create_notifications_table.php
7460 views
1
<?php
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
class CreateNotificationsTable extends Migration
8
{
9
/**
10
* Run the migrations.
11
*/
12
public function up(): void
13
{
14
Schema::create('notifications', function (Blueprint $table) {
15
$table->string('id')->primary();
16
$table->string('type');
17
$table->morphs('notifiable');
18
$table->text('data');
19
$table->timestamp('read_at')->nullable();
20
$table->timestamps();
21
});
22
}
23
24
/**
25
* Reverse the migrations.
26
*/
27
public function down(): void
28
{
29
Schema::drop('notifications');
30
}
31
}
32
33