feat: add form response submition endpoint and forms filtering
Docker Build and Push / Build and Push Docker Image (push) Successful in 13m18s
Docker Build and Push / Build and Push Docker Image (push) Successful in 13m18s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user