diff --git a/models/staging/edeposit/schema.yml b/models/staging/edeposit/schema.yml index bcab921..7aac354 100644 --- a/models/staging/edeposit/schema.yml +++ b/models/staging/edeposit/schema.yml @@ -214,6 +214,15 @@ models: tests: - not_null: where: version = 'V1' + + - name: status_updated_date_utc + data_type: timestamp without time zone + description: | + Date of the last time the record was modified before screening + happened. Only relevant for V1 records. + tests: + - not_null: + where: version = 'V1' - name: updated_at_utc data_type: timestamp without time zone @@ -222,16 +231,38 @@ models: Athena/e-deposit application. tests: - not_null + + - name: updated_date_utc + data_type: timestamp without time zone + description: | + Date of the last edit of the record, as set by the + Athena/e-deposit application. + tests: + - not_null - - name: creation_at_utc + - name: athena_creation_at_utc data_type: timestamp without time zone description: | A client-provided timestamp of when the booking was created. It's an - optional field. + optional field, only relevant for 'V1' records. + + - name: athena_creation_date_utc + data_type: timestamp without time zone + description: | + A client-provided date of when the booking was created. It's an + optional field, only relevant for 'V1' records. - name: created_at_utc data_type: timestamp without time zone - description: The internal timestamp of when this record was created. + description: | + The internal application timestamp of when this record was created. + tests: + - not_null + + - name: created_date_utc + data_type: timestamp without time zone + description: | + The internal application date of when this record was created. tests: - not_null