mirror of
https://github.com/getAlby/lndhub.go.git
synced 2026-01-17 11:55:30 +01:00
21 lines
736 B
Go
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"`
|
|
}
|