Initial commit.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
use diesel::prelude::*;
|
||||
|
||||
// Define the user table structure matching the current SQL schema
|
||||
table! {
|
||||
user (id) {
|
||||
id -> Text,
|
||||
username -> Varchar,
|
||||
encrypted_password -> Varchar,
|
||||
}
|
||||
}
|
||||
|
||||
// Add system_resources table definition
|
||||
table! {
|
||||
system_resources (id) {
|
||||
id -> Text,
|
||||
datetime -> Integer,
|
||||
cpu_usage -> Float,
|
||||
total_memory -> BigInt,
|
||||
used_memory -> BigInt,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user