19 lines
431 B
Go
19 lines
431 B
Go
package dto
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/oklog/ulid/v2"
|
|
)
|
|
|
|
type TimeEntryDto struct {
|
|
ID ulid.ULID `json:"id"`
|
|
UserID int `json:"userId"`
|
|
ProjectID int `json:"projectId"`
|
|
ActivityID int `json:"activityId"`
|
|
Start time.Time `json:"start"`
|
|
End time.Time `json:"end"`
|
|
Description string `json:"description"`
|
|
Billable int `json:"billable"` // Percentage (0-100)
|
|
}
|