summaryrefslogtreecommitdiff
path: root/models/db.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2024-12-05 18:36:05 +0300
committerGrail Finder <wohilas@gmail.com>2024-12-05 18:36:05 +0300
commit990e0695c582c2c8d647c258cde0342ac14e3a75 (patch)
treef773fa8cbd7b86e5cd62517d7d6bb4aebb179bd2 /models/db.go
parentb9a5c681a6620d9cf68e42fc4ec15d860f50ecd1 (diff)
Enha: add agent to chat history; gen-regen diff
Diffstat (limited to 'models/db.go')
-rw-r--r--models/db.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/db.go b/models/db.go
index 4f52f68..1f1c8b4 100644
--- a/models/db.go
+++ b/models/db.go
@@ -9,6 +9,7 @@ type Chat struct {
ID uint32 `db:"id" json:"id"`
Name string `db:"name" json:"name"`
Msgs string `db:"msgs" json:"msgs"` // []RoleMsg to string json
+ Agent string `db:"agent" json:"agent"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}