├── .env ├── .gitignore ├── Makefile ├── README.md ├── app.py ├── config.py ├── db ├── drop.sql ├── init&populate.sql ├── init.sql └── populate.sql ├── lib ├── database.py ├── models │ ├── __init__.py │ ├── base.py │ ├── item.py │ ├── order.py │ └── user.py ├── schema.py └── utils │ ├── __init__.py │ ├── classes.py │ └── unique_identifier.py └── requierements.txt /.env: -------------------------------------------------------------------------------- 1 | PYTHONPATH=. 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/.gitignore -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/README.md -------------------------------------------------------------------------------- /app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/app.py -------------------------------------------------------------------------------- /config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/config.py -------------------------------------------------------------------------------- /db/drop.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/db/drop.sql -------------------------------------------------------------------------------- /db/init&populate.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/db/init&populate.sql -------------------------------------------------------------------------------- /db/init.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/db/init.sql -------------------------------------------------------------------------------- /db/populate.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/db/populate.sql -------------------------------------------------------------------------------- /lib/database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/lib/database.py -------------------------------------------------------------------------------- /lib/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/lib/models/__init__.py -------------------------------------------------------------------------------- /lib/models/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/lib/models/base.py -------------------------------------------------------------------------------- /lib/models/item.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/lib/models/item.py -------------------------------------------------------------------------------- /lib/models/order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/lib/models/order.py -------------------------------------------------------------------------------- /lib/models/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/lib/models/user.py -------------------------------------------------------------------------------- /lib/schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/lib/schema.py -------------------------------------------------------------------------------- /lib/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/utils/classes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/lib/utils/classes.py -------------------------------------------------------------------------------- /lib/utils/unique_identifier.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Senhaji-Rhazi-Hamza/multi-tenancy-example/HEAD/lib/utils/unique_identifier.py -------------------------------------------------------------------------------- /requierements.txt: -------------------------------------------------------------------------------- 1 | flask 2 | SQLAlchemy==1.2.18 3 | psycopg2 4 | --------------------------------------------------------------------------------