fix: update table scheme

This commit is contained in:
Maël Gangloff
2024-07-12 13:16:40 +02:00
parent 975199f328
commit a7c6dfcd13
5 changed files with 203 additions and 7 deletions

View File

@@ -10,6 +10,10 @@ use Doctrine\ORM\Mapping as ORM;
class Event
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(enumType: EventAction::class)]
private ?EventAction $action = null;
@@ -17,6 +21,11 @@ class Event
private ?DateTimeImmutable $date = null;
public function getId(): ?int
{
return $this->id;
}
public function getAction(): ?EventAction
{
return $this->action;