use second_brain_core::schema::{Memory, MemoryType};
#[test]
fn memory_new_has_empty_machine_id() {
let m = Memory::new(
"test".to_string(),
MemoryType::Semantic,
"test".to_string(),
String::new(),
);
assert_eq!(m.machine_id, "");
}
#[test]
fn with_machine_id_sets_field() {
let m = Memory::new(
"test".to_string(),
MemoryType::Semantic,
"test".to_string(),
String::new(),
)
.with_machine_id("abc-123".to_string());
assert_eq!(m.machine_id, "abc-123");
}