feat: define identity domain aggregate

This commit is contained in:
Aravinth Manivannan 2024-05-17 23:26:40 +05:30
parent ef2c2fec2f
commit bd34170d6e
Signed by: realaravinth
GPG key ID: F8F50389936984FF
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,18 @@
// SPDX-FileCopyrightText: 2024 Aravinth Manivannan <realaravinth@batsense.net>
//
// SPDX-License-Identifier: AGPL-3.0-or-later
use derive_builder::Builder;
use derive_getters::Getters;
use serde::{Deserialize, Serialize};
#[derive(
Clone, Default, Debug, Serialize, Deserialize, Eq, PartialEq, Ord, PartialOrd, Getters, Builder,
)]
pub struct User {
username: String,
email: String,
hashed_password: String,
is_verified: bool,
is_admin: bool,
}

View file

@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: 2024 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2024 Aravinth Manivannan <realaravinth@batsense.net>
// //
// SPDX-License-Identifier: AGPL-3.0-or-later // SPDX-License-Identifier: AGPL-3.0-or-later
pub mod aggregate;