use std::collections::HashMap;
use yukino::collection::AssociatedEntity;

#[Entity(name = "foo")]
pub struct Foo {
    integer: u32,
    int16: i16,
    list: Vec<String>,
    map: HashMap<String, String>,
    string: String,
    boolean: bool,
    option_string: Option<String>,
    option_num: Option<u32>,
    #[Association(mapped_by("id"), unique = true)]
    bar: AssociatedEntity<Bar>
}

#[Entity(name = "bar")]
pub struct Bar {
    #[ID]
    id: u64
}
