마일스톤 작업 생성 동기화를 진행하기 위해 Plane project별 active sync 설정을 Core DB에 저장하고 조회할 수 있는 persistence 경계와 검증 산출물을 함께 정리한다.
42 lines
1.5 KiB
Go
42 lines
1.5 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.31.1
|
|
|
|
package db
|
|
|
|
import (
|
|
"encoding/json"
|
|
"time"
|
|
)
|
|
|
|
type ProjectSyncSetting struct {
|
|
ID int64 `json:"id"`
|
|
Provider string `json:"provider"`
|
|
Tenant string `json:"tenant"`
|
|
Project string `json:"project"`
|
|
GitRemoteUrl string `json:"git_remote_url"`
|
|
SourceBranch string `json:"source_branch"`
|
|
WorkspaceID string `json:"workspace_id"`
|
|
WorkspaceBasePath string `json:"workspace_base_path"`
|
|
RepoDirName string `json:"repo_dir_name"`
|
|
Active bool `json:"active"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type Task struct {
|
|
ID string `json:"id"`
|
|
Title string `json:"title"`
|
|
Source string `json:"source"`
|
|
Status string `json:"status"`
|
|
Payload json.RawMessage `json:"payload"`
|
|
Result json.RawMessage `json:"result"`
|
|
Error *string `json:"error"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
ExternalProvider *string `json:"external_provider"`
|
|
ExternalID *string `json:"external_id"`
|
|
ExternalUrl *string `json:"external_url"`
|
|
ExternalMetadata json.RawMessage `json:"external_metadata"`
|
|
Metadata json.RawMessage `json:"metadata"`
|
|
}
|