Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
financial-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xianyang
financial-system
Commits
10ff7a34
Commit
10ff7a34
authored
Feb 21, 2023
by
xianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化账户模型,添加
parent
4dfe9f3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
schemas.py
app/api/account/schemas.py
+4
-2
account.py
models/account.py
+1
-0
No files found.
app/api/account/schemas.py
View file @
10ff7a34
...
...
@@ -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
):
...
...
models/account.py
View file @
10ff7a34
...
...
@@ -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接口约定好的标识"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment