Coverage for toardb/auth_user/schemas.py: 100%

15 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2025-11-03 20:32 +0000

1# SPDX-FileCopyrightText: 2021 Forschungszentrum Jülich GmbH 

2# SPDX-License-Identifier: MIT 

3 

4""" 

5Pydantic schemas for TOAR database 

6""" 

7 

8from pydantic import BaseModel 

9import datetime as dt 

10 

11 

12class AuthUserBase(BaseModel): 

13 id: int = None 

14 username: str 

15 email: str 

16 eduperson_unique_id: str 

17 num_timeseries: int 

18 num_gridded: int 

19 

20 

21class AuthUserCreate(AuthUserBase): 

22 pass 

23 

24 

25class AuthUser(AuthUserBase): 

26 id: int 

27 

28 class Config: 

29 orm_mode = True 

30