orm_gen

package
v0.0.0-...-d769f72 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameChat = "Chats"
View Source
const TableNamePlugin = "Plugins"

Variables

This section is empty.

Functions

This section is empty.

Types

type Chat

type Chat struct {
	ChatID         int32     `gorm:"column:chat_id;primaryKey;autoIncrement:true;comment:Unique identifier for the chat" json:"chat_id"`
	ConversationID string    `` /* 133-byte string literal not displayed */
	PluginNames    string    `gorm:"column:plugin_names;not null;comment:Array of plugin names used in the chat" json:"plugin_names"`
	ChatContent    string    `gorm:"column:chat_content;comment:Content of the chat message" json:"chat_content"`
	ChatModel      string    `gorm:"column:chat_model;comment:Model for the chat message" json:"chat_model"`
	UserID         int32     `gorm:"column:user_id;not null;comment:Unique identifier for the user who sent the chat message" json:"user_id"`
	IsDeleted      bool      `gorm:"column:is_deleted;not null;comment:Flag indicating if the chat message has been deleted" json:"is_deleted"`
	CreatedAt      time.Time `` /* 133-byte string literal not displayed */
	UpdatedAt      time.Time `` /* 138-byte string literal not displayed */
}

Chat mapped from table <Chats>

func (*Chat) TableName

func (*Chat) TableName() string

TableName Chat's table name

type Plugin

type Plugin struct {
	PluginID         int32     `gorm:"column:plugin_id;primaryKey;autoIncrement:true;comment:Unique identifier for the plugin" json:"plugin_id"`
	PluginName       string    `gorm:"column:plugin_name;not null;comment:Name of the plugin" json:"plugin_name"`
	PluginConfigURL  string    `gorm:"column:plugin_config_url;comment:URL for the plugin configuration" json:"plugin_config_url"`
	PluginOpenapiURL string    `gorm:"column:plugin_openapi_url;comment:URL for the plugin OpenAPI documentation" json:"plugin_openapi_url"`
	PluginConfig     string    `gorm:"column:plugin_config;comment:Configuration for the plugin" json:"plugin_config"`
	PluginOpenapi    string    `gorm:"column:plugin_openapi;comment:OpenAPI documentation for the plugin" json:"plugin_openapi"`
	IsDeleted        bool      `gorm:"column:is_deleted;not null;comment:Flag indicating if the plugin has been deleted" json:"is_deleted"`
	CreatedAt        time.Time `` /* 127-byte string literal not displayed */
	UpdatedAt        time.Time `` /* 132-byte string literal not displayed */
}

Plugin mapped from table <Plugins>

func (*Plugin) TableName

func (*Plugin) TableName() string

TableName Plugin's table name

Jump to

Keyboard shortcuts

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