Closed luksamuk closed 3 months ago
deleted_at
field)Company
(with AutoMigration)User
and Product
models and messages to accept and manipulate company_id
User
Product
USER
serviceUSER
controllerUSER
repository (filter queries by company_id
)PRODUCTS
servicePRODUCTS
controllerPRODUCTS
repository (filter queries by company_id
)company_id
from models while serializing to JSON (REST services won't need to return it)company_id
into considerationFuzzy test tool will be broken into another task.
Story
As a system administrator, I would like to be able to manage tenants so that each client using the system has a corresponding tenant to itself.
As a system user, I would like to be able to log in to my company's own separate subsystem.
As a system user, I would like to be able to manage my company's products and users, but my company's data should be inaccessible to other companies. Furthermore, other companies' data should be inaccessible to me.
Functional Requirements
Tenants
REST API
GET /api/v1/<company-uuid>/users/<user-uuid>
Other services
Extra
Non-functional Requirements
TENANT Service
REST Service
USER and PRODUCTS Services
Fuzzy Tool