Add tokens routes

This commit is contained in:
2025-03-19 18:57:38 +01:00
parent 3081757536
commit 544513d118
16 changed files with 376 additions and 18 deletions

View File

@ -55,22 +55,21 @@ diesel::table! {
token (id) {
id -> Int4,
#[max_length = 150]
label -> Varchar,
name -> Varchar,
time_create -> Int8,
time_update -> Int8,
user_id -> Int4,
#[max_length = 150]
token_value -> Varchar,
time_used -> Int8,
max_inactivity -> Nullable<Int4>,
max_inactivity -> Int4,
#[max_length = 50]
ip_restriction -> Nullable<Varchar>,
ip_net -> Nullable<Varchar>,
read_only -> Bool,
right_account -> Bool,
right_movement -> Bool,
right_inbox -> Bool,
right_attachment -> Bool,
right_user -> Bool,
right_auth -> Bool,
}
}