package
Version:
v0.0.0-...-075f35d
Opens a new window with list of versions in this module.
Published: Aug 6, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Data map[string]interface{}
type Document struct {
ID primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
Filename string `json:"filename,omitempty" bson:"filename,omitempty"`
FileData []Data `json:"data,omitempty" bson:"data,omitempty"`
}
type FileData struct {
FileName string `json:"fileName"`
}
type Notes struct {
ID primitive.ObjectID `gorm:"column:id;primaryKey" json:"NotesID" bson:"_id,omitempty"`
Date string `json:"date"`
Description string `json:"description"`
Analysis string `json:"analysis"`
}
type QueryResp struct {
Response string `json:"response"`
}
type Transaction struct {
ID primitive.ObjectID `gorm:"column:id;primaryKey" json:"transactionID" bson:"_id,omitempty"`
PartitionType string `json:"partition_type"`
ShardingKey string `json:"sharding_key"`
Database string `json:"database"`
Data FileData `json:"data"`
}
type User struct {
ID primitive.ObjectID `gorm:"column:id;primaryKey" json:"userID" bson:"_id,omitempty"`
Name string `json:"name"`
Email string `json:"email" gorm:"unique"`
Password string `json:"password"`
CreatedAt time.Time `json:"CreatedAt"`
UpdatedAt time.Time `json:"UpdatedAt"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.