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 @@ +