model

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationLog

type AuthenticationLog struct {
	ID        int64     `json:"id"`
	UserID    int64     `json:"userId"`
	IP        string    `json:"ip"`
	UserAgent string    `json:"userAgent"`
	CreatedAt time.Time `json:"createdAt"`
}

type CreatePayment

type CreatePayment struct {
	StageID       int64 `json:"stageId"`
	TransactionID int64 `json:"transactionId"`
}

type CreatePosition

type CreatePosition struct {
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
}

type CreateRole

type CreateRole struct {
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
}

type CreateRolePermission

type CreateRolePermission struct {
	RoleID       int64 `json:"roleId"`
	PermissionID int64 `json:"permissionId"`
}

type CreateUser

type CreateUser struct {
	FirstName  string  `json:"firstName"`
	LastName   string  `json:"lastName"`
	MiddleName *string `json:"middleName,omitempty"`
	Email      string  `json:"email"`
	Password   *string `json:"password,omitempty"`
	EmployeeID *int64  `json:"employeeId,omitempty"`
	AvatarID   *int64  `json:"avatarId,omitempty"`
}

type Dialogue

type Dialogue struct {
	ID        int64      `json:"id"`
	UserID    int64      `json:"userId"`
	Label     string     `json:"label"`
	Messages  []*Message `json:"messages"`
	CreatedAt time.Time  `json:"createdAt"`
	UpdatedAt time.Time  `json:"updatedAt"`
}

type DialogueReply

type DialogueReply struct {
	Message string  `json:"message"`
	Model   *string `json:"model,omitempty"`
}

type Media

type Media struct {
	ID        int64     `json:"id"`
	Name      string    `json:"name"`
	Path      string    `json:"path"`
	Mimetype  string    `json:"mimetype"`
	Size      int64     `json:"size"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

type Message

type Message struct {
	Role      string      `json:"role"`
	Content   string      `json:"content"`
	ToolCalls []*ToolCall `json:"toolCalls,omitempty"`
}

type Mutation

type Mutation struct {
}

type NewDialogue

type NewDialogue struct {
	Message string  `json:"message"`
	Model   *string `json:"model,omitempty"`
}

type PaginatedAuthenticationLogs

type PaginatedAuthenticationLogs struct {
	Data  []*AuthenticationLog `json:"data"`
	Total int64                `json:"total"`
}

type PaginatedDialogues

type PaginatedDialogues struct {
	Data  []*Dialogue `json:"data"`
	Total int64       `json:"total"`
}

type PaginatedMedia

type PaginatedMedia struct {
	Data  []*Media `json:"data"`
	Total int64    `json:"total"`
}

type PaginatedPayments

type PaginatedPayments struct {
	Data  []*Payment `json:"data"`
	Total int64      `json:"total"`
}

type PaginatedPermissions

type PaginatedPermissions struct {
	Data  []*Permission `json:"data"`
	Total int64         `json:"total"`
}

type PaginatedPositions

type PaginatedPositions struct {
	Data  []*Position `json:"data"`
	Total int64       `json:"total"`
}

type PaginatedPrompts

type PaginatedPrompts struct {
	Data  []*Prompt `json:"data"`
	Total int64     `json:"total"`
}

type PaginatedRolePermissions

type PaginatedRolePermissions struct {
	Data  []*RolePermissions `json:"data"`
	Total int64              `json:"total"`
}

type PaginatedRoles

type PaginatedRoles struct {
	Data  []*Role `json:"data"`
	Total int64   `json:"total"`
}

type PaginatedSessions

type PaginatedSessions struct {
	Data  []*Session `json:"data"`
	Total int64      `json:"total"`
}

type PaginatedUsers

type PaginatedUsers struct {
	Data  []*User `json:"data"`
	Total int64   `json:"total"`
}

type Payment

type Payment struct {
	ID            int64     `json:"id"`
	StageID       int64     `json:"stageId"`
	TransactionID int64     `json:"transactionId"`
	CreatedAt     time.Time `json:"createdAt"`
	UpdatedAt     time.Time `json:"updatedAt"`
}

type Permission

type Permission struct {
	ID          int64   `json:"id"`
	Description *string `json:"description,omitempty"`
	Resource    *string `json:"resource,omitempty"`
	Action      *string `json:"action,omitempty"`
	Modifier    *string `json:"modifier,omitempty"`
}

type Position

type Position struct {
	ID          int64     `json:"id"`
	Name        string    `json:"name"`
	Description *string   `json:"description,omitempty"`
	CreatedAt   time.Time `json:"createdAt"`
	UpdatedAt   time.Time `json:"updatedAt"`
}

type Prompt

type Prompt struct {
	ID          string    `json:"id"`
	Title       string    `json:"title"`
	Description string    `json:"description"`
	Prompt      string    `json:"prompt"`
	CreatedAt   time.Time `json:"createdAt"`
	UpdatedAt   time.Time `json:"updatedAt"`
}

type Query

type Query struct {
}

type Role

type Role struct {
	ID          int64     `json:"id"`
	Name        string    `json:"name"`
	Description *string   `json:"description,omitempty"`
	CreatedAt   time.Time `json:"createdAt"`
	UpdatedAt   time.Time `json:"updatedAt"`
}

type RolePermissions

type RolePermissions struct {
	PermissionID int64 `json:"permissionId"`
	RoleID       int64 `json:"roleId"`
}

type Session

type Session struct {
	Token     string    `json:"token"`
	UserID    int64     `json:"userId"`
	IP        string    `json:"ip"`
	UserAgent string    `json:"userAgent"`
	ExpiresAt time.Time `json:"expiresAt"`
	CreatedAt time.Time `json:"createdAt"`
}

type Subscription

type Subscription struct {
}

type ToolCall

type ToolCall struct {
	ID    string `json:"id"`
	Index int    `json:"index"`
	Type  string `json:"type"`
}

type UpdateDialogue

type UpdateDialogue struct {
	UserID *int64  `json:"userId,omitempty"`
	Label  *string `json:"label,omitempty"`
}

type UpdatePayment

type UpdatePayment struct {
	StageID       *int64 `json:"stageId,omitempty"`
	TransactionID *int64 `json:"transactionId,omitempty"`
}

type UpdatePosition

type UpdatePosition struct {
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
}

type UpdatePrompt

type UpdatePrompt struct {
	Title       *string `json:"title,omitempty"`
	Description *string `json:"description,omitempty"`
	Prompt      *string `json:"prompt,omitempty"`
}

type UpdateRole

type UpdateRole struct {
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
}

type UpdateUser

type UpdateUser struct {
	FirstName  *string `json:"firstName,omitempty"`
	LastName   *string `json:"lastName,omitempty"`
	MiddleName *string `json:"middleName,omitempty"`
	Email      *string `json:"email,omitempty"`
	Password   *string `json:"password,omitempty"`
	EmployeeID *int64  `json:"employeeId,omitempty"`
	AvatarID   *int64  `json:"avatarId,omitempty"`
}

type User

type User struct {
	ID         int64      `json:"id"`
	FirstName  string     `json:"firstName"`
	LastName   string     `json:"lastName"`
	MiddleName *string    `json:"middleName,omitempty"`
	Email      string     `json:"email"`
	Avatar     *Media     `json:"avatar,omitempty"`
	AvatarID   *int64     `json:"avatarId,omitempty"`
	EmployeeID *int64     `json:"employeeId,omitempty"`
	LastIP     *string    `json:"lastIp,omitempty"`
	LastLogin  *time.Time `json:"lastLogin,omitempty"`
	LastAction *time.Time `json:"lastAction,omitempty"`
	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