Config is not properly working with .env file as of now Cost Centre is mostly working, going to work on Accounts now
37 lines
539 B
Python
37 lines
539 B
Python
import uuid
|
|
from datetime import datetime
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class Client(BaseModel):
|
|
id_: uuid.UUID
|
|
code: int
|
|
name: str
|
|
enabled: bool
|
|
otp: int
|
|
creation_date: datetime
|
|
|
|
|
|
class User(BaseModel):
|
|
id_: uuid.UUID
|
|
name: str
|
|
password: str
|
|
locked_out: bool
|
|
|
|
|
|
class LoginHistory(BaseModel):
|
|
id_: uuid.UUID
|
|
user_id: uuid.UUID
|
|
client_id: uuid.UUID
|
|
date: datetime
|
|
|
|
|
|
class Group(BaseModel):
|
|
id_: uuid.UUID
|
|
name: str
|
|
|
|
|
|
class Role(BaseModel):
|
|
id_: uuid.UUID
|
|
name: str
|