user.rs 336 B

123456789101112
  1. // type mapped https://kotiri.com/2018/01/31/postgresql-diesel-rust-types.html
  2. use chrono::Utc;
  3. #[derive(Debug, Clone, sqlx::FromRow)]
  4. pub struct UserTable {
  5. pub(crate) id: uuid::Uuid,
  6. pub(crate) email: String,
  7. pub(crate) name: String,
  8. pub(crate) create_time: chrono::DateTime<Utc>,
  9. pub(crate) password: String,
  10. }