agent_storage/identity/user.rs
1//! Platform user record.
2
3use super::UserId;
4use chrono::{DateTime, NaiveDate, Utc};
5use serde::{Deserialize, Serialize};
6
7/// Stable internal EME identity. Provider-specific identifiers belong in UserIdentity.
8#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
9pub struct User {
10 pub id: UserId,
11 pub display_name: Option<String>,
12 /// Calendar date of birth, when known.
13 #[serde(default)]
14 pub birthday: Option<NaiveDate>,
15 /// IANA timezone identifier configured for this user, when known.
16 #[serde(default)]
17 pub timezone: Option<String>,
18 pub created_at: DateTime<Utc>,
19 pub updated_at: DateTime<Utc>,
20}