Commit 10ff7a34 authored by xianyang's avatar xianyang

优化账户模型,添加

parent 4dfe9f3b
......@@ -4,9 +4,11 @@ from pydantic import BaseModel
class AccountCreate(BaseModel):
name: str
remark: str
remark: Optional[str] = None
unique_tag: str
config_key: str
config_key: Optional[str] = None
income: Optional[list] = []
output: Optional[list] = []
class AccountList(BaseModel):
......
......@@ -13,6 +13,7 @@ class Account(Base, SerializerMixin):
name = Column(String(255), index=True, comment="账户名称")
unique_tag = Column(String(100), unique=True, comment="唯一标记")
beneficiary = Column(String(100), comment="受益人")
consumable = Column(String(255), comment="账户余额")
remark = Column(String(255), comment="描述")
uuid = Column(String(60), default=functions.uuid(), comment="uuid")
config_key = Column(String(150), comment="配置key,和api接口约定好的标识")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment