create an ERD  with oracle data modeler  DROP TABLE gym_user; DROP TABLE administration; DROP TABLE FAQ; DROP TABLE feedback; DROP TABLE

create an ERD  with oracle data modeler 

DROP TABLE gym_user;
DROP TABLE administration;
DROP TABLE FAQ;
DROP TABLE feedback;
DROP TABLE schedule;
DROP TABLE crowd_meter;

CREATE TABLE gym_user (
user_id INT(8) NOT NULL,
fname VARCHAR(15) NOT NULL,
lname VARCHAR(15) NOT NULL,
email VARCHAR(50) NOT NULL,
address VARCHAR(400) NOT NULL,
phone_num VARCHAR(12) NOT NULL,
DOB DATE NOT NULL,
PRIMARY KEY (user_id)
) ENGINE=InnoDB;

CREATE TABLE administration (
username VARCHAR(30) PRIMARY KEY,
fname VARCHAR(15) NOT NULL,
lname VARCHAR(15) NOT NULL,
email VARCHAR(50) NOT NULL,
password VARCHAR(255) NOT NULL
) ENGINE=InnoDB;

CREATE TABLE FAQ (
question VARCHAR(255) PRIMARY KEY,
answer VARCHAR(255) NOT NULL
) ENGINE=InnoDB;

CREATE TABLE feedback (
feedback_id INT PRIMARY KEY,
feedback_text VARCHAR(255) NOT NULL,
feedback_date DATE NOT NULL
) ENGINE=InnoDB;

CREATE TABLE schedule (
schedule_id INT PRIMARY KEY,
duration INT NOT NULL,
announcement_text TEXT NOT NULL
) ENGINE=InnoDB;

CREATE TABLE crowd_meter (
current INT(3) PRIMARY KEY,
user_id INT(8) NOT NULL,
time_entery VARCHAR(4),
FOREIGN KEY (user_id) REFERENCES gym_user(user_id)
) ENGINE=InnoDB;

INSERT INTO gym_user (user_id, fname, lname, email, address, phone_num, DOB) VALUES
(‘87959403’, ‘Travis’, ‘James’, ‘[email protected]’, ‘203 Kimberly Rd, Winchester VA’, ‘540-533-6738’, ‘2003-03-01’);

INSERT INTO crowd_meter (current, user_id, time_entery) VALUES
(‘1’, ‘87959403’, ‘1300’);

INSERT INTO administration (username, fname, lname, email, password) VALUES
(‘coach.spring’, ‘Coach’, ‘Spring’, ‘[email protected]’, ‘securepass456’);

INSERT INTO FAQ (question, answer) VALUES
(‘Is the Gym only for student athletes?’, ‘No the gym is for everyone’);

INSERT INTO schedule (schedule_id, duration, announcement_text) VALUES
(‘1’, ‘1’, ‘*Special Announcement: Due to the unforeseen snowstorm the gym along with the school will be closed.’);

INSERT INTO feedback (feedback_id, feedback_text, feedback_date) VALUES
(‘1’, ‘Great practice today!’, ‘2025-03-20’);

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

 The Rest of the resources and instructions are provided in the screenshots below. You will need the Project overview to complete this

 The Rest of the resources and instructions are provided in the screenshots below. You will need the Project overview to complete this assignment. Project Overview This project includes the following tasks: Gather product information Analyze and differentiate product vulnerabilities Recommendation based on empirical data collection Objective: Product Selection Recommendation Organizations

 How Does Surescripts Integration Improve Prescription Management?  The Future of E-Prescriptions: Why Surescripts Integration is a Must-Have In

 How Does Surescripts Integration Improve Prescription Management?  The Future of E-Prescriptions: Why Surescripts Integration is a Must-Have In today’s fast-evolving healthcare landscape, seamless data exchange is essential for improving patient care and optimizing workflows. Surescripts integration solutions provide a secure and efficient way to connect pharmacies, healthcare providers, and electronic

[url= Integration Services[/url] are transforming businesses by streamlining operations, enhancing customer experiences, and enabling data-driven

[url= Integration Services[/url] are transforming businesses by streamlining operations, enhancing customer experiences, and enabling data-driven decisions. By automating repetitive tasks, AI frees up resources for more strategic activities, improving productivity. AI tools like chatbots and recommendation engines offer personalized solutions, fostering customer loyalty. AI also helps businesses analyze large datasets

  AI Consulting Services can significantly transform how edtech companies approach personalized learning. By leveraging the power of Artificial

  AI Consulting Services can significantly transform how edtech companies approach personalized learning. By leveraging the power of Artificial Intelligence and Machine Learning, AI consultants help edtech platforms analyze vast amounts of student data—such as learning patterns, performance metrics, and engagement behavior—to create customized learning paths for individual students. An