github.com/resonatecoop/user-api@v1.0.0-13.0.20220915120639-05dc9c04014a/model/share_transaction.go (about)

     1  package model
     2  
     3  import (
     4  	uuid "github.com/google/uuid"
     5  )
     6  
     7  // ShareTransaction model
     8  type ShareTransaction struct {
     9  	IDRecord
    10  	UserID    uuid.UUID `bun:"type:uuid,notnull"`
    11  	User      *User     `bun:"rel:has-one"`
    12  	InvoiceID string    `bun:",unique,notnull"`
    13  	Quantity  int64     `bun:",notnull,"`
    14  }