J
J
jazzus2019-03-06 07:47:03
Database design
jazzus, 2019-03-06 07:47:03

What tables link ads, orders and payments?

Logic: The
user adds an ad.
The status of the object is not published.
The user pays for the ad.
Object status - published.
5 days
pass The status of the object is not published.
What should be the collection of tables? Possible without margins.
mysql database

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EVGENY T., 2019-03-06
@jazzus

User(id, name)
Ad(id, user_id, status, text)
Payment(id, user_id, ad_id, pay_date, sum)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question