entity

package
v0.0.0-...-075f35d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data map[string]interface{}

type Document

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

type FileData struct {
	FileName string `json:"fileName"`
}

type Notes

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

type QueryResp struct {
	Response string `json:"response"`
}

type Transaction

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

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL