Open Invoicing psi-database foreign key

Source: Internet
Author: User

Today in the PSI QQ group chatting up the topic of the database foreign key, I wrote this blog post, said I on the database foreign key considerations.

1, the database design should use foreign keys.

2, very cup with, PSI database design so far, no foreign key.

3, PSI will gradually put the database foreign key to fill up.

4, some places really can not add foreign keys. Here's an example:

4.1 t_warehouse_org in the org_id field, that can store the ID of the t_org, but also can store the T_user ID, this time, the foreign key cannot be added.

The Ref_number field in 4.2 T_inventory_detail can store the values of Ref_number fields for multiple documents

4.3 should be receivable, deal with, there is a similar situation inside


Open Invoicing psi-database foreign key

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.