-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSCHEMA.txt
47 lines (40 loc) · 1.39 KB
/
SCHEMA.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# MODELS / CONTROLLERS
User Model:
- id:integer
- provider:string
- uid:integer
- name:string
- oauth_token:string
- oauth_expires_at:DateTime
- age:integer
- gender:string
- interested_in:string (male or female)
- bio:string (describing self)
- ships:integer (number of successful ships)
- last_active:DateTime
User Controller: (profile page?)
- has 3 buttons -> start shipping, profile, chat
- leads to profile page
Chat Controller:
- redirected when clicking chat
- shows facebook messenger style chat
Shipping Model:
- user1_id:integer (use uid of user model to get all information
- user2_id:integer necessary for both parties)
- judge_id:integer (current user)
- pass_count:integer (count used to compare to threshhold)
Shipping Controller: (displays the ship page)
- method that gets all information of both people and judge?
- method that increments pass_count on click of button (or in erb file)
- VIEW that displays both profiles + buttons (pass / fail)
-> possible success screen so the shipper can know if his ship resulted in a successful ship
Sail Model:
- user1_id:integer
- user2_id:integer
- pass:boolean
# VIEWS
- Landing Page => root :: views/home/login.html.erb
- Home Page => /home#_=_ :: views/home/index.html.erb
- Dock => /dock :: views/dock/index.html.erb
- Profile => /profile :: views/home/profile.html.erb
- Chat => /chat :: views/chat/index.html.erb