Milestone work item 생성 동기화에서 workspace slot 상태를 DB에 저장하고 available slot을 원자적으로 예약할 수 있어야 한다. 리뷰 루프 산출물을 archive하고, 현재 로드맵 우선순위를 Workbench Provider Slot Composition으로 조정한다.
52 lines
1.8 KiB
Go
52 lines
1.8 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"`
|
|
}
|
|
|
|
type WorkspaceSlot struct {
|
|
ID int64 `json:"id"`
|
|
ProjectSyncSettingID int64 `json:"project_sync_setting_id"`
|
|
SlotIndex int32 `json:"slot_index"`
|
|
State string `json:"state"`
|
|
Path string `json:"path"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|