nikosrossolatos / deadline

Task management tool with a twist
MIT License
0 stars 0 forks source link

Provide initial Models #7

Open nikosrossolatos opened 7 years ago

nikosrossolatos commented 7 years ago

Models currently needed:

Project User Issue

nikosrossolatos commented 7 years ago

As per our discussion with @vcharalampidis the models currently have this format. Note that an extra model has been added.

Project = {
  name: String,
  id: Number,
  createdAt: Date,
  createdBy: @user,
  updatedAt: Date
}

User = {
  fullname: String,
  email: String,
  password: SHA256String,
  createdAt: Date,
  updatedAt: Date,
  avatar: String,
  role: String // admin, user, project manager, elevated user, etc,
  role: Binary // 11, 00, 10, 01, etc
}

Issue = {
  name: String,
  dueDate: String,
  category: String,
  assigner: @user,
  assignee: @user,
  project: @project,
  description: String,
  estimatedTime: Date,
  Priority: String, "high, low, mid, standard, whateverthefuck"
  createdAt: Date,
  updatedAt: Date,
  deadline: Date
}

Issue = {
  name: String,
  dueDate: String,
  category: String,
  assigner: {
    name: Nikos,
    gravatar: url
  },
  assignee: {
    name: Vasilis,
    gravatar: url
  },
  project: @project,
  description: String,
  estimatedTime: Date,
  Priority: String, "high, low, mid, standard, whateverthefuck"
  createdAt: Date,
  updatedAt: Date,
  deadline: Date
}

Comments = {
  commenteer: @user,
  text: String,
  createdAt: Date,
  updatedAt: Date,
  issue: @issueID
}