Skip to content
SHC Docs

assignment

Generated file. Do not edit by hand. Regenerate from the repo root with make docs/generate.

This page is generated from the ent schema and the migration head. The running unit is a deployment and the catalog thing is an app.

erDiagram
assignment {
int id PK
int deployment_id UK, FK
string service_name UK
int ordinal UK
int incarnation UK
string node_id
int64 generation
string state
string target_node_id
string previous_node_id
int64 moved_volume
int64 cpu_millicores
int64 memory_bytes
string reason
string desired
bool drain_stopped
string spec_digest
string prepared_spec_digest
int64 prepare_revision
bool draining
int64 drain_revision
string pulled_spec_digest
string pull_failed_spec_digest
text pull_error_message
int64 pull_revision
time retired_at
time updated_at
}
assignment }o--|| deployment : deployment
columntypenullkey
idintnoPK
deployment_idintnoUK, FK
service_namestringnoUK
ordinalintnoUK
incarnationintnoUK
node_idstringno
generationint64no
statestringno
target_node_idstringyes
previous_node_idstringyes
moved_volumeint64no
cpu_millicoresint64no
memory_bytesint64no
reasonstringyes
desiredstringno
drain_stoppedboolno
spec_digeststringno
prepared_spec_digeststringno
prepare_revisionint64no
drainingboolno
drain_revisionint64no
pulled_spec_digeststringno
pull_failed_spec_digeststringno
pull_error_messagetextno
pull_revisionint64no
retired_attimeyes
updated_attimeno

no command writes this table (modules/deploymentspec/store.go, modules/scheduler/apply.go, modules/scheduler/compact_retired.go, modules/scheduler/scheduler.go, modules/scheduler/stack.go, modules/scheduler/stack_follow.go)