Example project
combination of jace996,gin,ent(sqlite)
go run github.com/jace996/saas/examples/ent
Host side ( use shared database):
Open http://localhost:8090/posts
Multi-tenancy ( use shared database):
Open http://localhost:8090/posts?__tenant=1
Open http://localhost:8090/posts?__tenant=2
Single-tenancy ( use separate database):
Open http://localhost:8090/posts?__tenant=3