agent_storage/family/family_member.rs
1//! Membership record connecting a user to a family.
2
3use crate::{FamilyId, FamilyRelationship, FamilyRole, UserId};
4use chrono::{DateTime, Utc};
5use serde::{Deserialize, Serialize};
6
7#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
8pub struct FamilyMember {
9 pub family_id: FamilyId,
10 pub user_id: UserId,
11 pub role: FamilyRole,
12 pub relationship: FamilyRelationship,
13 pub joined_at: DateTime<Utc>,
14}