2018-11-06 11:31:49 +00:00
|
|
|
# MutlitenantStack
|
|
|
|
|
2018-11-07 10:10:51 +00:00
|
|
|
This is a project to demonstrate multi tenancy usage in beego using postgres and separated databases
|
2018-11-06 11:31:49 +00:00
|
|
|
|
|
|
|
The api was scaffolded using:
|
|
|
|
|
|
|
|
`bee api multitenantStack -driver=postgres -conn="host=127.0.0.1 port=5435 user=postgres password=postgre dbname=company_template sslmode=disable"`
|
|
|
|
|
|
|
|
then `bee run -downdoc=true``
|
|
|
|
|
|
|
|
To regenerate docs simply run `bee generate docs`
|
2018-11-07 10:10:51 +00:00
|
|
|
|
|
|
|
## TODO
|
|
|
|
|
|
|
|
- company controller, create databases and so on
|
|
|
|
- Update not found to json
|
2018-11-07 19:13:26 +00:00
|
|
|
- load db connections from config
|
2018-11-08 07:36:08 +00:00
|
|
|
|
|
|
|
## Notes:
|
|
|
|
|
|
|
|
- Fixes have been placed into the beego orm for setting the timezone when using NewOrmWithDB()
|
2018-11-12 10:43:14 +00:00
|
|
|
|
|
|
|
## Management tools
|
|
|
|
|
|
|
|
- create databases,
|
|
|
|
- run different migrations on template and system
|
|
|
|
- run migrations on all company tables (list, connect, migrate)
|
|
|
|
- generate password
|