mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-28 23:32:02 +08:00

* feat(sqlmigration): added migration for schema cleanup * feat(sqlmigration): drop sites,licenses table and added uuid v7 for saved views * feat(sqlmigration): commit the transaction * feat(sqlmigration): address review comments * feat(sqlmigration): address review comments * feat(sqlmigration): frontend changes for saved views * feat(sqlmigration): frontend changes for saved views * feat(sqlmigration): frontend changes for saved views * feat(sqlmigration): frontend changes for saved views * feat(sqlmigration): frontend changes for saved views
21 lines
608 B
Go
21 lines
608 B
Go
package types
|
|
|
|
import (
|
|
"github.com/uptrace/bun"
|
|
)
|
|
|
|
type SavedView struct {
|
|
bun.BaseModel `bun:"table:saved_views"`
|
|
|
|
Identifiable
|
|
TimeAuditable
|
|
UserAuditable
|
|
OrgID string `json:"orgId" bun:"org_id,notnull"`
|
|
Name string `json:"name" bun:"name,type:text,notnull"`
|
|
Category string `json:"category" bun:"category,type:text,notnull"`
|
|
SourcePage string `json:"sourcePage" bun:"source_page,type:text,notnull"`
|
|
Tags string `json:"tags" bun:"tags,type:text"`
|
|
Data string `json:"data" bun:"data,type:text,notnull"`
|
|
ExtraData string `json:"extraData" bun:"extra_data,type:text"`
|
|
}
|