mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat(organization): add organization table (#2669)
This commit is contained in:
13
crates/api_models/src/organization.rs
Normal file
13
crates/api_models/src/organization.rs
Normal file
@ -0,0 +1,13 @@
|
||||
pub struct OrganizationNew {
|
||||
pub org_id: String,
|
||||
pub org_name: Option<String>,
|
||||
}
|
||||
|
||||
impl OrganizationNew {
|
||||
pub fn new(org_name: Option<String>) -> Self {
|
||||
Self {
|
||||
org_id: common_utils::generate_id_with_default_len("org"),
|
||||
org_name,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user