new struct for invites

This commit is contained in:
shockrah 2020-01-31 00:16:22 -08:00
parent 6584b50d49
commit abf573812f

View File

@ -13,3 +13,10 @@ pub struct channels {
pub name: String, pub name: String,
pub ctype: i64, 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
}