2020-04-10 04:40:22 +02:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
|
|
|
|
package pg
|
|
|
|
|
|
|
|
import (
|
2020-04-20 05:02:55 +02:00
|
|
|
"database/sql"
|
2020-04-10 04:40:22 +02:00
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/google/uuid"
|
|
|
|
)
|
|
|
|
|
2020-04-20 05:02:55 +02:00
|
|
|
type LabelColor struct {
|
|
|
|
LabelColorID uuid.UUID `json:"label_color_id"`
|
|
|
|
ColorHex string `json:"color_hex"`
|
|
|
|
Position float64 `json:"position"`
|
|
|
|
}
|
|
|
|
|
2020-04-10 04:40:22 +02:00
|
|
|
type Organization struct {
|
|
|
|
OrganizationID uuid.UUID `json:"organization_id"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Project struct {
|
|
|
|
ProjectID uuid.UUID `json:"project_id"`
|
|
|
|
TeamID uuid.UUID `json:"team_id"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
Name string `json:"name"`
|
2020-04-20 05:02:55 +02:00
|
|
|
Owner uuid.UUID `json:"owner"`
|
2020-04-10 04:40:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type RefreshToken struct {
|
|
|
|
TokenID uuid.UUID `json:"token_id"`
|
|
|
|
UserID uuid.UUID `json:"user_id"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
ExpiresAt time.Time `json:"expires_at"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Task struct {
|
2020-04-20 05:02:55 +02:00
|
|
|
TaskID uuid.UUID `json:"task_id"`
|
|
|
|
TaskGroupID uuid.UUID `json:"task_group_id"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Position float64 `json:"position"`
|
|
|
|
Description sql.NullString `json:"description"`
|
|
|
|
DueDate sql.NullTime `json:"due_date"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type TaskAssigned struct {
|
|
|
|
TaskAssignedID uuid.UUID `json:"task_assigned_id"`
|
|
|
|
TaskID uuid.UUID `json:"task_id"`
|
|
|
|
UserID uuid.UUID `json:"user_id"`
|
|
|
|
AssignedDate time.Time `json:"assigned_date"`
|
2020-04-10 04:40:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type TaskGroup struct {
|
|
|
|
TaskGroupID uuid.UUID `json:"task_group_id"`
|
|
|
|
ProjectID uuid.UUID `json:"project_id"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Position float64 `json:"position"`
|
|
|
|
}
|
|
|
|
|
2020-04-20 05:02:55 +02:00
|
|
|
type TaskLabel struct {
|
|
|
|
TaskLabelID uuid.UUID `json:"task_label_id"`
|
|
|
|
TaskID uuid.UUID `json:"task_id"`
|
|
|
|
LabelColorID uuid.UUID `json:"label_color_id"`
|
|
|
|
AssignedDate time.Time `json:"assigned_date"`
|
|
|
|
}
|
|
|
|
|
2020-04-10 04:40:22 +02:00
|
|
|
type Team struct {
|
|
|
|
TeamID uuid.UUID `json:"team_id"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
OrganizationID uuid.UUID `json:"organization_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type UserAccount struct {
|
|
|
|
UserID uuid.UUID `json:"user_id"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
2020-04-20 05:02:55 +02:00
|
|
|
FirstName string `json:"first_name"`
|
|
|
|
LastName string `json:"last_name"`
|
2020-04-10 04:40:22 +02:00
|
|
|
Email string `json:"email"`
|
|
|
|
Username string `json:"username"`
|
|
|
|
PasswordHash string `json:"password_hash"`
|
|
|
|
}
|