block-accounting/backend/internal/pkg/models/models.go

42 lines
785 B
Go
Raw Normal View History

2024-05-25 22:55:35 +00:00
package models
import (
"time"
"github.com/google/uuid"
)
type Multisig struct {
ID uuid.UUID
Title string
Address []byte
2024-05-25 22:55:35 +00:00
OrganizationID uuid.UUID
Owners []OrganizationParticipant
ConfirmationsRequired int
2024-05-26 00:30:35 +00:00
CreatedAt time.Time
UpdatedAt time.Time
2024-05-25 22:55:35 +00:00
}
type MultisigConfirmation struct {
MultisigID uuid.UUID
Owner OrganizationParticipant
CreatedAt time.Time
UpdatedAt time.Time
}
2024-05-27 21:29:05 +00:00
type Payroll struct {
ID uuid.UUID
Title string
Address []byte
OrganizationID uuid.UUID
MultisigID uuid.UUID
2024-05-28 20:14:15 +00:00
CreatedAt time.Time
UpdatedAt time.Time
2024-05-27 21:29:05 +00:00
}
2024-05-28 22:46:30 +00:00
type Salary struct {
ID uuid.UUID
EmployeeID uuid.UUID
Amount float64
}