github.com/0chain/gosdk@v1.17.11/dev/blobber/model/write_marker.go (about)

     1  package model
     2  
     3  import (
     4  	"github.com/0chain/gosdk/core/common"
     5  	"github.com/0chain/gosdk/zboxcore/marker"
     6  )
     7  
     8  type WriteMarker struct {
     9  	AllocationRoot         string           `gorm:"column:allocation_root;primary_key" json:"allocation_root"`
    10  	PreviousAllocationRoot string           `gorm:"column:prev_allocation_root" json:"prev_allocation_root"`
    11  	AllocationID           string           `gorm:"column:allocation_id" json:"allocation_id"`
    12  	Size                   int64            `gorm:"column:size" json:"size"`
    13  	BlobberID              string           `gorm:"column:blobber_id" json:"blobber_id"`
    14  	Timestamp              common.Timestamp `gorm:"column:timestamp" json:"timestamp"`
    15  	ClientID               string           `gorm:"column:client_id" json:"client_id"`
    16  	Signature              string           `gorm:"column:signature" json:"signature"`
    17  }
    18  
    19  type LatestPrevWriteMarker struct {
    20  	LatestWM *marker.WriteMarker `json:"latest_write_marker"`
    21  	PrevWM   *marker.WriteMarker `json:"prev_write_marker"`
    22  }