laterite_admin/import/schema.rs
1//! The table and column identifiers.
2
3use laterite_core::strata::Iden;
4
5/// The run table: one row per import, from start to report.
6#[derive(Iden)]
7pub enum ImportRuns {
8 Table,
9 Id,
10 /// The resource whose form the rows went through, as its descriptor
11 /// declares the path.
12 Resource,
13 /// The stored payload's media record, when the file was kept.
14 MediaId,
15 ActorUserId,
16 ActorLabel,
17 /// `running`, `done` or `failed`.
18 Status,
19 /// The [`RunSpec`](crate::import::RunSpec) as JSON, so a report can say what it ran.
20 Spec,
21 Processed,
22 Created,
23 Updated,
24 Skipped,
25 Errors,
26 /// The [`Note`](crate::import::Note) list as JSON.
27 Notes,
28 /// Why the run itself stopped, when `status` is `failed`.
29 Failure,
30 StartedAt,
31 FinishedAt,
32}