Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
36990a05
Commit
36990a05
authored
Mar 30, 2026
by
erio
Browse files
fix: revert ent schema change to fix runtime panic
parent
ebac0dc6
Changes
1
Show whitespace changes
Inline
Side-by-side
backend/ent/schema/usage_log.go
View file @
36990a05
...
@@ -53,9 +53,6 @@ func (UsageLog) Fields() []ent.Field {
...
@@ -53,9 +53,6 @@ func (UsageLog) Fields() []ent.Field {
MaxLen
(
100
)
.
MaxLen
(
100
)
.
Optional
()
.
Optional
()
.
Nillable
(),
Nillable
(),
field
.
Int64
(
"channel_id"
)
.
Optional
()
.
Nillable
()
.
Comment
(
"渠道 ID"
),
field
.
String
(
"model_mapping_chain"
)
.
MaxLen
(
500
)
.
Optional
()
.
Nillable
()
.
Comment
(
"模型映射链"
),
field
.
String
(
"billing_tier"
)
.
MaxLen
(
50
)
.
Optional
()
.
Nillable
()
.
Comment
(
"计费层级标签"
),
field
.
Int64
(
"group_id"
)
.
field
.
Int64
(
"group_id"
)
.
Optional
()
.
Optional
()
.
Nillable
(),
Nillable
(),
...
...
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