blob: 6934685049efde4e417ac52fea7580fc6134610a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?php
namespace mystic\forum\orm;
use mystic\forum\attributes\PrimaryKey;
use mystic\forum\attributes\References;
use mystic\forum\attributes\Table;
#[Table("public.subscriptions")]
class Subscription extends Entity {
#[PrimaryKey] public string $id;
#[References("public.topics", onDelete: References::CASCADE)] public string $topicId;
#[References("public.users", onDelete: References::CASCADE)] public string $userId;
}
|