Skip to content

Commit

Permalink
Feat/0.3.0 (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaojin3616 authored Apr 17, 2024
2 parents 2e54fa8 + 7acbb25 commit cf0f68a
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
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(String(length=8096)))
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 cf0f68a

Please sign in to comment.