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.
2018-10-23 13:37:37 +00:00
|
|
|
from datetime import datetime
|
2018-06-10 16:47:49 +00:00
|
|
|
|
2018-10-23 13:37:37 +00:00
|
|
|
from sqlalchemy import Column
|
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):
|
|
|
|
t = ... # type: str
|
|
|
|
type = ... # type: str
|
|
|
|
updated = ... # type: Column
|
|
|
|
created = ... # type: Column
|
2018-10-23 13:37:37 +00:00
|
|
|
|
|
|
|
def __init__(self, **kwargs) -> None:
|
|
|
|
super().__init__(**kwargs)
|
|
|
|
self.updated = ... # type: datetime
|
|
|
|
self.created = ... # type: datetime
|