entities

package
v0.0.0-...-18a3956 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Beat

type Beat struct {
	bun.BaseModel `bun:"table:beats,alias:beats"`

	// CreatorID is the unique identifier of the user who created the beat.
	CreatorID string `bun:"creator_id"`

	// ID is the unique identifier of the beat.
	ID uuid.UUID `bun:"id,pk,type:uuid"`
	// Name is the human-readable name of the beat.
	Name string `bun:"name"`
	// Prompt used to generate a plot point with this beat.
	Prompt string `bun:"prompt"`

	CreatedAt time.Time  `bun:"created_at"`
	UpdatedAt *time.Time `bun:"updated_at"`
}

Beat is a specific sub-instruction used to shape a plot point. Mixing different beats together gives the flavor to a particular generation.

type PlotPoint

type PlotPoint struct {
	bun.BaseModel `bun:"table:plot_points,alias:plot_points"`

	// CreatorID is the unique identifier of the user who created the plot point.
	CreatorID string `bun:"creator_id"`

	// ID is the unique identifier of the plot point.
	ID uuid.UUID `bun:"id,pk,type:uuid"`
	// Name is the human-readable name of the plot point.
	Name string `bun:"name"`
	// Prompt is the global instruction, used to generate the plot point.
	Prompt string `bun:"prompt"`

	CreatedAt time.Time  `bun:"created_at"`
	UpdatedAt *time.Time `bun:"updated_at"`
}

PlotPoint is the main instruction used to generate a plot point. A plot point is shaped by multiple beats.

type SortBeat

type SortBeat string
const (
	SortBeatNone      SortBeat = ""
	SortBeatName      SortBeat = "name"
	SortBeatCreatedAt SortBeat = "created_at"
	SortBeatUpdatedAt SortBeat = "updated_at"
)

type SortPlotPoint

type SortPlotPoint string
const (
	SortPlotPointNone      SortPlotPoint = ""
	SortPlotPointName      SortPlotPoint = "name"
	SortPlotPointCreatedAt SortPlotPoint = "created_at"
	SortPlotPointUpdatedAt SortPlotPoint = "updated_at"
)

Jump to

Keyboard shortcuts

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