-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Oct 20, 2025 at 09:09 PM
-- Server version: 9.1.0
-- PHP Version: 8.3.14

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `my_assignment_4`
--

-- --------------------------------------------------------

--
-- Table structure for table `album`
--

DROP TABLE IF EXISTS `album`;
CREATE TABLE IF NOT EXISTS `album` (
  `albumID` int NOT NULL AUTO_INCREMENT,
  `artistID` int NOT NULL,
  `albumCode` varchar(10) NOT NULL,
  `albumName` varchar(255) NOT NULL,
  `listPrice` decimal(10,2) NOT NULL,
  PRIMARY KEY (`albumID`),
  UNIQUE KEY `albumCode` (`albumCode`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `album`
--

INSERT INTO `album` (`albumID`, `artistID`, `albumCode`, `albumName`, `listPrice`) VALUES
(1, 1, 'strat', 'Fender Stratocaster', 699.00),
(2, 1, 'les_paul', 'Gibson Les Paul', 1199.00),
(3, 1, 'sg', 'Gibson SG', 2517.00),
(4, 1, 'fg700s', 'Yamaha FG700S', 489.99),
(5, 1, 'washburn', 'Washburn D10S', 299.00),
(6, 1, 'rodriguez', 'Rodriguez Caballero 11', 415.00),
(7, 2, 'precision', 'Fender Precision', 799.99),
(8, 2, 'hofner', 'Hofner Icon', 499.99),
(9, 3, 'ludwig', 'Ludwig 5-piece Drum Set with Cymbals', 699.99),
(10, 3, 'tama', 'Tama 5-Piece Drum Set with Cymbals', 799.99);

-- --------------------------------------------------------

--
-- Table structure for table `artist`
--

DROP TABLE IF EXISTS `artist`;
CREATE TABLE IF NOT EXISTS `artist` (
  `artistID` int NOT NULL AUTO_INCREMENT,
  `artistName` varchar(255) NOT NULL,
  PRIMARY KEY (`artistID`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `artist`
--

INSERT INTO `artist` (`artistID`, `artistName`) VALUES
(1, 'HipHop'),
(2, 'House'),
(3, 'Rave');

-- --------------------------------------------------------

--
-- Table structure for table `track`
--

DROP TABLE IF EXISTS `track`;
CREATE TABLE IF NOT EXISTS `track` (
  `trackID` int NOT NULL AUTO_INCREMENT,
  `customerID` int NOT NULL,
  `trackDate` datetime NOT NULL,
  PRIMARY KEY (`trackID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
