- WIP on relations, constrains and foreign keys

This commit is contained in:
mcndave committed 2023-07-14 19:57:29 -04:00
1 parent 01ab6e82d4
commit d01624b8aa
8 files changed
+90 -30

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
<?php
namespace Ulmus\Attribute\Obj;
use Ulmus\Attribute\IndexTypeEnum;
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)]
class Index {
public function __construct(
public string|array $column,
public IndexTypeEnum $type = IndexTypeEnum::Unique,
public null|string $name = null,
) {}
}