feat: Lernapp mit Mathe/Deutsch/Englisch, Münzsystem und Belohnungen

This commit is contained in:
root
2026-05-05 14:41:09 +00:00
parent 21e40cd2da
commit bd1640994c
45 changed files with 1522 additions and 58 deletions
@@ -0,0 +1,19 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up(): void {
Schema::create('questions', function (Blueprint $table) {
$table->id();
$table->foreignId('subject_id')->constrained()->onDelete('cascade');
$table->text('question_text');
$table->enum('type', ['multiple_choice', 'number_input'])->default('multiple_choice');
$table->unsignedTinyInteger('difficulty')->default(1);
$table->unsignedTinyInteger('points_value')->default(5);
$table->boolean('active')->default(true);
$table->timestamps();
});
}
public function down(): void { Schema::dropIfExists('questions'); }
};