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

  • Home
  • SEARCH
  • 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 6024389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:08:54+00:00 2026-05-23T04:08:54+00:00

This is my first project which I’ve encountered that I can’t get by on

  • 0

This is my first project which I’ve encountered that I can’t get by on NSUserDefaults peppered with some NSCoding protocol. I’ve been asked to write some POS software.

Essentially, the App needs to store a bunch of products, prices and sales accounts. The user should be able to add items and accounts, and track the balance of accounts over time. The balance of an account should be able to be carried over from one “Session” (time period) to the next.

I’m comfortable with the concepts, but I’d like to be confident that I’m modeling this right. Here’s how I’ve modeled my data. I’d like to know if I’ve done this properly or if there are any glaring errors/omissions.

I’ve created an “Account” Entity, which has the following properties:

  • First Name
  • Last Name
  • Account ID
  • Group
  • There is a relationship to the transaction entity.

I’ve created an entity for each Session. Again, a session is just like a fiscal month. The session will have a custom name and an ID.

  • Session ID
  • Session Name
  • There is a relationship to all of the accounts that are applied to that session.

There are of course, products, which have a name and ID. There is also a relationship to the “price” object, so I can change the prices without affecting balances.

Please see this screenshot from Xcode 4 which explains my model in its entirety:

enter image description here

Edit:

Looking at this, it seems that I’m missing some important info, such as dates of transactions etc. That said, am I on the right track?

  • 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-23T04:08:55+00:00Added an answer on May 23, 2026 at 4:08 am

    You probably don’t need to have an entity for price, as it will likely just be a float. I’d recommend adding a price attribute to your product entity instead.

    I don’t know if transactions will need names or not, I suppose if you want to have notes then they should.

    Also transactions should probably have a to-many relationship with products.

    Will this be used on a single device or will there be many users? If each user (account) is responsible for its own data then it may make more sense to have transactions/session rather than transactions/user.

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

Sidebar

Related Questions

I have a Class Library project which houses some shared code between other projects
I have this C++ project which compiles using a Makefile, and sometimes when (
sorry if this is a dumb Q, this is my first Rails3 project... For
I'm trying to set up a simple association in NHibernate (this is the first
Hi I'm using TFS2010 to build a (master) project which itself sequentially calls two
I have a project which contains the entry point of my application and a
I have a Git project which has a long history. I want to show
First i would apologize for the question as there are answers out there but
So I've run into something and was wondering if you could help me out.
In a postgres database I have a table with, among others, an int[] field.

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.