new struct for invites
This commit is contained in:
@@ -13,3 +13,10 @@ pub struct channels {
|
||||
pub name: String,
|
||||
pub ctype: i64,
|
||||
}
|
||||
|
||||
#[derive(Queryable)]
|
||||
pub struct Invite {
|
||||
pub hash: i64,
|
||||
pub uses: i32, // simple that tracks the number of uses a thing has left
|
||||
pub expire: i64, // used as a unix time stamp
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user