Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
55573356
authored
Oct 02, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: sync database indices with pro version
parent
445d6126
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
model/log.go
+5
-5
No files found.
model/log.go
View file @
55573356
...
@@ -8,14 +8,14 @@ import (
...
@@ -8,14 +8,14 @@ import (
)
)
type
Log
struct
{
type
Log
struct
{
Id
int
`json:"id"`
Id
int
`json:"id
;index:idx_created_at_id,priority:1
"`
UserId
int
`json:"user_id" gorm:"index"`
UserId
int
`json:"user_id" gorm:"index"`
CreatedAt
int64
`json:"created_at" gorm:"bigint;index"`
CreatedAt
int64
`json:"created_at" gorm:"bigint;index
:idx_created_at_id,priority:2;index:idx_created_at_type
"`
Type
int
`json:"type" gorm:"index"`
Type
int
`json:"type" gorm:"index
:idx_created_at_type
"`
Content
string
`json:"content"`
Content
string
`json:"content"`
Username
string
`json:"username" gorm:"index;default:''"`
Username
string
`json:"username" gorm:"index
:index_username_model_name,priority:2
;default:''"`
TokenName
string
`json:"token_name" gorm:"index;default:''"`
TokenName
string
`json:"token_name" gorm:"index;default:''"`
ModelName
string
`json:"model_name" gorm:"index;default:''"`
ModelName
string
`json:"model_name" gorm:"index;
index:index_username_model_name,priority:1;
default:''"`
Quota
int
`json:"quota" gorm:"default:0"`
Quota
int
`json:"quota" gorm:"default:0"`
PromptTokens
int
`json:"prompt_tokens" gorm:"default:0"`
PromptTokens
int
`json:"prompt_tokens" gorm:"default:0"`
CompletionTokens
int
`json:"completion_tokens" gorm:"default:0"`
CompletionTokens
int
`json:"completion_tokens" gorm:"default:0"`
...
...
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