Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7516567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:10:21+00:00 2026-05-30T01:10:21+00:00

I am structuring a modular php application using MySQL as my database. I would

  • 0

I am structuring a modular php application using MySQL as my database.

I would prefer to use redbean as my ORM library.

Version 2 allows me to introduce my own way of naming things while version 3 removes this ability and uses a default naming convention for all tables.

I am now trying to determine a way to name my tables and then decide whether I will use version 3 or version 2.

I am considering the following schema:

  • Core components

    • account
    • emailaddress
    • etc.
  • Modules

    • ecommerce_product
    • ecommerce_order
    • account_ecommerce_order (link table with core table)
    • ecommerce_order_ecommerce_product (link table between module tables)

Should I prefix my “core” tables with “core_”?

I like having prefixes for my modules as it is quite easily to determine whether a table belongs to a module or the core app. Are there any reasons against this?

The link tables bothers me some what as they can be excessively long. Are there any ways to make this better?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T01:10:23+00:00Added an answer on May 30, 2026 at 1:10 am

    I decided to go with the table names above and have migrated to RedBean 3.

    After thinking about it, I felt that prefixes for core components are not entirely useful. It is also longer to type $account = R::dispense('core_account') compared to $account = R::dispense('account').

    The core_ prefix does not add any syntatic value or enhance readability.

    Prefixing my modules ecommerce_product etc, is actually quite useful and enhances readability. When referencing an ecommerce_product, one can immediately know that it is part of the ecommerce module.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a WPF application, and I'm structuring it using the MVVM pattern.
I'm looking for a little help structuring a web form to include PHP validation
I'm structuring a database, and found that I have two different objects I'm trying
I would like to get some advice on structuring my javascript code and jquery
I'm using RequireJs for structuring my JavaScript code. Also, I'm using a lot of
another database structuring question, hope you guys dont mind :D i am having this
I need some help structuring my php. I am trying to get 3 different
I'm (I think) quite good at structuring my application classes and packages, but lately
I want some advice on structuring some (basic) php code. I need to display
I am torn in between two ways of structuring my database for processing orders.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.