Skip to content

Instantly share code, notes, and snippets.

@mikeymaio
Last active April 14, 2017 19:12
Show Gist options
  • Select an option

  • Save mikeymaio/3a4e3ba5a9acfb63c72479410c8f54d3 to your computer and use it in GitHub Desktop.

Select an option

Save mikeymaio/3a4e3ba5a9acfb63c72479410c8f54d3 to your computer and use it in GitHub Desktop.
Freelance App Data Models/Schemas
USER : {
name: {
first,
last
},
email,
phone,
address,
hashedPassword,
salt,
userId,
templates: [
{
name,
fields: [],
templateId
// userId
]
}
CLIENTS: [
{
clientId,
name: {
first,
last
},
company,
email,
phone,
address,
userId
projects: [
{
clientName,
projectName,
rate,
ratePer (hr, day, fixed, etc),
budget,
startDate,
endDate,
totalTimeSpent,
timeSpentThisBill,
completed (bool),
notes
userId,
projectId,
// clientId
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment