mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-29 02:12:02 +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>
24 lines
725 B
Go
24 lines
725 B
Go
package types
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/uptrace/bun"
|
|
)
|
|
|
|
type SavedView struct {
|
|
bun.BaseModel `bun:"table:saved_views"`
|
|
|
|
UUID string `bun:"uuid,pk,type:text"`
|
|
Name string `bun:"name,type:text,notnull"`
|
|
Category string `bun:"category,type:text,notnull"`
|
|
CreatedAt time.Time `bun:"created_at,type:datetime,notnull"`
|
|
CreatedBy string `bun:"created_by,type:text"`
|
|
UpdatedAt time.Time `bun:"updated_at,type:datetime,notnull"`
|
|
UpdatedBy string `bun:"updated_by,type:text"`
|
|
SourcePage string `bun:"source_page,type:text,notnull"`
|
|
Tags string `bun:"tags,type:text"`
|
|
Data string `bun:"data,type:text,notnull"`
|
|
ExtraData string `bun:"extra_data,type:text"`
|
|
}
|