| 19 | #[storable] |
| 20 | #[derive(CandidType, Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] |
| 21 | pub struct UserGroup { |
| 22 | /// The user group id, which is a UUID. |
| 23 | pub id: UUID, |
| 24 | /// The name of the user group (e.g. "Finance"). |
| 25 | pub name: String, |
| 26 | /// The last time the record was updated or created. |
| 27 | pub last_modification_timestamp: Timestamp, |
| 28 | } |
| 29 | |
| 30 | impl ModelKey<UserGroupId> for UserGroup { |
| 31 | fn key(&self) -> UserGroupId { |
no outgoing calls
no test coverage detected