fix: Text's created_at type

This commit is contained in:
Siwoo Jeon 2025-03-23 15:59:10 +09:00
parent 67701e89a4
commit f77d0b987d
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA

View file

@ -1,8 +1,6 @@
package databases package databases
import ( import (
"time"
"go.mongodb.org/mongo-driver/v2/bson" "go.mongodb.org/mongo-driver/v2/bson"
"go.mongodb.org/mongo-driver/v2/mongo" "go.mongodb.org/mongo-driver/v2/mongo"
) )
@ -11,7 +9,7 @@ type Text struct {
Id bson.ObjectID `bson:"_id"` Id bson.ObjectID `bson:"_id"`
Text string Text string
Persona string Persona string
CreatedAt time.Time `bson:"created_at"` CreatedAt bson.DateTime `bson:"created_at"`
} }
var Texts *mongo.Collection = Client.Database("muffin_ai_test").Collection("text") var Texts *mongo.Collection = Client.Database("muffin_ai_test").Collection("text")