block-accounting/backend/internal/pkg/models/models.go
2024-05-29 01:57:31 +03:00

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
}