diff --git a/src/database.rs b/src/database.rs index efb0517..b173783 100644 --- a/src/database.rs +++ b/src/database.rs @@ -32,13 +32,6 @@ pub struct Doc { /// This value can change. pub name: String, - /// The MIME type of this document. - /// - /// Special values include: - /// - /// - `application/vnd.google-apps.folder`, which indicates a folder - pub mime_type: String, - /// Whether the user has starred this document. pub starred: bool, @@ -50,6 +43,13 @@ pub struct Doc { /// Prefer `utc_mod_time()` to get this information with correct timezone /// tagging. (Namely, that this value is UTC.) pub modified_time: NaiveDateTime, + + /// The MIME type of this document. + /// + /// Special values include: + /// + /// - `application/vnd.google-apps.folder`, which indicates a folder + pub mime_type: String, } impl Doc { diff --git a/src/schema.rs b/src/schema.rs index 0bc0e78..802812e 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -2,10 +2,10 @@ table! { docs (id) { id -> Text, name -> Text, - mime_type -> Text, starred -> Bool, trashed -> Bool, modified_time -> Timestamp, + mime_type -> Text, } }