You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/api/models/base.py

16 lines
289 B
Python

from typing import Annotated
from sqlalchemy.orm import DeclarativeBase
from sqlalchemy.types import String
from models.engine import metadata
str50 = Annotated[str, 50]
class Base(DeclarativeBase):
metadata = metadata
type_annotation_map = {
str50: String(50),
}