This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
devicehub-teal/ereuse_devicehub/resources/models.pyi

23 lines
509 B
Python
Raw Normal View History

from datetime import datetime
2018-06-10 16:47:49 +00:00
from sqlalchemy import Column, Table
2018-06-10 16:47:49 +00:00
from teal.db import Model
STR_SIZE = 64
STR_BIG_SIZE = 128
STR_SM_SIZE = 32
STR_XSM_SIZE = 16
class Thing(Model):
__table__ = ... # type: Table
2018-06-10 16:47:49 +00:00
t = ... # type: str
type = ... # type: str
updated = ... # type: Column
created = ... # type: Column
def __init__(self, **kwargs) -> None:
super().__init__(**kwargs)
self.updated = ... # type: datetime
self.created = ... # type: datetime