dartmouth-cs98 / convocode-frontend

project-22f-convocode created by GitHub Classroom
2 stars 0 forks source link

❗️Data Models #23

Open lilymaechling opened 2 years ago

dylanbien commented 2 years ago

Our database will be stored in AWS RDS (Relational Database Service)

AWS Credentials:

Endpoints

Models:

The models are currently in flux. More research needs to be done on how chatbots works and respond to commands. I wonder if there is some way to create a graph for each convodex entry (and store it in redux). For example, if a user is creating a new function the graph is traversed (ie parameters: yes vs no) to build out the code

Covodex Model

{
  id: { type: Integer, unique: true },
  name: { type: String },
  description: { type: String },
  keyword???
}

Commands Model

{
  id: { type: Integer, unique: true },
  convodexId: { type: Integer, ref: 'Covodex' },
  command: { type: String },
  queries: { type: Map, of: String },
}

Session Chat Model (Redux)

{
  chatUser { type: String },
  chatContent: { type: String },
  chatTimestamp: { type: String },
}

Routes

GET api/convodex/:id GET api/commands/:id