From 7f3d8e3d3d9aa36c859fc808464f1eee53e9e897 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 17 Nov 2021 14:48:31 -0800 Subject: rust: implement content_scope --- rust/src/database_models.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rust/src/database_models.rs') diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs index 76c8675d..0427f9c8 100644 --- a/rust/src/database_models.rs +++ b/rust/src/database_models.rs @@ -220,6 +220,7 @@ pub struct FileRevRow { pub sha256: Option, pub md5: Option, pub mimetype: Option, + pub content_scope: Option, } #[derive(Debug, Associations, AsChangeset, Insertable)] @@ -231,6 +232,7 @@ pub struct FileRevNewRow { pub sha256: Option, pub md5: Option, pub mimetype: Option, + pub content_scope: Option, } entity_structs!( @@ -291,12 +293,14 @@ pub struct FilesetRevUrlNewRow { pub struct FilesetRevRow { pub id: Uuid, pub extra_json: Option, + pub content_scope: Option, } #[derive(Debug, Associations, AsChangeset, Insertable)] #[table_name = "fileset_rev"] pub struct FilesetRevNewRow { pub extra_json: Option, + pub content_scope: Option, } entity_structs!( @@ -360,6 +364,7 @@ pub struct WebcaptureRevRow { pub extra_json: Option, pub original_url: String, pub timestamp: chrono::NaiveDateTime, + pub content_scope: Option, } #[derive(Debug, Associations, AsChangeset, Insertable)] @@ -368,6 +373,7 @@ pub struct WebcaptureRevNewRow { pub extra_json: Option, pub original_url: String, pub timestamp: chrono::NaiveDateTime, + pub content_scope: Option, } entity_structs!( -- cgit v1.2.3