getting chirps!

This commit is contained in:
2025-03-11 19:33:53 +02:00
parent de5f090a9c
commit bd6583831c
6 changed files with 182 additions and 15 deletions

21
internal/dataMaps/maps.go Normal file
View File

@@ -0,0 +1,21 @@
package dataMaps
import (
"github.com/google/uuid"
"time"
)
type Chirp struct {
ID uuid.UUID `json:"id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Body string `json:"body"`
UserID uuid.UUID `json:"user_id"`
}
type User struct {
ID uuid.UUID `json:"id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Email string `json:"email"`
}