mirror of
https://github.com/emo2007/block-accounting.git
synced 2024-11-14 22:26:27 +00:00
42 lines
785 B
Go
42 lines
785 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Multisig struct {
|
|
ID uuid.UUID
|
|
Title string
|
|
Address []byte
|
|
OrganizationID uuid.UUID
|
|
Owners []OrganizationParticipant
|
|
ConfirmationsRequired int
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
type MultisigConfirmation struct {
|
|
MultisigID uuid.UUID
|
|
Owner OrganizationParticipant
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
type Payroll struct {
|
|
ID uuid.UUID
|
|
Title string
|
|
Address []byte
|
|
OrganizationID uuid.UUID
|
|
MultisigID uuid.UUID
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
type Salary struct {
|
|
ID uuid.UUID
|
|
EmployeeID uuid.UUID
|
|
Amount float64
|
|
}
|