Re: [GENERAL] Difficulty modelling sales taxes

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: [GENERAL] Difficulty modelling sales taxes
Дата
Msg-id CAKFQuwaDDOb2Ox5bkrs02VrubTDhiWaAjfEz3RCZkUAGizw40Q@mail.gmail.com
обсуждение исходный текст
Ответ на [GENERAL] Difficulty modelling sales taxes  ("Frank Millman" <frank@chagford.com>)
Список pgsql-general
On Mon, Jan 2, 2017 at 3:33 AM, Frank Millman <frank@chagford.com> wrote:

    CONSTRAINT _prod_tax_code_2 FOREIGN KEY (category_id, tax_code) REFERENCES tax_codes (category_id, code));

​This is ​typical solution to this modelling problem.  If you need to do other stuff (introduce redundancies) to make it play nice with the ORM then that is valid if unfortunate.

David J.

В списке pgsql-general по дате отправления:

Предыдущее
От: Melvin Davidson
Дата:
Сообщение: Re: [GENERAL] Difficulty modelling sales taxes
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: [GENERAL] Difficulty modelling sales taxes