feat(models): adding models for sqlx in rust
This commit is contained in:
parent
d746e95b9e
commit
49eb9f5964
4 changed files with 74 additions and 0 deletions
12
src/models/user.rs
Normal file
12
src/models/user.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
use sqlx::FromRow;
|
||||
|
||||
#[derive(Debug, FromRow)]
|
||||
pub struct User {
|
||||
pub user_id: String,
|
||||
pub is_owner: bool,
|
||||
pub is_buyer: bool,
|
||||
pub is_dev: bool,
|
||||
pub is_enium: bool,
|
||||
pub is_pwn: bool,
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue