2020-04-10 04:40:22 +02:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
|
2020-07-05 01:02:57 +02:00
|
|
|
package db
|
2020-04-10 04:40:22 +02:00
|
|
|
|
|
|
|
import (
|
2020-04-20 05:02:55 +02:00
|
|
|
"database/sql"
|
2020-12-19 03:34:35 +01:00
|
|
|
"encoding/json"
|
2020-04-10 04:40:22 +02:00
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/google/uuid"
|
|
|
|
)
|
|
|
|
|
2021-11-02 20:45:05 +01:00
|
|
|
type AccountSetting struct {
|
|
|
|
AccountSettingID string `json:"account_setting_id"`
|
|
|
|
Constrained bool `json:"constrained"`
|
|
|
|
DataType string `json:"data_type"`
|
|
|
|
ConstrainedDefaultValue sql.NullString `json:"constrained_default_value"`
|
|
|
|
UnconstrainedDefaultValue sql.NullString `json:"unconstrained_default_value"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AccountSettingAllowedValue struct {
|
|
|
|
AllowedValueID uuid.UUID `json:"allowed_value_id"`
|
|
|
|
SettingID int32 `json:"setting_id"`
|
|
|
|
ItemValue string `json:"item_value"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AccountSettingDataType struct {
|
|
|
|
DataTypeID string `json:"data_type_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AccountSettingValue struct {
|
|
|
|
AccountSettingID uuid.UUID `json:"account_setting_id"`
|
|
|
|
UserID uuid.UUID `json:"user_id"`
|
|
|
|
SettingID int32 `json:"setting_id"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
|
|
AllowedValueID uuid.UUID `json:"allowed_value_id"`
|
|
|
|
UnconstrainedValue sql.NullString `json:"unconstrained_value"`
|
|
|
|
}
|
|
|
|
|
2021-04-29 04:32:19 +02:00
|
|
|
type AuthToken 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"`
|
|
|
|
}
|
|
|
|
|
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-05-27 23:18:50 +02:00
|
|
|
Name string `json:"name"`
|
2020-04-20 05:02:55 +02:00
|
|
|
}
|
|
|
|
|
2020-08-13 03:54:14 +02:00
|
|
|
type Notification struct {
|
2021-10-27 04:29:49 +02:00
|
|
|
NotificationID uuid.UUID `json:"notification_id"`
|
|
|
|
CausedBy uuid.UUID `json:"caused_by"`
|
|
|
|
ActionType string `json:"action_type"`
|
|
|
|
Data json.RawMessage `json:"data"`
|
|
|
|
CreatedOn time.Time `json:"created_on"`
|
2020-08-13 03:54:14 +02:00
|
|
|
}
|
|
|
|
|
2021-10-27 04:29:49 +02:00
|
|
|
type NotificationNotified struct {
|
|
|
|
NotifiedID uuid.UUID `json:"notified_id"`
|
|
|
|
NotificationID uuid.UUID `json:"notification_id"`
|
|
|
|
UserID uuid.UUID `json:"user_id"`
|
|
|
|
Read bool `json:"read"`
|
|
|
|
ReadAt sql.NullTime `json:"read_at"`
|
2020-08-13 03:54:14 +02:00
|
|
|
}
|
|
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
2020-09-20 03:20:36 +02:00
|
|
|
type PersonalProject struct {
|
|
|
|
PersonalProjectID uuid.UUID `json:"personal_project_id"`
|
|
|
|
ProjectID uuid.UUID `json:"project_id"`
|
|
|
|
UserID uuid.UUID `json:"user_id"`
|
|
|
|
}
|
|
|
|
|
2020-04-10 04:40:22 +02:00
|
|
|
type Project struct {
|
2021-05-01 05:55:37 +02:00
|
|
|
ProjectID uuid.UUID `json:"project_id"`
|
|
|
|
TeamID uuid.UUID `json:"team_id"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
PublicOn sql.NullTime `json:"public_on"`
|
2020-04-10 04:40:22 +02:00
|
|
|
}
|
|
|
|
|
2020-04-21 01:04:27 +02:00
|
|
|
type ProjectLabel struct {
|
|
|
|
ProjectLabelID uuid.UUID `json:"project_label_id"`
|
|
|
|
ProjectID uuid.UUID `json:"project_id"`
|
|
|
|
LabelColorID uuid.UUID `json:"label_color_id"`
|
|
|
|
CreatedDate time.Time `json:"created_date"`
|
|
|
|
Name sql.NullString `json:"name"`
|
|
|
|
}
|
|
|
|
|
2020-07-05 01:02:57 +02:00
|
|
|
type ProjectMember struct {
|
|
|
|
ProjectMemberID uuid.UUID `json:"project_member_id"`
|
|
|
|
ProjectID uuid.UUID `json:"project_id"`
|
|
|
|
UserID uuid.UUID `json:"user_id"`
|
|
|
|
AddedAt time.Time `json:"added_at"`
|
|
|
|
RoleCode string `json:"role_code"`
|
|
|
|
}
|
|
|
|
|
2020-10-21 01:52:09 +02:00
|
|
|
type ProjectMemberInvited struct {
|
|
|
|
ProjectMemberInvitedID uuid.UUID `json:"project_member_invited_id"`
|
|
|
|
ProjectID uuid.UUID `json:"project_id"`
|
|
|
|
UserAccountInvitedID uuid.UUID `json:"user_account_invited_id"`
|
|
|
|
}
|
|
|
|
|
2020-07-05 01:02:57 +02:00
|
|
|
type Role struct {
|
|
|
|
Code string `json:"code"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|
|
|
|
|
2020-07-17 02:40:23 +02:00
|
|
|
type SystemOption struct {
|
|
|
|
OptionID uuid.UUID `json:"option_id"`
|
|
|
|
Key string `json:"key"`
|
|
|
|
Value sql.NullString `json:"value"`
|
|
|
|
}
|
|
|
|
|
2020-04-10 04:40:22 +02:00
|
|
|
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"`
|
2020-06-19 01:12:15 +02:00
|
|
|
Complete bool `json:"complete"`
|
2020-08-28 01:57:23 +02:00
|
|
|
CompletedAt sql.NullTime `json:"completed_at"`
|
2021-01-01 21:51:40 +01:00
|
|
|
HasTime bool `json:"has_time"`
|
2020-04-20 05:02:55 +02:00
|
|
|
}
|
|
|
|
|
2020-12-19 03:34:35 +01:00
|
|
|
type TaskActivity struct {
|
|
|
|
TaskActivityID uuid.UUID `json:"task_activity_id"`
|
|
|
|
Active bool `json:"active"`
|
|
|
|
TaskID uuid.UUID `json:"task_id"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
CausedBy uuid.UUID `json:"caused_by"`
|
|
|
|
ActivityTypeID int32 `json:"activity_type_id"`
|
|
|
|
Data json.RawMessage `json:"data"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type TaskActivityType struct {
|
|
|
|
TaskActivityTypeID int32 `json:"task_activity_type_id"`
|
|
|
|
Code string `json:"code"`
|
|
|
|
Template string `json:"template"`
|
|
|
|
}
|
|
|
|
|
2020-04-20 05:02:55 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2020-06-19 01:12:15 +02:00
|
|
|
type TaskChecklist struct {
|
|
|
|
TaskChecklistID uuid.UUID `json:"task_checklist_id"`
|
|
|
|
TaskID uuid.UUID `json:"task_id"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Position float64 `json:"position"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type TaskChecklistItem struct {
|
|
|
|
TaskChecklistItemID uuid.UUID `json:"task_checklist_item_id"`
|
|
|
|
TaskChecklistID uuid.UUID `json:"task_checklist_id"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
Complete bool `json:"complete"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Position float64 `json:"position"`
|
|
|
|
DueDate sql.NullTime `json:"due_date"`
|
|
|
|
}
|
|
|
|
|
2020-12-19 03:34:35 +01:00
|
|
|
type TaskComment struct {
|
|
|
|
TaskCommentID uuid.UUID `json:"task_comment_id"`
|
|
|
|
TaskID uuid.UUID `json:"task_id"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
UpdatedAt sql.NullTime `json:"updated_at"`
|
|
|
|
CreatedBy uuid.UUID `json:"created_by"`
|
|
|
|
Pinned bool `json:"pinned"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
}
|
|
|
|
|
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 {
|
2020-04-21 01:04:27 +02:00
|
|
|
TaskLabelID uuid.UUID `json:"task_label_id"`
|
|
|
|
TaskID uuid.UUID `json:"task_id"`
|
|
|
|
ProjectLabelID uuid.UUID `json:"project_label_id"`
|
|
|
|
AssignedDate time.Time `json:"assigned_date"`
|
2020-04-20 05:02:55 +02:00
|
|
|
}
|
|
|
|
|
2021-11-02 20:45:05 +01:00
|
|
|
type TaskWatcher struct {
|
|
|
|
TaskWatcherID uuid.UUID `json:"task_watcher_id"`
|
|
|
|
TaskID uuid.UUID `json:"task_id"`
|
|
|
|
UserID uuid.UUID `json:"user_id"`
|
|
|
|
WatchedAt time.Time `json:"watched_at"`
|
|
|
|
}
|
|
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
2020-06-21 00:49:11 +02:00
|
|
|
type TeamMember struct {
|
|
|
|
TeamMemberID uuid.UUID `json:"team_member_id"`
|
|
|
|
TeamID uuid.UUID `json:"team_id"`
|
|
|
|
UserID uuid.UUID `json:"user_id"`
|
|
|
|
Addeddate time.Time `json:"addeddate"`
|
2020-07-05 01:02:57 +02:00
|
|
|
RoleCode string `json:"role_code"`
|
2020-06-21 00:49:11 +02:00
|
|
|
}
|
|
|
|
|
2020-04-10 04:40:22 +02:00
|
|
|
type UserAccount struct {
|
2020-06-13 00:21:58 +02:00
|
|
|
UserID uuid.UUID `json:"user_id"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
Username string `json:"username"`
|
|
|
|
PasswordHash string `json:"password_hash"`
|
|
|
|
ProfileBgColor string `json:"profile_bg_color"`
|
|
|
|
FullName string `json:"full_name"`
|
|
|
|
Initials string `json:"initials"`
|
|
|
|
ProfileAvatarUrl sql.NullString `json:"profile_avatar_url"`
|
2020-07-05 01:02:57 +02:00
|
|
|
RoleCode string `json:"role_code"`
|
2020-09-11 20:54:43 +02:00
|
|
|
Bio string `json:"bio"`
|
2020-10-21 01:52:09 +02:00
|
|
|
Active bool `json:"active"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type UserAccountConfirmToken struct {
|
|
|
|
ConfirmTokenID uuid.UUID `json:"confirm_token_id"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type UserAccountInvited struct {
|
|
|
|
UserAccountInvitedID uuid.UUID `json:"user_account_invited_id"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
InvitedOn time.Time `json:"invited_on"`
|
|
|
|
HasJoined bool `json:"has_joined"`
|
2020-04-10 04:40:22 +02:00
|
|
|
}
|