Advertisement
Guest User

Untitled

a guest
Jun 6th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. Design choices
  2. Features:
  3. An user can create an account.
  4. An user can log in with an existing account.
  5. An user can start a travel within a zone
  6. An user can end a travel within a zone
  7. An user can see their old travels
  8. An user can see their balance
  9. An user can update their balance
  10. An user can log out
  11. Constrains
  12. An user can not have more than 999kr on their account.
  13. An user must have an unique username
  14.  
  15. SQLite:
  16. My app make us of SQLite for it's database. The database consist of two tables:
  17. AccountTable
  18. TravelTable
  19.  
  20. The AccountTable has 4 columns: username:String, name:String, balance:double and password:String.
  21. The TravelTable has 5 columns: start:int, end:int, date:Date, cost:double and username:String.
  22. The two tables are connected by the user's username, which has to be unique. This is asserted when the a new user tries to create an account.
  23. The start and end in the TravelTable is meant to be a zone, and I chose the zone to be represented by an int.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement