nitiphone2021 Posted August 11, 2021 Share Posted August 11, 2021 Dear friends. As I would like to create a software like POS on web application. my question is: 1. Should I create only one Database for all customers? 2. in case I have only one Database, How can I saperate the customer information? by field or table name? 3. if I have new customer. I need to create new table or information for them? Quote Link to comment https://forums.phpfreaks.com/topic/313529-one-pos-software-for-many-customers-design-database/ Share on other sites More sharing options...
Barand Posted August 11, 2021 Share Posted August 11, 2021 (edited) Yes Unique customer id identifies the customer in the data Add new record to customer table Example +---------------+ | customer | +---------------+ | customer_id |-------+ +-----------------+ +----------------+ | customer_name | | | basket | | product | | email | | +-----------------+ +----------------+ | mobile | | | basket_id |-------+ +-----------------+ +-------| product_id | | etc | | | basket_date | | | basket_item | | | description | +---------------+ +------<| customer_id | | +-----------------+ | | price | +-----------------+ | | item_id | | +----------------+ +------<| basket_id | | | product_id |>-----+ | quantity | +-----------------+ Edited August 11, 2021 by Barand Quote Link to comment https://forums.phpfreaks.com/topic/313529-one-pos-software-for-many-customers-design-database/#findComment-1589012 Share on other sites More sharing options...
nitiphone2021 Posted August 15, 2021 Author Share Posted August 15, 2021 Oh, Seem my question is not clear, I mean I make a POS online software and sell it to many shop, so how can I saperate shop information, shop name, stock, login info.... Quote Link to comment https://forums.phpfreaks.com/topic/313529-one-pos-software-for-many-customers-design-database/#findComment-1589120 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.