feat: add form response submition endpoint and forms filtering
Docker Build and Push / Build and Push Docker Image (push) Successful in 13m18s

This commit is contained in:
2026-02-22 14:13:59 +07:00
parent fc98b94867
commit ffab4f22ad
7 changed files with 478 additions and 0 deletions
+15
View File
@@ -69,6 +69,13 @@ type Form struct {
UpdatedAt pgtype.Timestamptz
}
type FormResponse struct {
ID uuid.UUID
FormID uuid.UUID
UserID *uuid.UUID
SubmittedAt pgtype.Timestamptz
}
type Question struct {
ID uuid.UUID
FormID uuid.UUID
@@ -94,6 +101,14 @@ type RefreshToken struct {
CreatedAt pgtype.Timestamptz
}
type ResponseAnswer struct {
ID int64
ResponseID uuid.UUID
QuestionID uuid.UUID
FormID uuid.UUID
AnswerText pgtype.Text
}
type User struct {
ID uuid.UUID
Email string