Coverage for bc/kwai-bc-training/src/kwai_bc_training/coaches/_tables.py: 100%
11 statements
« prev ^ index » next coverage.py v7.11.0, created at 2024-01-01 00:00 +0000
« prev ^ index » next coverage.py v7.11.0, created at 2024-01-01 00:00 +0000
1"""Module that defines all dataclasses for the tables containing coaches."""
3from dataclasses import dataclass
5from kwai_core.db.table_row import TableRow
8@dataclass(kw_only=True, frozen=True, slots=True)
9class MemberRow(TableRow):
10 """Represent a row of the members table."""
12 __table_name__ = "judo_members"
14 id: int
15 uuid: str
18@dataclass(kw_only=True, frozen=True, slots=True)
19class PersonRow(TableRow):
20 """Represent a row of the persons table."""
22 __table_name__ = "persons"
24 id: int
25 lastname: str
26 firstname: str
29@dataclass(kw_only=True, frozen=True, slots=True)
30class CoachRow(TableRow):
31 """Represent a row of the coaches table."""
33 __table_name__ = "coaches"
35 id: int
36 member_id: int
37 active: int