Seed Data - djgamekid/GDP-Group-I-bearcatmanager GitHub Wiki
Seed Data
Instructions to implement (utilizing MongoDB):
Connecting with MongoDB for VS Code
-
Install MongoDB for VS Code. In VS Code, open "Extensions" in the left navigation and search for "MongoDB for VS Code." Select the extension and click install.
-
In VS Code, open the Command Palette. Click on "View" and open "Command Palette." Search "MongoDB: Connect" on the Command Palette and click on "Connect with Connection String."
-
Connect to your MongoDB deployment. Paste your connection string into the Command Palette.
(Not shown as our database isn't directly linked and shows sensitive password)
This data will be used in future demos to demonstrate the pathing of information and will be updatable through API calls.
- Note this data is to be used in our future web application as "dummy data" and will not be included in the final deliverable.
{
"admin": {
"adminID": 0110101000,
"name": "admin_name",
"email": "[email protected]",
"role": "Owner"
}
"admin": {
"adminID": "0110102001",
"name": "Jordan Smith",
"email": "[email protected]",
"role": "Coordinator"
}
}
{
"user": {
"userID": 0000000001,
"name": "Anthony",
"email": "[email protected]",
"role": "Student" // Possible values: "Student" or "Staff"
}
"user": {
"userID": "0000000002",
"name": "Sophia Lee",
"email": "[email protected]",
"role": "Staff" // Possible values: "Student" or "Staff"
}
}
{
"event": {
"eventID": 0123456789,
"adminID": 0110101000,
"name": "Football game",
"description": "There will be a football game this saturday agaisnt wahsintgton state university, the bearcats got this in the bag",
"time": "7:00pm",
"location": "Bearcat Areana",
"date": 2012-04-23T18:25:43.511Z
}
"event": {
"eventID": "0123456790",
"adminID": "0110102001",
"name": "Art Exhibition",
"description": "An exhibition showcasing the artwork created by the senior art students.",
"time": "5:30pm",
"location": "Main Hall Gallery",
"date": "2023-11-15T17:30:00.000Z"
}
}
{
"TicketInformation": {
"TicketID": "1234567890",
"AdminID": "0110101000",
"EventID": "0123456789",
"Type": "VIP",
"Price": "$50.00",
"Availability": "100"
"UserID": "0000000001",
}
}
{
"AttendanceRecords": {
"AttendanceID": "9876543210",
"EventID": "0123456789",
"UserID": "0000000001",
"Status": "Present"
}
}
{
"NotificationDetails": {
"NotificationID": "4567890123",
"UserID": "0000000002",
"Message": "Your payment for the Football game event is pending. Please complete the payment to confirm your ticket.",
"Type": "Payment Reminder"
}
}
{
"PaymentInformation": {
"PaymentID": "10123456",
"UserID": "0000000001",
"EventID": "0123456789",
"AdminID": "0110101000",
"Amount": "$150.00",
"PaymentStatus": "Completed",
"UsercartCartID": "60013003"
}
}
"PaymentInformation": {
"PaymentID": "10123456",
"UserID": "0000000001",
"EventID": "0123456789",
"AdminID": "0110101000",
"Amount": "$150.00",
"PaymentStatus": "Completed",
"UsercartCartID": "60013003"
}
{
"PaymentInformation": {
"PaymentID": "564654321",
"UserID": "0000000002",
"EventID": "0123456789",
"AdminID": "0110101000",
"Amount": "$75.00",
"PaymentStatus": "Pending",
"UsercartCartID": "70014004"
},
}
{
"Cart": {
"CartID": "60013003",
"UserID": "0000000001",
"CreatedAt": "2024-10-25T14:45:00Z",
"Status": "Active"
}
"Cart": {
"CartID": "70014004",
"UserID": "0000000002",
"CreatedAt": "2024-10-25T15:00:00Z",
"Status": "Pending"
}
}