Skip to content

Commit

Permalink
fix:config表的value修改数据类型
Browse files Browse the repository at this point in the history
  • Loading branch information
zgqgit committed Apr 17, 2024
1 parent 1a463b1 commit 7acbb25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/bisheng/database/models/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
from typing import Optional

from bisheng.database.models.base import SQLModelSerializable
from sqlalchemy import Column, DateTime, String, text, TEXT
from sqlalchemy import Column, DateTime, String, text, Text
from sqlmodel import Field


class ConfigBase(SQLModelSerializable):
key: str = Field(index=True, unique=True)
value: str = Field(sa_column=Column(TEXT))
value: str = Field(sa_column=Column(Text))
comment: Optional[str] = Field(index=False)
create_time: Optional[datetime] = Field(sa_column=Column(
DateTime, nullable=False, index=True, server_default=text('CURRENT_TIMESTAMP')))
Expand Down

0 comments on commit 7acbb25

Please sign in to comment.