Documentation
¶
Index ¶
- func Connect(ctx context.Context, dbURL string) (*pgxpool.Pool, error)
- type Comment
- type CreateCommentParams
- type CreateNotificationParams
- type CreateProjectParams
- type CreatePushSubscriptionParams
- type CreateRefreshTokenParams
- type CreateTagParams
- type CreateTodoFromTemplateParams
- type CreateTodoParams
- type CreateTodoTagParams
- type CreateTodoTemplateParams
- type CreateUserParams
- type DBTX
- type DeletePushSubscriptionParams
- type DeleteTodoTagParams
- type GetNotificationsWithTodoAndSubscriptionsParams
- type GetNotificationsWithTodoAndSubscriptionsRow
- type GetTagByNameParams
- type GetUnsentNotificationsInRangeParams
- type ListProjectsByParentParams
- type ListTodosByCompletionParams
- type ListTodosByParentParams
- type ListTodosByProjectAndCompletionParams
- type ListTodosByProjectParams
- type ListTodosByTemplateParams
- type ListTodosForDateRangeParams
- type MarkSubscriptionInactiveParams
- type NotificationQueue
- type Project
- type PushSubscription
- type Querier
- type Queries
- func (q *Queries) CleanupExpiredRefreshTokens(ctx context.Context) error
- func (q *Queries) CleanupOldSubscriptions(ctx context.Context) error
- func (q *Queries) CompleteTodo(ctx context.Context, todoID int32) (Todo, error)
- func (q *Queries) CreateComment(ctx context.Context, arg CreateCommentParams) (Comment, error)
- func (q *Queries) CreateNotification(ctx context.Context, arg CreateNotificationParams) (NotificationQueue, error)
- func (q *Queries) CreateProject(ctx context.Context, arg CreateProjectParams) (Project, error)
- func (q *Queries) CreatePushSubscription(ctx context.Context, arg CreatePushSubscriptionParams) (PushSubscription, error)
- func (q *Queries) CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) (RefreshToken, error)
- func (q *Queries) CreateTag(ctx context.Context, arg CreateTagParams) (Tag, error)
- func (q *Queries) CreateTodo(ctx context.Context, arg CreateTodoParams) (Todo, error)
- func (q *Queries) CreateTodoFromTemplate(ctx context.Context, arg CreateTodoFromTemplateParams) (Todo, error)
- func (q *Queries) CreateTodoTag(ctx context.Context, arg CreateTodoTagParams) error
- func (q *Queries) CreateTodoTemplate(ctx context.Context, arg CreateTodoTemplateParams) (TodoTemplate, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteAllTagTodos(ctx context.Context, tagID int32) error
- func (q *Queries) DeleteAllTodoTags(ctx context.Context, todoID int32) error
- func (q *Queries) DeleteComment(ctx context.Context, commentID int32) error
- func (q *Queries) DeleteNotification(ctx context.Context, notificationID int32) error
- func (q *Queries) DeleteProject(ctx context.Context, projectID int32) error
- func (q *Queries) DeletePushSubscription(ctx context.Context, arg DeletePushSubscriptionParams) error
- func (q *Queries) DeleteTag(ctx context.Context, tagID int32) error
- func (q *Queries) DeleteTodo(ctx context.Context, todoID int32) error
- func (q *Queries) DeleteTodoTag(ctx context.Context, arg DeleteTodoTagParams) error
- func (q *Queries) DeleteTodoTemplate(ctx context.Context, templateID int32) error
- func (q *Queries) DeleteUser(ctx context.Context, userID int32) error
- func (q *Queries) GetComment(ctx context.Context, commentID int32) (Comment, error)
- func (q *Queries) GetNotificationsWithTodoAndSubscriptions(ctx context.Context, arg GetNotificationsWithTodoAndSubscriptionsParams) ([]GetNotificationsWithTodoAndSubscriptionsRow, error)
- func (q *Queries) GetPendingNotifications(ctx context.Context) ([]NotificationQueue, error)
- func (q *Queries) GetProject(ctx context.Context, projectID int32) (Project, error)
- func (q *Queries) GetRefreshToken(ctx context.Context, tokenHash string) (RefreshToken, error)
- func (q *Queries) GetTag(ctx context.Context, tagID int32) (Tag, error)
- func (q *Queries) GetTagByName(ctx context.Context, arg GetTagByNameParams) (Tag, error)
- func (q *Queries) GetTagTodos(ctx context.Context, tagID int32) ([]TodoTag, error)
- func (q *Queries) GetTodo(ctx context.Context, todoID int32) (Todo, error)
- func (q *Queries) GetTodoTags(ctx context.Context, todoID int32) ([]TodoTag, error)
- func (q *Queries) GetTodoTemplate(ctx context.Context, templateID int32) (TodoTemplate, error)
- func (q *Queries) GetUnsentNotificationsInRange(ctx context.Context, arg GetUnsentNotificationsInRangeParams) ([]NotificationQueue, error)
- func (q *Queries) GetUser(ctx context.Context, userID int32) (User, error)
- func (q *Queries) GetUserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) GetUserByGoogleID(ctx context.Context, googleID pgtype.Text) (User, error)
- func (q *Queries) GetUserPushSubscriptions(ctx context.Context, userID int32) ([]PushSubscription, error)
- func (q *Queries) GetUserRefreshTokens(ctx context.Context, userID int32) ([]RefreshToken, error)
- func (q *Queries) ListComments(ctx context.Context, todoID int32) ([]Comment, error)
- func (q *Queries) ListCommentsByUser(ctx context.Context, userID int32) ([]Comment, error)
- func (q *Queries) ListCompletedTodos(ctx context.Context, userID int32) ([]Todo, error)
- func (q *Queries) ListPendingTodos(ctx context.Context, userID int32) ([]Todo, error)
- func (q *Queries) ListProjects(ctx context.Context, userID int32) ([]Project, error)
- func (q *Queries) ListProjectsByParent(ctx context.Context, arg ListProjectsByParentParams) ([]Project, error)
- func (q *Queries) ListTags(ctx context.Context, userID int32) ([]Tag, error)
- func (q *Queries) ListTodoTagsByTodo(ctx context.Context, todoID int32) ([]Tag, error)
- func (q *Queries) ListTodoTemplates(ctx context.Context, userID int32) ([]TodoTemplate, error)
- func (q *Queries) ListTodos(ctx context.Context, userID int32) ([]Todo, error)
- func (q *Queries) ListTodosByCompletion(ctx context.Context, arg ListTodosByCompletionParams) ([]Todo, error)
- func (q *Queries) ListTodosByParent(ctx context.Context, arg ListTodosByParentParams) ([]Todo, error)
- func (q *Queries) ListTodosByProject(ctx context.Context, arg ListTodosByProjectParams) ([]Todo, error)
- func (q *Queries) ListTodosByProjectAndCompletion(ctx context.Context, arg ListTodosByProjectAndCompletionParams) ([]Todo, error)
- func (q *Queries) ListTodosByTag(ctx context.Context, tagID int32) ([]Todo, error)
- func (q *Queries) ListTodosByTemplate(ctx context.Context, arg ListTodosByTemplateParams) ([]Todo, error)
- func (q *Queries) ListTodosForDateRange(ctx context.Context, arg ListTodosForDateRangeParams) ([]Todo, error)
- func (q *Queries) ListUsers(ctx context.Context) ([]User, error)
- func (q *Queries) MarkNotificationSent(ctx context.Context, notificationID int32) error
- func (q *Queries) MarkSubscriptionInactive(ctx context.Context, arg MarkSubscriptionInactiveParams) error
- func (q *Queries) RevokeAllUserRefreshTokens(ctx context.Context, userID int32) error
- func (q *Queries) RevokeRefreshToken(ctx context.Context, tokenHash string) error
- func (q *Queries) UncompleteTodo(ctx context.Context, todoID int32) (Todo, error)
- func (q *Queries) UpdateComment(ctx context.Context, arg UpdateCommentParams) (Comment, error)
- func (q *Queries) UpdateNotificationSchedule(ctx context.Context, arg UpdateNotificationScheduleParams) (int64, error)
- func (q *Queries) UpdateProject(ctx context.Context, arg UpdateProjectParams) (Project, error)
- func (q *Queries) UpdateRefreshTokenLastUsed(ctx context.Context, tokenHash string) error
- func (q *Queries) UpdateTag(ctx context.Context, arg UpdateTagParams) (Tag, error)
- func (q *Queries) UpdateTodo(ctx context.Context, arg UpdateTodoParams) (Todo, error)
- func (q *Queries) UpdateTodoTemplate(ctx context.Context, arg UpdateTodoTemplateParams) error
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RefreshToken
- type Tag
- type TemplateTag
- type Todo
- type TodoTag
- type TodoTemplate
- type UpdateCommentParams
- type UpdateNotificationScheduleParams
- type UpdateProjectParams
- type UpdateTagParams
- type UpdateTodoParams
- type UpdateTodoTemplateParams
- type UpdateUserParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Comment ¶
type Comment struct {
CommentID int32 `json:"commentId"`
TodoID int32 `json:"todoId"`
UserID int32 `json:"userId"`
Content string `json:"content"`
CreatedAt pgtype.Timestamptz `json:"createdAt"`
UpdatedAt pgtype.Timestamptz `json:"updatedAt"`
}
type CreateCommentParams ¶
type CreateProjectParams ¶
type CreateRefreshTokenParams ¶
type CreateRefreshTokenParams struct {
UserID int32 `json:"userId"`
TokenHash string `json:"tokenHash"`
ExpiresAt pgtype.Timestamptz `json:"expiresAt"`
}
type CreateTagParams ¶
type CreateTodoParams ¶
type CreateTodoParams struct {
UserID int32 `json:"userId"`
TemplateID pgtype.Int4 `json:"templateId"`
ProjectID pgtype.Int4 `json:"projectId"`
ParentTodoID pgtype.Int4 `json:"parentTodoId"`
Title string `json:"title"`
Description pgtype.Text `json:"description"`
ScheduledDate pgtype.Timestamptz `json:"scheduledDate"`
DurationMin pgtype.Int4 `json:"durationMin"`
Priority pgtype.Int4 `json:"priority"`
IsModified pgtype.Bool `json:"isModified"`
ModifiedFields []byte `json:"modifiedFields"`
}
type CreateTodoTagParams ¶
type CreateTodoTemplateParams ¶
type CreateTodoTemplateParams struct {
UserID int32 `json:"userId"`
ProjectID pgtype.Int4 `json:"projectId"`
Title string `json:"title"`
Description pgtype.Text `json:"description"`
DurationMin pgtype.Int4 `json:"durationMin"`
Priority pgtype.Int4 `json:"priority"`
Rrule string `json:"rrule"`
Dtstart pgtype.Timestamptz `json:"dtstart"`
UntilDate pgtype.Timestamptz `json:"untilDate"`
IsActive pgtype.Bool `json:"isActive"`
}
type CreateUserParams ¶
type DeleteTodoTagParams ¶
type GetNotificationsWithTodoAndSubscriptionsParams ¶
type GetNotificationsWithTodoAndSubscriptionsParams struct {
ScheduledFor pgtype.Timestamptz `json:"scheduledFor"`
ScheduledFor_2 pgtype.Timestamptz `json:"scheduledFor2"`
}
type GetNotificationsWithTodoAndSubscriptionsRow ¶
type GetNotificationsWithTodoAndSubscriptionsRow struct {
NotificationID int32 `json:"notificationId"`
TodoID int32 `json:"todoId"`
UserID int32 `json:"userId"`
ScheduledFor pgtype.Timestamptz `json:"scheduledFor"`
NotificationType pgtype.Text `json:"notificationType"`
Sent pgtype.Bool `json:"sent"`
CreatedAt pgtype.Timestamptz `json:"createdAt"`
TodoTitle string `json:"todoTitle"`
TodoDescription pgtype.Text `json:"todoDescription"`
TodoScheduledDate pgtype.Timestamptz `json:"todoScheduledDate"`
TodoDurationMin pgtype.Int4 `json:"todoDurationMin"`
TodoPriority pgtype.Int4 `json:"todoPriority"`
SubscriptionID int32 `json:"subscriptionId"`
Endpoint string `json:"endpoint"`
P256dhKey string `json:"p256dhKey"`
AuthKey string `json:"authKey"`
}
type GetTagByNameParams ¶
type GetUnsentNotificationsInRangeParams ¶
type GetUnsentNotificationsInRangeParams struct {
ScheduledFor pgtype.Timestamptz `json:"scheduledFor"`
ScheduledFor_2 pgtype.Timestamptz `json:"scheduledFor2"`
}
type ListTodosByParentParams ¶
type ListTodosForDateRangeParams ¶
type ListTodosForDateRangeParams struct {
UserID int32 `json:"userId"`
ScheduledDate pgtype.Timestamptz `json:"scheduledDate"`
ScheduledDate_2 pgtype.Timestamptz `json:"scheduledDate2"`
}
type NotificationQueue ¶
type NotificationQueue struct {
NotificationID int32 `json:"notificationId"`
TodoID int32 `json:"todoId"`
UserID int32 `json:"userId"`
ScheduledFor pgtype.Timestamptz `json:"scheduledFor"`
NotificationType pgtype.Text `json:"notificationType"`
Sent pgtype.Bool `json:"sent"`
CreatedAt pgtype.Timestamptz `json:"createdAt"`
}
type Project ¶
type Project struct {
ProjectID int32 `json:"projectId"`
UserID int32 `json:"userId"`
ParentProjectID pgtype.Int4 `json:"parentProjectId"`
Name string `json:"name"`
Description pgtype.Text `json:"description"`
Color pgtype.Text `json:"color"`
CreatedAt pgtype.Timestamptz `json:"createdAt"`
UpdatedAt pgtype.Timestamptz `json:"updatedAt"`
}
type PushSubscription ¶
type PushSubscription struct {
ID int32 `json:"id"`
UserID int32 `json:"userId"`
Endpoint string `json:"endpoint"`
P256dhKey string `json:"p256dhKey"`
AuthKey string `json:"authKey"`
CreatedAt pgtype.Timestamptz `json:"createdAt"`
UpdatedAt pgtype.Timestamptz `json:"updatedAt"`
IsActive pgtype.Bool `json:"isActive"`
}
type Querier ¶
type Querier interface {
CleanupExpiredRefreshTokens(ctx context.Context) error
CleanupOldSubscriptions(ctx context.Context) error
CompleteTodo(ctx context.Context, todoID int32) (Todo, error)
CreateComment(ctx context.Context, arg CreateCommentParams) (Comment, error)
CreateNotification(ctx context.Context, arg CreateNotificationParams) (NotificationQueue, error)
CreateProject(ctx context.Context, arg CreateProjectParams) (Project, error)
CreatePushSubscription(ctx context.Context, arg CreatePushSubscriptionParams) (PushSubscription, error)
CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) (RefreshToken, error)
CreateTag(ctx context.Context, arg CreateTagParams) (Tag, error)
CreateTodo(ctx context.Context, arg CreateTodoParams) (Todo, error)
CreateTodoFromTemplate(ctx context.Context, arg CreateTodoFromTemplateParams) (Todo, error)
CreateTodoTag(ctx context.Context, arg CreateTodoTagParams) error
// Template-related queries
CreateTodoTemplate(ctx context.Context, arg CreateTodoTemplateParams) (TodoTemplate, error)
CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
DeleteAllTagTodos(ctx context.Context, tagID int32) error
DeleteAllTodoTags(ctx context.Context, todoID int32) error
DeleteComment(ctx context.Context, commentID int32) error
DeleteNotification(ctx context.Context, notificationID int32) error
DeleteProject(ctx context.Context, projectID int32) error
DeletePushSubscription(ctx context.Context, arg DeletePushSubscriptionParams) error
DeleteTag(ctx context.Context, tagID int32) error
DeleteTodo(ctx context.Context, todoID int32) error
DeleteTodoTag(ctx context.Context, arg DeleteTodoTagParams) error
DeleteTodoTemplate(ctx context.Context, templateID int32) error
DeleteUser(ctx context.Context, userID int32) error
GetComment(ctx context.Context, commentID int32) (Comment, error)
GetNotificationsWithTodoAndSubscriptions(ctx context.Context, arg GetNotificationsWithTodoAndSubscriptionsParams) ([]GetNotificationsWithTodoAndSubscriptionsRow, error)
GetPendingNotifications(ctx context.Context) ([]NotificationQueue, error)
GetProject(ctx context.Context, projectID int32) (Project, error)
GetRefreshToken(ctx context.Context, tokenHash string) (RefreshToken, error)
GetTag(ctx context.Context, tagID int32) (Tag, error)
GetTagByName(ctx context.Context, arg GetTagByNameParams) (Tag, error)
GetTagTodos(ctx context.Context, tagID int32) ([]TodoTag, error)
GetTodo(ctx context.Context, todoID int32) (Todo, error)
GetTodoTags(ctx context.Context, todoID int32) ([]TodoTag, error)
GetTodoTemplate(ctx context.Context, templateID int32) (TodoTemplate, error)
GetUnsentNotificationsInRange(ctx context.Context, arg GetUnsentNotificationsInRangeParams) ([]NotificationQueue, error)
GetUser(ctx context.Context, userID int32) (User, error)
GetUserByEmail(ctx context.Context, email string) (User, error)
GetUserByGoogleID(ctx context.Context, googleID pgtype.Text) (User, error)
GetUserPushSubscriptions(ctx context.Context, userID int32) ([]PushSubscription, error)
GetUserRefreshTokens(ctx context.Context, userID int32) ([]RefreshToken, error)
ListComments(ctx context.Context, todoID int32) ([]Comment, error)
ListCommentsByUser(ctx context.Context, userID int32) ([]Comment, error)
ListCompletedTodos(ctx context.Context, userID int32) ([]Todo, error)
ListPendingTodos(ctx context.Context, userID int32) ([]Todo, error)
ListProjects(ctx context.Context, userID int32) ([]Project, error)
ListProjectsByParent(ctx context.Context, arg ListProjectsByParentParams) ([]Project, error)
ListTags(ctx context.Context, userID int32) ([]Tag, error)
ListTodoTagsByTodo(ctx context.Context, todoID int32) ([]Tag, error)
ListTodoTemplates(ctx context.Context, userID int32) ([]TodoTemplate, error)
ListTodos(ctx context.Context, userID int32) ([]Todo, error)
ListTodosByCompletion(ctx context.Context, arg ListTodosByCompletionParams) ([]Todo, error)
ListTodosByParent(ctx context.Context, arg ListTodosByParentParams) ([]Todo, error)
ListTodosByProject(ctx context.Context, arg ListTodosByProjectParams) ([]Todo, error)
ListTodosByProjectAndCompletion(ctx context.Context, arg ListTodosByProjectAndCompletionParams) ([]Todo, error)
ListTodosByTag(ctx context.Context, tagID int32) ([]Todo, error)
ListTodosByTemplate(ctx context.Context, arg ListTodosByTemplateParams) ([]Todo, error)
ListTodosForDateRange(ctx context.Context, arg ListTodosForDateRangeParams) ([]Todo, error)
ListUsers(ctx context.Context) ([]User, error)
MarkNotificationSent(ctx context.Context, notificationID int32) error
MarkSubscriptionInactive(ctx context.Context, arg MarkSubscriptionInactiveParams) error
RevokeAllUserRefreshTokens(ctx context.Context, userID int32) error
RevokeRefreshToken(ctx context.Context, tokenHash string) error
UncompleteTodo(ctx context.Context, todoID int32) (Todo, error)
UpdateComment(ctx context.Context, arg UpdateCommentParams) (Comment, error)
UpdateNotificationSchedule(ctx context.Context, arg UpdateNotificationScheduleParams) (int64, error)
UpdateProject(ctx context.Context, arg UpdateProjectParams) (Project, error)
UpdateRefreshTokenLastUsed(ctx context.Context, tokenHash string) error
UpdateTag(ctx context.Context, arg UpdateTagParams) (Tag, error)
UpdateTodo(ctx context.Context, arg UpdateTodoParams) (Todo, error)
UpdateTodoTemplate(ctx context.Context, arg UpdateTodoTemplateParams) error
UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CleanupExpiredRefreshTokens ¶
func (*Queries) CleanupOldSubscriptions ¶
func (*Queries) CompleteTodo ¶
func (*Queries) CreateComment ¶
func (*Queries) CreateNotification ¶
func (q *Queries) CreateNotification(ctx context.Context, arg CreateNotificationParams) (NotificationQueue, error)
func (*Queries) CreateProject ¶
func (*Queries) CreatePushSubscription ¶
func (q *Queries) CreatePushSubscription(ctx context.Context, arg CreatePushSubscriptionParams) (PushSubscription, error)
func (*Queries) CreateRefreshToken ¶
func (q *Queries) CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) (RefreshToken, error)
func (*Queries) CreateTodo ¶
func (*Queries) CreateTodoFromTemplate ¶
func (*Queries) CreateTodoTag ¶
func (q *Queries) CreateTodoTag(ctx context.Context, arg CreateTodoTagParams) error
func (*Queries) CreateTodoTemplate ¶
func (q *Queries) CreateTodoTemplate(ctx context.Context, arg CreateTodoTemplateParams) (TodoTemplate, error)
Template-related queries
func (*Queries) CreateUser ¶
func (*Queries) DeleteAllTagTodos ¶
func (*Queries) DeleteAllTodoTags ¶
func (*Queries) DeleteComment ¶
func (*Queries) DeleteNotification ¶
func (*Queries) DeleteProject ¶
func (*Queries) DeletePushSubscription ¶
func (q *Queries) DeletePushSubscription(ctx context.Context, arg DeletePushSubscriptionParams) error
func (*Queries) DeleteTodoTag ¶
func (q *Queries) DeleteTodoTag(ctx context.Context, arg DeleteTodoTagParams) error
func (*Queries) DeleteTodoTemplate ¶
func (*Queries) GetComment ¶
func (*Queries) GetNotificationsWithTodoAndSubscriptions ¶
func (q *Queries) GetNotificationsWithTodoAndSubscriptions(ctx context.Context, arg GetNotificationsWithTodoAndSubscriptionsParams) ([]GetNotificationsWithTodoAndSubscriptionsRow, error)
func (*Queries) GetPendingNotifications ¶
func (q *Queries) GetPendingNotifications(ctx context.Context) ([]NotificationQueue, error)
func (*Queries) GetProject ¶
func (*Queries) GetRefreshToken ¶
func (*Queries) GetTagByName ¶
func (*Queries) GetTagTodos ¶
func (*Queries) GetTodoTags ¶
func (*Queries) GetTodoTemplate ¶
func (*Queries) GetUnsentNotificationsInRange ¶
func (q *Queries) GetUnsentNotificationsInRange(ctx context.Context, arg GetUnsentNotificationsInRangeParams) ([]NotificationQueue, error)
func (*Queries) GetUserByEmail ¶
func (*Queries) GetUserByGoogleID ¶
func (*Queries) GetUserPushSubscriptions ¶
func (*Queries) GetUserRefreshTokens ¶
func (*Queries) ListComments ¶
func (*Queries) ListCommentsByUser ¶
func (*Queries) ListCompletedTodos ¶
func (*Queries) ListPendingTodos ¶
func (*Queries) ListProjects ¶
func (*Queries) ListProjectsByParent ¶
func (*Queries) ListTodoTagsByTodo ¶
func (*Queries) ListTodoTemplates ¶
func (*Queries) ListTodosByCompletion ¶
func (*Queries) ListTodosByParent ¶
func (*Queries) ListTodosByProject ¶
func (*Queries) ListTodosByProjectAndCompletion ¶
func (*Queries) ListTodosByTag ¶
func (*Queries) ListTodosByTemplate ¶
func (*Queries) ListTodosForDateRange ¶
func (*Queries) MarkNotificationSent ¶
func (*Queries) MarkSubscriptionInactive ¶
func (q *Queries) MarkSubscriptionInactive(ctx context.Context, arg MarkSubscriptionInactiveParams) error
func (*Queries) RevokeAllUserRefreshTokens ¶
func (*Queries) RevokeRefreshToken ¶
func (*Queries) UncompleteTodo ¶
func (*Queries) UpdateComment ¶
func (*Queries) UpdateNotificationSchedule ¶
func (*Queries) UpdateProject ¶
func (*Queries) UpdateRefreshTokenLastUsed ¶
func (*Queries) UpdateTodo ¶
func (*Queries) UpdateTodoTemplate ¶
func (q *Queries) UpdateTodoTemplate(ctx context.Context, arg UpdateTodoTemplateParams) error
func (*Queries) UpdateUser ¶
type RefreshToken ¶
type RefreshToken struct {
TokenID int32 `json:"tokenId"`
UserID int32 `json:"userId"`
TokenHash string `json:"tokenHash"`
ExpiresAt pgtype.Timestamptz `json:"expiresAt"`
CreatedAt pgtype.Timestamptz `json:"createdAt"`
LastUsedAt pgtype.Timestamptz `json:"lastUsedAt"`
IsRevoked pgtype.Bool `json:"isRevoked"`
}
type TemplateTag ¶
type Todo ¶
type Todo struct {
TodoID int32 `json:"todoId"`
UserID int32 `json:"userId"`
TemplateID pgtype.Int4 `json:"templateId"`
ProjectID pgtype.Int4 `json:"projectId"`
ParentTodoID pgtype.Int4 `json:"parentTodoId"`
Title string `json:"title"`
Description pgtype.Text `json:"description"`
IsCompleted pgtype.Bool `json:"isCompleted"`
ScheduledDate pgtype.Timestamptz `json:"scheduledDate"`
DurationMin pgtype.Int4 `json:"durationMin"`
Priority pgtype.Int4 `json:"priority"`
IsModified pgtype.Bool `json:"isModified"`
ModifiedFields []byte `json:"modifiedFields"`
CreatedAt pgtype.Timestamptz `json:"createdAt"`
UpdatedAt pgtype.Timestamptz `json:"updatedAt"`
CompletedAt pgtype.Timestamptz `json:"completedAt"`
}
type TodoTemplate ¶
type TodoTemplate struct {
TemplateID int32 `json:"templateId"`
UserID int32 `json:"userId"`
ProjectID pgtype.Int4 `json:"projectId"`
Title string `json:"title"`
Description pgtype.Text `json:"description"`
DurationMin pgtype.Int4 `json:"durationMin"`
Priority pgtype.Int4 `json:"priority"`
Rrule string `json:"rrule"`
Dtstart pgtype.Timestamptz `json:"dtstart"`
UntilDate pgtype.Timestamptz `json:"untilDate"`
IsActive pgtype.Bool `json:"isActive"`
CreatedAt pgtype.Timestamptz `json:"createdAt"`
UpdatedAt pgtype.Timestamptz `json:"updatedAt"`
}
type UpdateCommentParams ¶
type UpdateNotificationScheduleParams ¶
type UpdateNotificationScheduleParams struct {
TodoID int32 `json:"todoId"`
ScheduledFor pgtype.Timestamptz `json:"scheduledFor"`
}
type UpdateProjectParams ¶
type UpdateTagParams ¶
type UpdateTodoParams ¶
type UpdateTodoParams struct {
TodoID int32 `json:"todoId"`
TemplateID pgtype.Int4 `json:"templateId"`
ProjectID pgtype.Int4 `json:"projectId"`
ParentTodoID pgtype.Int4 `json:"parentTodoId"`
Title string `json:"title"`
Description pgtype.Text `json:"description"`
ScheduledDate pgtype.Timestamptz `json:"scheduledDate"`
DurationMin pgtype.Int4 `json:"durationMin"`
Priority pgtype.Int4 `json:"priority"`
IsCompleted pgtype.Bool `json:"isCompleted"`
IsModified pgtype.Bool `json:"isModified"`
ModifiedFields []byte `json:"modifiedFields"`
CompletedAt pgtype.Timestamptz `json:"completedAt"`
}
type UpdateTodoTemplateParams ¶
type UpdateTodoTemplateParams struct {
TemplateID int32 `json:"templateId"`
ProjectID pgtype.Int4 `json:"projectId"`
Title string `json:"title"`
Description pgtype.Text `json:"description"`
DurationMin pgtype.Int4 `json:"durationMin"`
Priority pgtype.Int4 `json:"priority"`
Rrule string `json:"rrule"`
Dtstart pgtype.Timestamptz `json:"dtstart"`
UntilDate pgtype.Timestamptz `json:"untilDate"`
IsActive pgtype.Bool `json:"isActive"`
}
type UpdateUserParams ¶
type User ¶
type User struct {
UserID int32 `json:"userId"`
Email string `json:"email"`
PasswordHash pgtype.Text `json:"passwordHash"`
GoogleID pgtype.Text `json:"googleId"`
ProfilePictureUrl pgtype.Text `json:"profilePictureUrl"`
CreatedAt pgtype.Timestamptz `json:"createdAt"`
UpdatedAt pgtype.Timestamptz `json:"updatedAt"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.