Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database #22

Closed
Rashmikareddya opened this issue Sep 20, 2021 · 13 comments
Closed

Database #22

Rashmikareddya opened this issue Sep 20, 2021 · 13 comments

Comments

@Rashmikareddya
Copy link
Collaborator

Rashmikareddya commented Sep 20, 2021

Here is the ER diagram with the changes (Version 2.1)

ER Diagram

@Rashmikareddya
Copy link
Collaborator Author

Please mention your requirements, we will test the queries accordingly and push the SQL files. @ShubhraBhuniaGhosh @rishi4rks @pavleen14 @TheForeverLost

@ShubhraBhuniaGhosh
Copy link
Collaborator

create table code dedo!!!

@pavleen14
Copy link
Collaborator

pavleen14 commented Sep 20, 2021

Requirement as of now, is mainly for MeetingRoom & amenities table(s) from my end.

  • for fetching all the meeting room details
  • for fetching the credits/cost of each amenity.

@rishikeshshede
Copy link
Collaborator

query to check if DB already has data add 'n' number of users at once which I'm fetching and parsing from XML file

@Shalaka2021
Copy link
Collaborator

Shalaka2021 commented Sep 20, 2021

Please add the date field/column separately instead of datetime together, in the meetings table. Start and end time separate and date separate.

@alanpjohn
Copy link
Owner

Refer https://github.com/TheForeverLost/techyons-code-fury/tree/database/sql folder to get the SQL queries that are added to that branch

if you want to take the code into your own branch then

  • fetch the repo
  • check out the database branch locally and get it up to date with the remote database
  • go back to your own branch and then git rebase from the database branch

or you could do the simpler thing and copy paste the sql queries from github to workbench

@muskansingh11
Copy link
Collaborator

user table in which email should be kept unique

@alanpjohn
Copy link
Owner

Please add the date field/column separately instead of datetime together, in the meetings table. Start and end time separate and date separate.

@Shalaka2021 Will be it be okay if we keep it as DATETIME ?
I don't think it makes any difference if we use 3 columns with [ DATE , TIME , TIME ] or 2 columns with [DATETIME, DATETIME ].

There is one benefit to using [DATETIME , DATETIME] is that if the meeting crosses midnight, we can handle it better

@Shalaka2021
Copy link
Collaborator

@TheForeverLost Okay, we can go with this

@Rashmikareddya
Copy link
Collaborator Author

Rashmikareddya commented Sep 20, 2021

TO DO:

  • query to check if DB already has data add 'n' number of users at once
  • fetching all the meeting room details
  • fetching the credits/cost of each amenity
  • user table in which email should be kept unique
  • Trigger for update action
  • Trigger for last login

@ShubhraBhuniaGhosh
Copy link
Collaborator

please mention the database name.
give queries to insert at least 10 values in each table except amenities because its values are mentioned in the project description.

@ShubhraBhuniaGhosh
Copy link
Collaborator

if u are calculating total credit
then try to do the same when an edit happens on the meeting room table

@alanpjohn
Copy link
Owner

This is being transferred to #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants