Compare commits

..
Author SHA1 Message Date
phoenix c3386b1888 Added ScheduledMessage 2025-11-07 12:39:14 -05:00
phoenixandphoenix 2bb52371c8 Adding Message (#2)
Reviewed-on: phoenix/textsender-models#2
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-11-05 19:33:28 +00:00
3 changed files with 36 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package message
import (
"github.com/google/uuid"
)
type Message struct {
Id uuid.UUID `json:"id"`
Content string `json:"content"`
UserId uuid.UUID `json:"user_id"`
}
+16
View File
@@ -0,0 +1,16 @@
package scheduling
import (
"time"
"github.com/google/uuid"
)
type ScheduledMessage struct {
Id uuid.UUID `json:"id"`
Scheduled time.Time `json:"scheduled"`
Created time.Time `json:"created"`
Status string `json:"status"`
UserId uuid.UUID `json:"user_id"`
}
+9
View File
@@ -0,0 +1,9 @@
package scheduling
const (
Ready = "READY"
Pending = "PENDING"
Processing = "PROCESSING"
Done = "DONE"
)