diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-07-25 14:39:58 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-07-25 14:39:58 -0700 |
commit | 828deb42b6dbdb2d11527e073d96bde26d8fb979 (patch) | |
tree | 5f341922cff5e6b42cf0faf70227244584e4fe05 /rust/src/database_models.rs | |
parent | 46dbe1f8ee119aa5c7b200b943dd9f46e4d5fbcb (diff) | |
download | fatcat-828deb42b6dbdb2d11527e073d96bde26d8fb979.tar.gz fatcat-828deb42b6dbdb2d11527e073d96bde26d8fb979.zip |
abstracts; more tests
Diffstat (limited to 'rust/src/database_models.rs')
-rw-r--r-- | rust/src/database_models.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs index f875b492..50176f5f 100644 --- a/rust/src/database_models.rs +++ b/rust/src/database_models.rs @@ -225,7 +225,7 @@ pub struct ReleaseContribRow { pub id: i64, pub release_rev: Uuid, pub creator_ident_id: Option<Uuid>, - pub raw: Option<String>, + pub raw_name: Option<String>, pub role: Option<String>, pub index: Option<i64>, pub extra_json: Option<serde_json::Value>, @@ -236,7 +236,7 @@ pub struct ReleaseContribRow { pub struct ReleaseContribNewRow { pub release_rev: Uuid, pub creator_ident_id: Option<Uuid>, - pub raw: Option<String>, + pub raw_name: Option<String>, pub role: Option<String>, pub index: Option<i64>, pub extra_json: Option<serde_json::Value>, @@ -278,6 +278,13 @@ pub struct FileReleaseRow { pub target_release_ident_id: Uuid, } +#[derive(Debug, Queryable, Insertable, Associations, AsChangeset)] +#[table_name = "abstracts"] +pub struct AbstractsRow { + pub sha1: String, + pub content: String, +} + #[derive(Debug, Queryable, Identifiable, Associations, AsChangeset)] #[table_name = "editgroup"] pub struct EditgroupRow { |