- Company
- ID (Long)
- Name (String)
- Email (String)
- Admin ID (String)
- Registered On (Date Time)
- Modified On (Date Time)
- Documents Path (String)
- User
- ID (String)
- Email (String)
- Password (String)
- Role (ROLE)
- Company ID (Long)
- Status (USER STATUS)
- Registered On (Date Time)
- App
- ID (String)
- Name (String)
- Owner IDs (List(String))
- Company ID (Long)
- App Key (String)
- Created By (String)
- Created On (Date Time)
- Modified By (String)
- Modified On (Date Time)
- Config
- ID (String)
- Name (String)
- Description (String)
- Type (TYPE)
- Value (String)
- App ID (String)
- Created By (String)
- Created On (Date Time)
- Modified By (String)
- Modified On (Date Time)
- USER STATUS
- ACTIVATED
- DEACTIVTED
- ROLE
- USER
- ADMIN
- SUPER_ADMIN
- TYPE
- STRING
- BOOLEAN
- OBJECT
- NUMERIC
-
Company
- Register
register(CompanyDetails, AdminDetails) { Check if company is already registered or not based on email Register company Register Admin user }
- Fetch All (Only for SuperAdmin)
fetch() { get all companies }
- Fetch (Only for SuperAdmin)
fetch(CompanyId) { get company by id if present }
- Update (Only for Admin)
update(UpdatedDetails, CompanyId) { get company by id if present else return update details }
-
User
- Register (Only for Admin)
register(UserDetails) { Check if user exist with same email id register user Mail user }
- Deactivate (Only for Admin)
deactivate(Email) { Check if user exist with email id deactivate the user Mail Admin }
- Login
login(LoginDetails) { Check if user exists with email id if (password is nil) { updatePassword return } verify auth return }
-
App
- Add
add(ServiceDetails) { Check if app exists with the same name for the company Add service }
- Delete
delete() { Check if service exists with the appKey Delete only if the user is one of the owners Delete all configs Mail all owners }
- Update (Only to update name and owners)
update(ServiceDetails) { Check if service exists with the appKey update details mail all owners }
- Fetch All
fetch() { Get all services for the company id }
-
Configs
- Add
add(ConfigDetails, AppId) { Check if config exists with same name in the app add config mail the owners }
- Delete (Only for owners)
delete(ConfigId) { Check if config exists with id only if user is the owner of service mail the owners }
- Update
update(ConfigId) { Check if config exists with id update config mail the owners }
- Fetch All
fetch(AppId) { Fetch all configs for the app Id }
- Fetch
fetch(AppKey, ConfigName) { Check if config exists by name in the app return value or complete details }