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 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
  • 1 View
  • 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

This is my first applet project and for some reason when I try to
I've been working on my first iPad based project which has proven a massive
This is my first project in django and im using photologue for gallery, which
This is the first project by me which is using MongoDB. I have hosted
First some context: I have an MVC3 .net project which, for the sake of
This is my first azure project and I'm not sure if I'm doing something
This was my first Sinatra project - link shortener but I am stuck with
This is first time I am doing a project in other then English Language
This is my first time building an iOS project using any kind of advanced
This is my first time doing this sort of project so apologies if 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.