Open mdewolfe opened 11 years ago
was it in the pull request? I couldn't find it :(
No. I had to junk my first copy of the project. And I only noticed the sample JSON array today. Still working on it.
Based on the sample I found in the project, the event data model would look something like this:
PSEvent
------------
id : int
eventId : int
status : int
creationDate : NSTimeInterval (which really just a CGFloat which really just a float)
lastmodeified : NSTimeInterval
userId : int
permission : int
name : NSString
userId
intended to represent?eventId
and id
?permisson
needed? Why is it there?status
? What are the possible values?I was going to use CoreData
to manage the data models, so all the int
s and float
s will actually be stored as NSNumber
s.
I think thats enough for now.
Alright so:
userId
is the user that created the event. Should probably change that to creator
to be more obviousid
is for. Looking at the ERD, there is only one id
in the events
table. Sooooo you can delete this lolpermission
was added to give users the ability to set events to be read-only for certain users. Although this hasnt been implemented yet, it is in the pipelinestatus
is also a field that I added with the intent to maybe allow users to hide images or whatnot. Not sure if this will be used, but it's there.Hope that answers your questions. Let me know if anything is still unclear.
Cool. I'll keep working on it.
Here is preliminary version of the data model: https://github.com/mdewolfe/partyStreamApp/tree/FEATURE_models
There is folder called DataModels
which contains the data models as an XML
file. Have look tell me what you think. I would recommend pulling my data model branch an open the project form there. Xcode will display the entities with their relationships pretty well. Or you plug through the XML
file.
Maybe create a new branch (develop
?), I''l send a pull request and we can leave comments as needed before it is actually merged.
Let me know what you think.
Develop branch created :)
I'll look at the DataModels
this evening.
Seems cool. Can you also add lat/long to the event and photo?
You can go ahead and pull-request it into develop :)
Will do. I will probably do it tomorrow if that's cool. I still have to generate the header files.
no rush. I still got some updates to do on the API
yeah this looks good to me. I'll go ahead and merge it in.
Also, I was thinking of the notion of using FourSquare. What are your thoughts? It could be used to replace the location storing, or as a compliment feature. IMO it would be nice to have both seeing as how not everyone uses FourSquare.
@iToto
I am going to use the example JSON array (its some where in one of the files, I forget which) of a list of events as my starting point for modelling the events.