GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — OOP2-Capstone/initial database.sql at main · coding-chez/OOP2-Capstone

Expand file tree

/

initial database.sql

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
35 lines (31 loc) · 904 Bytes
/

initial database.sql

Copy path

File metadata and controls

35 lines (31 loc) · 904 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--players
CREATE TABLE players (
player_id INT AUTO_INCREMENT PRIMARY KEY,
player_name VARCHAR(50) NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
--scores
CREATE TABLE scores (
score_id INT AUTO_INCREMENT PRIMARY KEY,
player_name VARCHAR(50) NOT NULL,
points INT NOT NULL,
duration_seconds INT DEFAULT 60,
defeated_enemy BOOLEAN DEFAULT FALSE,
recorded_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
--words_used
CREATE TABLE words_used (
word_id INT AUTO_INCREMENT PRIMARY KEY,
score_id INT,
word_text VARCHAR(100) NOT NULL,
correct BOOLEAN,
timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (score_id) REFERENCES scores(score_id) ON DELETE CASCADE
);
--enemies
CREATE TABLE enemies (
enemy_id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(50) NOT NULL,
max_hp INT NOT NULL,
difficulty_level VARCHAR(20)
);
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.