单独的架构& Django中的共享数据库多租户策略

时间:2016-04-16 17:42:28

标签: django postgresql sqlite multi-tenant saas

我有一个Django后端。现在,我正在使用sqlite3进行开发,并且在部署时我计划使用postgresql。

我有一个发票应用程序,每个租户至少(截至目前)至少有以下型号:

Manufacturer, Product (each product to have foreign key relation to manufacturer), 
Zone , Customer (each customer to have foreign key relation to zone),
Purchase invoice and Sales invoice.

现在,我的问题是如何在django& amp; amp; amp; amp; amp; amp; amp; amp; (sqlite3或postgresql)。我也找不到很多教程。那么,我应该怎么做呢?

0 个答案:

没有答案