models

package
v0.0.0-...-89ecaf8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutation

type Mutation struct {
}

type NewSurvey

type NewSurvey struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Question    string `json:"question"`
}

type NewSurveyResponse

type NewSurveyResponse struct {
	SurveyID string `json:"surveyId"`
	Answers  string `json:"answers"`
	Rating   int    `json:"rating"`
}

type Query

type Query struct {
}

type Subscription

type Subscription struct {
}

type Survey

type Survey struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	Question    string    `json:"question"`
	CreatedAt   time.Time `json:"createdAt"`
	UpdatedAt   time.Time `json:"updatedAt"`
}

type SurveyResponse

type SurveyResponse struct {
	ID        string    `json:"id"`
	Survey    *Survey   `json:"survey"`
	Answer    string    `json:"answer"`
	Rating    int       `json:"rating"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL