Initial commit

This commit is contained in:
Krisztu
2026-02-19 12:55:06 +01:00
commit c887ccb658
65 changed files with 11231 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('polo', function (Blueprint $table) {
$table->unsignedBigInteger("id")->primary();
$table->string("anyag", 40);
$table->enum("polomeret", ["S", "M", "L", "XL", "XXL"]);
$table->integer("ar");
$table->text("cimke");
$table->decimal("atmero", 5, 2);
});
Schema::create('vasarlo', function (Blueprint $table) {
$table->unsignedBigInteger("id")->primary();
$table->string("nev", 100);
$table->enum("meret", ["S", "M", "L", "XL", "XXL"]);
$table->boolean("neme")->nullable();
$table->integer("penz");
$table->string("torzsvasarloSzam")->unique();
$table->foreignId("poloId")->references("id")->on("polo");
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists("vasarlo");
Schema::dropIfExists("polo");
}
};