Closed duci9y closed 4 years ago
These are some of the class and interfaces that I thought of. It's written in typescript syntax. Let me know what you think!
class User { // Basic user definition userID: string; // Tufts ID? firstName: string; lastName: string; email: string; birthday: string;
// User relationship with equipments
borrowedItem: Array
// Misc.
projects: Array
interface Project {
name: string;
members: Array
class Admin { admiID: string; firstName: string; lastName: string; email: string; }
class Equipment { // Basic equipment info equipmentID: string; available: boolean; name: string; description: string;
// image: ImageBitmap;
// Filter by
schedule: Array
interface EquipmentRequest { requestID: string;
user: User; project: string;
equipment: Equipment; checkOut: Date; checkIn: Date; pickUpTime: string; }
interface EquipmentCancel { cancelID: string;
equipmentRequest: EquipmentRequest; }
interface EquipmentConfirm { confirmID: string;
equipmentRequest: EquipmentRequest; // user: User; // project: string;
// equipment: Equipment; // checkOut: Date; // checkIn: Date; // pickUpTime: string; }
interface LogInForm { username: string; password: string; }
interface Category { // Dictionary of all the category? // Something to hold categories of the equipments }
This looks great! A few ideas to add:
Here's a wiki page which includes an outline of some database schema details that we discussed during hack night tonight.
In our wiki, create a page title 'Schema proposals'. Within this, talk about how our database will look like using text, diagrams and/or code, however you feel is best.
Specifically:
Feel free to talk to @duci9y while working on this ticket.