From 582d9b7e5d0bb743679ab8ab60ce82b8468817bc Mon Sep 17 00:00:00 2001 From: Lupu Gheorghe Date: Mon, 23 Oct 2023 15:25:50 +0300 Subject: [PATCH] parking badges --- app/Enums/BadgeRules.php | 41 +++++++++++++++++++ app/Enums/BadgeType.php | 1 + .../2023_07_04_005236_create_badges_table.php | 1 + ...3_10_23_112317_import_automated_badges.php | 24 +++++++++++ 4 files changed, 67 insertions(+) create mode 100644 app/Enums/BadgeRules.php create mode 100644 database/migrations/2023_10_23_112317_import_automated_badges.php diff --git a/app/Enums/BadgeRules.php b/app/Enums/BadgeRules.php new file mode 100644 index 00000000..2ec014b7 --- /dev/null +++ b/app/Enums/BadgeRules.php @@ -0,0 +1,41 @@ +timestamps(); $table->foreignIdFor(BadgeCategory::class)->constrained()->cascadeOnDelete(); $table->string('title'); + $table->string('rule')->nullable(); $table->string('type')->default(BadgeType::MANUAL->value); $table->text('description')->nullable(); }); diff --git a/database/migrations/2023_10_23_112317_import_automated_badges.php b/database/migrations/2023_10_23_112317_import_automated_badges.php new file mode 100644 index 00000000..6f90ed01 --- /dev/null +++ b/database/migrations/2023_10_23_112317_import_automated_badges.php @@ -0,0 +1,24 @@ +