attachment class
This commit is contained in:
1 parent
335eb8c4ac
commit
a69b15a3e8
5 files changed
+144
-79
No files matched your search
+10
-2
@@ -1,3 +1,11 @@
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
from typing import Any
|
||||
|
||||
Base = declarative_base()
|
||||
from sqlalchemy.orm import DeclarativeBase
|
||||
from sqlalchemy.orm import MappedAsDataclass
|
||||
from sqlalchemy.types import JSON
|
||||
|
||||
class Base(DeclarativeBase, MappedAsDataclass):
|
||||
type_annotation_map = {
|
||||
dict[str, Any]: JSON,
|
||||
list[str]: JSON,
|
||||
}
|
||||
Reference in new issue
Block a user