blob: 1caa3c57e999947492646f16789f51b31523b6a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
declare(strict_types=1);
namespace mystic\forum\orm;
use mystic\forum\attributes\DefaultValue;
use mystic\forum\attributes\PrimaryKey;
use mystic\forum\attributes\References;
use mystic\forum\attributes\Table;
#[Table("public.topic_log")]
class TopicLogMessage extends Entity {
public const TITLE_CHANGED = 200;
public const LOCKED = 201;
public const UNLOCKED = 202;
#[PrimaryKey] public string $id;
#[References("public.topics", onDelete: References::CASCADE)] public string $topicId;
public int $type;
public \DateTimeImmutable $postDate;
public array $params;
#[References("public.users", onDelete: References::SET_NULL)] public ?string $authorId;
}
|