mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-29 01:52:01 +08:00

* fix: move migrations to bun * fix: use anonymous structs and move modes to types package * fix: minor changes after tests * fix: remove bun relations and add foreign keys * fix: minor changes * Update pkg/types/agent.go Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * fix: address minor comments * fix: use bun create index * fix: remove extra comma --------- Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
23 lines
659 B
Go
23 lines
659 B
Go
package types
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/uptrace/bun"
|
|
)
|
|
|
|
type Pipeline struct {
|
|
bun.BaseModel `bun:"table:pipelines"`
|
|
|
|
ID string `bun:"id,pk,type:text"`
|
|
OrderID int `bun:"order_id"`
|
|
Enabled bool `bun:"enabled"`
|
|
CreatedBy string `bun:"created_by,type:text"`
|
|
CreatedAt time.Time `bun:"created_at,default:current_timestamp"`
|
|
Name string `bun:"name,type:varchar(400),notnull"`
|
|
Alias string `bun:"alias,type:varchar(20),notnull"`
|
|
Description string `bun:"description,type:text"`
|
|
Filter string `bun:"filter,type:text,notnull"`
|
|
ConfigJSON string `bun:"config_json,type:text"`
|
|
}
|