chore: complete update

This commit is contained in:
2025-07-17 16:24:20 +02:00
parent 899227b0a4
commit 64a7051137
1300 changed files with 85570 additions and 2756 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Framework\Database\Attributes;
use Attribute;
#[Attribute(Attribute::TARGET_PROPERTY)]
class Column
{
public function __construct(
public ?string $name = null,
public ?string $type = null,
public bool $primary = false,
public bool $autoIncrement = false,
public bool $nullable = false
) {}
}

View File

@@ -0,0 +1,14 @@
<?php
namespace App\Framework\Database\Attributes;
use Attribute;
#[Attribute(Attribute::TARGET_CLASS)]
class Entity
{
public function __construct(
public ?string $tableName = null,
public string $idColumn = 'id'
) {}
}

View File

@@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
namespace App\Framework\Database\Attributes;
use Attribute;
#[Attribute(Attribute::TARGET_PROPERTY)]
final readonly class Type
{
public function __construct(
public string $targetClass,
public ?string $foreignKey = null,
public ?string $localKey = null,
public string $type = 'hasMany'
) {}
}