db, add core user functionality and tests; db mod

Adds all the basic user functions, and tests for them.

This is also intializes the DB Module, which will have more things in it
This commit is contained in:
Julia Lange 2026-02-05 13:10:21 -08:00
parent fafb017f64
commit 292b974f1e
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto
4 changed files with 185 additions and 0 deletions

11
koucha/src/db.rs Normal file
View file

@ -0,0 +1,11 @@
mod user;
pub use user::User;
macro_rules! define_key {
($name:ident) => {
#[derive(PartialEq, Debug, Copy, Clone)]
pub struct $name(i64);
};
}
define_key!(UserKey);