diff options
| author | Conrad Ludgate <conradludgate@gmail.com> | 2023-06-12 09:04:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-12 09:04:35 +0100 |
| commit | 8655c93853506acf05f6ae4e58bfc2c6198be254 (patch) | |
| tree | 22d20b35636ad2eb717d58c93ae07378adbb76eb /atuin-server/src/models.rs | |
| parent | Make Ctrl-d behaviour match other tools (#1040) (diff) | |
| download | atuin-8655c93853506acf05f6ae4e58bfc2c6198be254.zip | |
refactor server to allow pluggable db and tracing (#1036)
* refactor server to allow pluggable db and tracing
* clean up
* fix descriptions
* remove dependencies
Diffstat (limited to '')
| -rw-r--r-- | atuin-server-database/src/models.rs (renamed from atuin-server/src/models.rs) | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/atuin-server/src/models.rs b/atuin-server-database/src/models.rs index ee84f58a..a95ceba2 100644 --- a/atuin-server/src/models.rs +++ b/atuin-server-database/src/models.rs @@ -1,6 +1,5 @@ use chrono::prelude::*; -#[derive(sqlx::FromRow)] pub struct History { pub id: i64, pub client_id: String, // a client generated ID @@ -22,7 +21,6 @@ pub struct NewHistory { pub data: String, } -#[derive(sqlx::FromRow)] pub struct User { pub id: i64, pub username: String, @@ -30,7 +28,6 @@ pub struct User { pub password: String, } -#[derive(sqlx::FromRow)] pub struct Session { pub id: i64, pub user_id: i64, |
