Coverage for packages/clopos/src/integrify/clopos/schemas/users/object.py: 100%
41 statements
« prev ^ index » next coverage.py v7.16.0, created at 2026-10-19 02:39 +0000
« prev ^ index » next coverage.py v7.16.0, created at 2026-10-19 02:39 +0000
1from integrify.clopos.schemas.common.object import Timestamp
2from integrify.utils import UnsetOrNoneField
5class User(Timestamp):
6 id: int
7 """Unique user identifier"""
9 email: UnsetOrNoneField[str]
10 """Email address associated with the user"""
12 username: str
13 """Display name shown in the POS"""
15 first_name: UnsetOrNoneField[str]
16 """First name of the user"""
18 last_name: UnsetOrNoneField[str]
19 """last name of the user"""
21 pin: str
22 """POS PIN code"""
24 card: UnsetOrNoneField[str]
25 """POS card number"""
27 mobile_number: UnsetOrNoneField[str]
28 """Mobile number of the user"""
30 owner: int
31 """1 if the user owns the brand, otherwise 0"""
33 hide: int
34 """1 if hidden from POS selection, otherwise 0"""
36 salary: UnsetOrNoneField[int]
37 """Salary of the user"""
39 barcode: UnsetOrNoneField[str]
40 """POS barcode number"""
42 tip_message: UnsetOrNoneField[str]
43 """Tip message shown in the POS"""
45 can_receive_tips: UnsetOrNoneField[bool]
46 """Whether the user can receive tips or not"""
48 login_at: UnsetOrNoneField[str]
49 """Timestamp when the user logged in"""
51 status: bool
52 """Indicates whether the user account is active"""
54 bonus_balance_id: UnsetOrNoneField[int]
55 """Balance ID of the user"""
57 properties: UnsetOrNoneField[dict | list]
58 """User properties"""
60 image: UnsetOrNoneField[list[str]]
61 """User images"""