mirror of
https://github.com/hanzo-fi/go-libs.git
synced 2026-10-30 20:53:44 +00:00
14 lines
566 B
Go
14 lines
566 B
Go
package migrations
|
|
|
|
import "github.com/hanzo-fi/go-libs/v5/pkg/types/time"
|
|
|
|
type Version struct {
|
|
ID int `bun:"id,type:serial,pk,scanonly"`
|
|
VersionID int `bun:"version_id,type:bigint,notnull"`
|
|
Timestamp time.Time `bun:"tstamp,type:timestamp,default:now()"`
|
|
IsApplied bool `bun:"is_applied,type:boolean,notnull"`
|
|
MaxCounter int `bun:"max_counter,type:numeric,nullzero"`
|
|
ActualCounter int `bun:"actual_counter,type:numeric,nullzero"`
|
|
TerminatedAt time.Time `bun:"terminated_at,type:timestamp,nullzero"`
|
|
}
|