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 8582657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:20:49+00:00 2026-06-11T21:20:49+00:00

For a current project of mine, I am trying to first design the database

  • 0

For a current project of mine, I am trying to first design the database schema for the application. However, I am unable to decide whether or not to use Single Table Inheritence on the User model for my application.

A User can be an: Owner, Resident, or Admin, and since they share same attributes with different functions, I think STI applies here. Am I going in the right direction with this? If not, please suggest better alternatives. Is polymorphic association a fit here? Note that, authentication and access control is intended on Users, as normally would.

Regards,

  • 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-06-11T21:20:50+00:00Added an answer on June 11, 2026 at 9:20 pm

    I believe you are correct — STI would be appropriate in this case. And since authentication is intended on Users, it would give you the simpler solution. Also, since they share attributes as well, I would say STI over polymorphic association — the only thing that differs is the type of the user, which that handles.

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

Sidebar

Related Questions

this is for a small project of mine, I'm trying to set the current
im trying to use vba in an access project of mine but when I
A current jQuery project of mine requires browser resize (width AND height) functionality, some
As a current Xcode project of mine has gotten larger and larger, I've noticed
Current project is an Mvc4 application, I had Ioc working and recently it just
My current project is about doing some changes in an already build web application
The current project I'm working on, I am trying to explore a bunch of
my current project is based on Entity Framwork code-first. I have three types: Task,
My current project is created for API Level 4 and I use custom implementation
For a project of mine, I'm trying to implement a small part of the

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.