notification & notes wip
This commit is contained in:
1 parent
94a3c6c472
commit
155177045b
30 files changed
+426
-320
No files matched your search
@@ -26,7 +26,9 @@ return new class extends Migration
|
||||
$table->text('app_authentication_secret')->nullable();
|
||||
$table->text('app_authentication_recovery_codes')->nullable();
|
||||
$table->boolean('has_email_authentication')->default(false);
|
||||
$table->boolean('stars')->default(false);
|
||||
$table->boolean('filter_stars')->default(false);
|
||||
$table->boolean('filter_notes')->default(false);
|
||||
$table->boolean('filter_notification')->default(false);
|
||||
$table->boolean('is_multiline_direct')->default(false);
|
||||
$table->boolean('all_only_none')->default(false);
|
||||
$table->boolean('partner_show')->default(false);
|
||||
|
||||
@@ -15,6 +15,7 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('title');
|
||||
$table->string('fulltitle');
|
||||
$table->boolean(column: 'has_active_spread')->default(0);
|
||||
$table->string('oddnames');
|
||||
$table->string('fieldnames');
|
||||
|
||||
@@ -11,15 +11,16 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('user_notifications', function (Blueprint $table) {
|
||||
Schema::create('event_user_notifications', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('event_id')->index()->constrained()->cascadeOnDelete()->references('id')->on('events');
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->integer('user_id')->index()->references('id')->on('users');
|
||||
$table->integer('odds_table_id')->index()->references('id')->on('odds_tables');
|
||||
$table->integer('alarm_level_id')->default(0);
|
||||
$table->string('message');
|
||||
$table->integer('deleted')->default(0);
|
||||
$table->boolean('notify_by_email')->default(false);
|
||||
$table->boolean('deleted')->default(false);
|
||||
$table->boolean('is_notified')->default(false);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
@@ -29,6 +30,6 @@ return new class extends Migration
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('user_notifications');
|
||||
Schema::dropIfExists('event_user_notifications');
|
||||
}
|
||||
};
|
||||
+5
-3
@@ -11,9 +11,9 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('user_notes', function (Blueprint $table) {
|
||||
Schema::create('event_user_notes', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('event_id')->index()->constrained()->cascadeOnDelete()->references('id')->on('events');
|
||||
$table->foreignId('event_id')->constrained()->cascadeOnDelete();
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->integer('user_id')->index()->references('id')->on('users');
|
||||
$table->integer('client_id')->default(0);
|
||||
@@ -28,6 +28,8 @@ return new class extends Migration
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('user_notes');
|
||||
Schema::dropIfExists('event_user_notes');
|
||||
}
|
||||
};
|
||||
|
||||
// a make:filament-relation-manager CategoryResource posts title
|
||||
Reference in new issue
Block a user