mirror of
https://github.com/langgenius/dify.git
synced 2025-11-08 15:31:02 +00:00
16 lines
313 B
Python
16 lines
313 B
Python
from sqlalchemy.orm import DeclarativeBase, MappedAsDataclass
|
|
|
|
from models.engine import metadata
|
|
|
|
|
|
class Base(DeclarativeBase):
|
|
metadata = metadata
|
|
|
|
|
|
class TypeBase(MappedAsDataclass, DeclarativeBase):
|
|
"""
|
|
This is for adding type, after all finished, rename to Base.
|
|
"""
|
|
|
|
metadata = metadata
|