21 lines
439 B
Rust
21 lines
439 B
Rust
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,
|
|
}
|
|
} |