mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-18 16:07:10 +00:00
16 lines
407 B
Go
16 lines
407 B
Go
|
|
package types
|
||
|
|
|
||
|
|
import (
|
||
|
|
"time"
|
||
|
|
|
||
|
|
"github.com/uptrace/bun"
|
||
|
|
)
|
||
|
|
|
||
|
|
type DataMigration struct {
|
||
|
|
bun.BaseModel `bun:"table:data_migrations"`
|
||
|
|
ID int `bun:"id,pk,autoincrement"`
|
||
|
|
Version string `bun:"version,unique,notnull,type:VARCHAR(255)"`
|
||
|
|
CreatedAt time.Time `bun:"created_at,notnull,default:current_timestamp"`
|
||
|
|
Succeeded bool `bun:"succeeded,notnull,default:false"`
|
||
|
|
}
|