ModelDeployments table
The ModelDeployments table in the FitStack - V2 schema has 28 columns, keyed by Id, with 1 foreign key to TrainingRuns.
Models run ON DEVICE — this is what the mobile clients download.
Columns (28)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| TrainingRunId | uuid | not null, references TrainingRuns.Id | |
| ModelType | integer | not null | |
| Status | integer | not null | `DeploymentStatus`. |
| VersionLabel | text | not null | |
| ReleaseNotes | text | ||
| ModelFormat | text | not null | |
| QuantizationType | text | not null | |
| FileSizeBytes | bigint | not null | |
| RolloutPercentage | integer | not null | Staged rollout to clients. |
| RolloutPhase | text | ||
| RolloutProgress | integer | ||
| MinAppVersion | text | ||
| ForceUpdate | boolean | not null | |
| ModelUrl | text | ||
| MetadataUrl | text | ||
| Sha256Checksum | text | ||
| DownloadCount | integer | not null | |
| MetricsJson | text | ||
| DeployedAt | timestamp with time zone | ||
| LastProgressAt | timestamp with time zone | ||
| CreatedByUserId | text | ||
| CreatedByEmail | text | ||
| LastModifiedByUserId | text | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (1)
(TrainingRunId)(IX_ModelDeployments_TrainingRunId)
Relationships
ModelDeployments.TrainingRunIdreferencesTrainingRuns.Id