Files
lndhub.go/pkg/database/models/invoice.go
Viktor Patchev 742bea615e Get TXS endpoint
2022-01-13 19:55:38 +01:00

21 lines
736 B
Go

package models
import "time"
// Invoice : Invoice Model
type Invoice struct {
ID uint `gorm:"primary_key" json:"id"`
Type string `json:"type"`
UserID uint `json:"user_id"`
TransactionEntryID uint `json:"transaction_entry_id"`
Amount uint `json:"amount"`
Memo string `json:"memo"`
DescriptionHash string `json:"description_hash"`
PaymentRequest string `json:"payment_request"`
RHash string `json:"r_hash"`
State string `json:"state"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
SettledAt time.Time `json:"settled_at"`
}