feat: Initialize frontend and backend structure with essential configurations and entities
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package entities
|
||||
|
||||
type Activity struct {
|
||||
ID int
|
||||
Name string
|
||||
BillingRate float64
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package entities
|
||||
|
||||
type Company struct {
|
||||
ID int
|
||||
Name string
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package entities
|
||||
|
||||
type Customer struct {
|
||||
ID int
|
||||
Name string
|
||||
CompanyID int
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package entities
|
||||
|
||||
type Project struct {
|
||||
ID int
|
||||
Name string
|
||||
CustomerID int
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package entities
|
||||
|
||||
import "time"
|
||||
|
||||
type TimeEntry struct {
|
||||
ID int
|
||||
UserID int
|
||||
ProjectID int
|
||||
ActivityID int
|
||||
Start time.Time
|
||||
End time.Time
|
||||
Description string
|
||||
Billable int // Percentage (0-100)
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package entities
|
||||
|
||||
type User struct {
|
||||
ID int
|
||||
Username string
|
||||
Password string
|
||||
Role string
|
||||
CompanyID int
|
||||
HourlyRate float64
|
||||
}
|
||||
Reference in New Issue
Block a user