mirror of
https://github.com/emo2007/block-accounting.git
synced 2025-04-12 08:56:28 +00:00
39 lines
563 B
Go
39 lines
563 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Transaction struct {
|
|
Id uuid.UUID
|
|
|
|
Description string
|
|
OrganizationId uuid.UUID
|
|
CreatedBy *User
|
|
Amount int64
|
|
|
|
ToAddr []byte
|
|
|
|
MaxFeeAllowed int64
|
|
Deadline time.Time
|
|
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
|
|
ConfirmedAt time.Time
|
|
CancelledAt time.Time
|
|
|
|
CommitedAt time.Time
|
|
}
|
|
|
|
type TransactionConfirmation struct {
|
|
TxId uuid.UUID
|
|
User *User
|
|
OrganizationId uuid.UUID
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
Confirmed bool
|
|
}
|