models

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.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 Base

type Base struct {
	ID        int64 `gorm:"primaryKey;autoIncrement"`
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Pipeline

type Pipeline struct {
	Base
	Name string `gorm:"uniqueIndex;size:255;not null"`
}

Pipeline represents a processing pipeline.

type PipelineStep

type PipelineStep struct {
	Base
	PipelineID int64    `gorm:"uniqueIndex:idx_pipeline_step;not null"`
	Pipeline   Pipeline `gorm:"constraint:OnDelete:CASCADE"`
	StepID     int64    `gorm:"uniqueIndex:idx_pipeline_step;not null"`
	Step       Step     `gorm:"constraint:OnDelete:CASCADE"`
	JoinType   string   `gorm:"size:10;not null;default:all"`
}

PipelineStep associates a step with a pipeline.

type Step

type Step struct {
	Base
	Name string `gorm:"uniqueIndex;size:255;not null"`
	Kind string `gorm:"size:100;not null"`
}

Step represents a single step in a pipeline.

type StepDependency

type StepDependency struct {
	Base
	StepID      int64 `gorm:"uniqueIndex:idx_step_dependency;not null"`
	Step        Step  `gorm:"foreignKey:StepID;constraint:OnDelete:CASCADE"`
	DependsOnID int64 `gorm:"uniqueIndex:idx_step_dependency;not null"`
	DependsOn   Step  `gorm:"foreignKey:DependsOnID;constraint:OnDelete:CASCADE"`
}

StepDependency links a step to another step it depends on.

Jump to

Keyboard shortcuts

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