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
|
||||
@@ -12,22 +12,22 @@ class OddsTableSeeder extends Seeder
|
||||
/**
|
||||
* Provoider
|
||||
*/
|
||||
$sql = "INSERT INTO `odds_tables` (`id`, `name`, `title`, `oddnames`, `fieldnames`, `has_active_spread`, `soccer`, `icehockey`, `basketball`, `tennis`, `created_at`, `updated_at`)
|
||||
$sql = "INSERT INTO `odds_tables` (`id`, `name`, `title`, `fulltitle`, `has_active_spread`, `oddnames`, `fieldnames`, `soccer`, `icehockey`, `basketball`, `tennis`, `created_at`, `updated_at`)
|
||||
VALUES
|
||||
(1, 'odds_2ways', 'ML', 'h2w,a2w', 'alarm_2w_h2w,alarm_2w_a2w', 0, 0, 1, 1, 1, NULL, NULL),
|
||||
(2, 'odds_2ways_s1', 'ML S1', 'h2w,a2w', 'alarm_2ws1_h2w,alarm_2ws1_a2w', 0, 0, 0, 0, 1, NULL, NULL),
|
||||
(3, 'odds_3ways', '1X2', 'h3w,d3w,a3w', 'alarm_3w_h3w,alarm_3w_d3w,alarm_3w_a3w', 0, 1, 1, 0, 0, NULL, NULL),
|
||||
(4, 'odds_3ways_ht', '1X2 HT', 'h3w,d3w,a3w', 'alarm_3wht_h3w,alarm_3wht_d3w,alarm_3wht_a3w', 0, 1, 0, 0, 0, NULL, NULL),
|
||||
(5, 'odds_dc', 'DC', 'dc1x,dc12,dcx2', 'alarm_dc_dc1x,alarm_dc_dc12,alarm_dc_dcx2', 0, 1, 0, 0, 0, NULL, NULL),
|
||||
(6, 'odds_dnb', 'DNB', 'dnb1,dnb2', 'alarm_dbn_dnb1,alarm_dbn_dnb2', 0, 1, 0, 0, 0, NULL, NULL),
|
||||
(7, 'odds_ggng', 'GGNG', 'gg,ng', 'alarm_ggng_gg,alarm_ggng_ng', 0, 1, 0, 0, 0, NULL, NULL),
|
||||
(8, 'odds_points', 'PO', 'home,away', 'alarm_po_home,alarm_po_away', 1, 0, 1, 1, 1, NULL, NULL),
|
||||
(9, 'odds_points_ht', 'PO HT', 'home,away', 'alarm_poht_home,alarm_poht_away', 1, 0, 0, 1, 0, NULL, NULL),
|
||||
(10, 'odds_points_q1', 'PO Q1', 'home,away', 'alarm_poq1_home,alarm_poq1_away', 1, 0, 1, 1, 0, NULL, NULL),
|
||||
(11, 'odds_totals', 'TO', 'over,under', 'alarm_to_over,alarm_to_under', 1, 1, 1, 1, 1, NULL, NULL),
|
||||
(12, 'odds_totals_ht', 'TO HT', 'over,under', 'alarm_toht_over,alarm_toht_under', 1, 1, 0, 1, 0, NULL, NULL),
|
||||
(13, 'odds_totals_q1', 'TO Q1', 'over,under', 'alarm_toq1_over,alarm_toq1_under', 1, 0, 1, 1, 0, NULL, NULL),
|
||||
(14, 'odds_tq', 'TQ', 'htq,atq', 'alarm_tq_htq,alarm_tq_atq', 1, 1, 0, 0, 0, NULL, NULL);
|
||||
(1, 'odds_2ways', 'ML', 'Money Line', 0, 'h2w,a2w', 'alarm_2w_h2w,alarm_2w_a2w', 0, 1, 1, 1, NULL, NULL),
|
||||
(2, 'odds_2ways_s1', 'ML S1', 'Money Line Set1', 0, 'h2w,a2w', 'alarm_2ws1_h2w,alarm_2ws1_a2w', 0, 0, 0, 1, NULL, NULL),
|
||||
(3, 'odds_3ways', '1X2', '1X2', 0, 'h3w,d3w,a3w', 'alarm_3w_h3w,alarm_3w_d3w,alarm_3w_a3w', 1, 1, 0, 0, NULL, NULL),
|
||||
(4, 'odds_3ways_ht', '1X2 HT', '1X2 Halftime', 0, 'h3w,d3w,a3w', 'alarm_3wht_h3w,alarm_3wht_d3w,alarm_3wht_a3w', 1, 0, 0, 0, NULL, NULL),
|
||||
(5, 'odds_dc', 'DC', 'Double Chance', 0, 'dc1x,dc12,dcx2', 'alarm_dc_dc1x,alarm_dc_dc12,alarm_dc_dcx2', 1, 0, 0, 0, NULL, NULL),
|
||||
(6, 'odds_dnb', 'DNB', 'Draw no bet', 0, 'dnb1,dnb2', 'alarm_dbn_dnb1,alarm_dbn_dnb2', 1, 0, 0, 0, NULL, NULL),
|
||||
(7, 'odds_ggng', 'GGNG', 'Goal No Goal', 0, 'gg,ng', 'alarm_ggng_gg,alarm_ggng_ng', 1, 0, 0, 0, NULL, NULL),
|
||||
(8, 'odds_points', 'PO', 'Points', 1, 'home,away', 'alarm_po_home,alarm_po_away', 0, 1, 1, 1, NULL, NULL),
|
||||
(9, 'odds_points_ht', 'PO HT', 'Points Halftime', 1, 'home,away', 'alarm_poht_home,alarm_poht_away', 0, 0, 1, 0, NULL, NULL),
|
||||
(10, 'odds_points_q1', 'PO Q1', 'Points First Quarter', 1, 'home,away', 'alarm_poq1_home,alarm_poq1_away', 0, 1, 1, 0, NULL, NULL),
|
||||
(11, 'odds_totals', 'TO', 'Totals', 1, 'over,under', 'alarm_to_over,alarm_to_under', 1, 1, 1, 1, NULL, NULL),
|
||||
(12, 'odds_totals_ht', 'TO HT', 'Totals Halftime', 1, 'over,under', 'alarm_toht_over,alarm_toht_under', 1, 0, 1, 0, NULL, NULL),
|
||||
(13, 'odds_totals_q1', 'TO Q1', 'Totals First Quarter', 1, 'over,under', 'alarm_toq1_over,alarm_toq1_under', 0, 1, 1, 0, NULL, NULL),
|
||||
(14, 'odds_tq', 'TQ', 'To Qualify', 1, 'htq,atq', 'alarm_tq_htq,alarm_tq_atq', 1, 0, 0, 0, NULL, NULL);
|
||||
";
|
||||
DB::unprepared($sql);
|
||||
|
||||
|
||||
@@ -11,11 +11,11 @@ class SportSeeder extends Seeder
|
||||
{
|
||||
$sql = "INSERT INTO `sports` (`id`, `name`, `code`, `icon`, `color`, `bapi`, `bwin`, `b365`, `logi`, `magl`, `is_active`, `created_at`, `updated_at`)
|
||||
VALUES
|
||||
(1, 'Soccer', 'so', 'icon-soccerball', 'primary', 1, 4, 1, 1, 1, 1, NULL, NULL),
|
||||
(1, 'Soccer', 'so', 'icon-soccerball', 'info', 1, 4, 1, 1, 1, 1, NULL, NULL),
|
||||
(2, 'Ice Hockey', 'ic', 'icon-icehockey', 'black', 17, 12, 17, 4, 19, 1, NULL, NULL),
|
||||
(3, 'Basketball', 'ba', 'icon-basketball', 'warning', 18, 7, 18, 2, 2, 1, NULL, NULL),
|
||||
(3, 'Basketball', 'ba', 'icon-basketball', 'danger', 18, 7, 18, 2, 2, 1, NULL, NULL),
|
||||
(4, 'Rugby', 'rg', 'icon-rugby', NULL, 8, 32, 8, 12, 22, 0, NULL, NULL),
|
||||
(5, 'Tennis', 'te', 'icon-tennisball', 'gray', 13, 5, 13, 5, 15, 1, NULL, NULL),
|
||||
(5, 'Tennis', 'te', 'icon-tennisball', 'warning', 13, 5, 13, 5, 15, 1, NULL, NULL),
|
||||
(6, 'American Football', 'af', 'icon-amercanfootball', NULL, 12, 11, 12, 70, 25, 0, NULL, NULL),
|
||||
(7, 'Baseball', 'bs', 'icon-baseball', NULL, 16, 23, 16, 3, 3, 0, NULL, NULL),
|
||||
(8, 'Handball', 'ha', 'icon-handball', NULL, 78, 16, 78, 6, 20, 0, NULL, NULL),
|
||||
|
||||
Reference in new issue
Block a user