12 lines
284 B
Python
12 lines
284 B
Python
from typing import Any
|
|
|
|
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,
|
|
}
|