[Lending system] [database] fund flow meter & interest table: How to Design

Source: Internet
Author: User
Is the interest table physically stored in the database? For example, if a user is recorded as 1 million yuan and returns his/her monthly interest, the monthly interest is a separate physical record. after the monthly interest is paid, this record is deleted. If it does not exist physically, it should be a field dependent on the savings table? Update this word every month... is the interest table physically stored in the database? For example, if a user is recorded as 1 million yuan and returns his/her monthly interest, the monthly interest is a separate physical record. after the monthly interest is paid, this record is deleted.

If it does not exist physically, it should be a field dependent on the savings table? This field is updated every month to reduce the amount. if it is extended, there are still many problems.

What fields does a streaming water meter need?

/////////

So how do I design a table for the flow and interest? How to operate these tables? Which of your predecessors has relevant information, please share it with me
/////////
In fact, I personally prefer to adopt a simple method in the early stage, that is, to record the relevant information in the database statically when all lending occurs, and to actually default, impose fines, and pay back the interest afterwards, wait for these humans to view the data on a daily basis, and the database does not need to be triggered on a regular basis. I personally feel that the transaction system is awesome.

Reply content:

Is the interest table physically stored in the database? For example, if a user is recorded as 1 million yuan and returns his/her monthly interest, the monthly interest is a separate physical record. after the monthly interest is paid, this record is deleted.

If it does not exist physically, it should be a field dependent on the savings table? This field is updated every month to reduce the amount. if it is extended, there are still many problems.

What fields does a streaming water meter need?

/////////

So how do I design a table for the flow and interest? How to operate these tables? Which of your predecessors has relevant information, please share it with me
/////////
In fact, I personally prefer to adopt a simple method in the early stage, that is, to record the relevant information in the database statically when all lending occurs, and to actually default, impose fines, and pay back the interest afterwards, wait for these humans to view the data on a daily basis, and the database does not need to be triggered on a regular basis. I personally feel that the transaction system is awesome.

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.