JumboCode / TUTV

JumboCode project for TUTV, currently led by Frank Ma. Led by Deepanshu Utkarsh 2019 - 2020.
4 stars 0 forks source link

Create schema proposals in the wiki #16

Closed duci9y closed 4 years ago

duci9y commented 4 years ago

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.

thedaysob commented 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; requestedITem: 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; // Array of 1~365 representing the available rental days in the year category: Category; }

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 }

Frama-99 commented 4 years ago

This looks great! A few ideas to add:

controversial commented 4 years ago

Here's a wiki page which includes an outline of some database schema details that we discussed during hack night tonight.