klesh opened a new issue, #2361:
URL: https://github.com/apache/incubator-devlake/issues/2361

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
found no similar feature requirement.
   
   
   ### Description
   
   As we discussed on #1680 and 
https://lists.apache.org/thread/qx6r0pdq5x9jt099ljk1p91dh763ov84
   The final conclusion were:
   
   ## Table design (framework)
   
   1. Existing `users` is to be renamed to `accounts` and moved to 
`domainlayer/crossdomain` package, it contains registration records from 
different platforms(github/gitlab/jira etc)
   2. Add a new table `users` (id,name,email) in `domainlayer/crossdomain`, it 
contains unique identities, each identity may have multiple `accounts`
   3. Add a new table `user_accounts` in `domainlayer/crossdomain`, it contains 
the relationship between `users` and `accounts`
   4. Add a new table `user_teams` in `domainlayer/crossdomain`, it contains 
the relationship between `users` and `teams`, one `user` might belongs to 
multiple `teams`.
   
   
   ## Plugin design (named `org`)
   
   1. API `PUT /plugins/org/users.csv` accepts a CSV file, it should contain 
all the fields from the `users` table, and with an extra field `team`
   
   
   ### Use case
   
   _No response_
   
   ### Related issues
   
   #1680
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to