-- MariaDB dump 10.19  Distrib 10.4.32-MariaDB, for Win64 (AMD64)
--
-- Host: localhost    Database: szkola_1tkp
-- ------------------------------------------------------
-- Server version	10.4.32-MariaDB

/*!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 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `klasa`
--

DROP TABLE IF EXISTS `klasa`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `klasa` (
  `IdKlasy` int(11) NOT NULL AUTO_INCREMENT,
  `NazwaKlasy` varchar(5) DEFAULT NULL,
  `Specjalizacja` varchar(20) DEFAULT NULL,
  `IdWychowawcy` int(10) DEFAULT NULL,
  `OpisKlasy` varchar(40) DEFAULT NULL,
  PRIMARY KEY (`IdKlasy`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `klasa`
--

LOCK TABLES `klasa` WRITE;
/*!40000 ALTER TABLE `klasa` DISABLE KEYS */;
INSERT INTO `klasa` VALUES (1,'1a','informatyk',1,'Nie romawiaja'),(2,'1aw','awionik',2,'Przeszkadza'),(3,'1ar','programista',3,'Jest najlepsza'),(4,'1am','matematyk',4,'Jest najgorsza');
/*!40000 ALTER TABLE `klasa` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `nauczyciel`
--

DROP TABLE IF EXISTS `nauczyciel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `nauczyciel` (
  `IdNauczyciela` int(11) NOT NULL AUTO_INCREMENT,
  `Imie` varchar(10) DEFAULT NULL,
  `Nazwisko` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`IdNauczyciela`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `nauczyciel`
--

LOCK TABLES `nauczyciel` WRITE;
/*!40000 ALTER TABLE `nauczyciel` DISABLE KEYS */;
INSERT INTO `nauczyciel` VALUES (1,'Jasinski','Julian'),(2,'Obronny','Bronislaw'),(3,'Jasinski','Julian'),(4,'Braun','Adam'),(5,'Winiarski','Jakub'),(6,'Kleman','Tymoteusz'),(7,'Wysoka','Alicja'),(8,'Klemanska','Natalia');
/*!40000 ALTER TABLE `nauczyciel` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `uczen`
--

DROP TABLE IF EXISTS `uczen`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `uczen` (
  `IdUcznia` int(11) NOT NULL AUTO_INCREMENT,
  `Nazwisko` varchar(40) DEFAULT NULL,
  `Imie` varchar(20) DEFAULT NULL,
  `Miejscowosc` varchar(20) DEFAULT NULL,
  `Ulica` varchar(30) DEFAULT NULL,
  `NrDomu` varchar(10) DEFAULT NULL,
  `DataUrodzenia` date DEFAULT NULL,
  `MiejsceUrodzenia` varchar(30) DEFAULT NULL,
  `DataRozpoczeciaNauki` date DEFAULT NULL,
  `IdKlasy` int(11) DEFAULT NULL,
  `sredniaOcen` float DEFAULT NULL,
  PRIMARY KEY (`IdUcznia`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `uczen`
--

LOCK TABLES `uczen` WRITE;
/*!40000 ALTER TABLE `uczen` DISABLE KEYS */;
INSERT INTO `uczen` VALUES (1,'Urban','Kleman','Tokjo','Szeroka','12/21',NULL,'Bytom','0000-00-00',1,4.97),(2,'Ajnsztajn','Albert','Radom','Dluga','-12',NULL,'Nak?o','0000-00-00',1,5.09),(3,'Lej','Wiktor','Sosnowiec','Prawa','12-12/12',NULL,'Sosnowiec','0000-00-00',3,6.99),(4,'Elektryk','Eryk','Bytom','Dabrawa','213',NULL,'Bydgoszcz','0000-00-00',2,1.99),(5,'Quetzalcoatlus','Albert','Bydgoszcz','Trawa','90',NULL,'Osielsko','0000-00-00',2,4.78),(6,'Rotkiw','Wiktor','Bydgoszcz','Krotka','9876543210',NULL,'Fordon','0000-00-00',1,4.09),(7,'Winiecki','Nataniel','Bydgoszcz','Fordonska','95',NULL,'Bydgoszcz','0000-00-00',1,1.99),(8,'Hoppe','Kuba','Bydgoszcz','Daleka','1',NULL,'Fordon','0000-00-00',1,3.99),(9,'Stoltmann','Robert','Bydgoszcz','Grudziadzka','9',NULL,'Bytom','0000-00-00',1,3.79),(10,'Dziki','Kacper','Bydgoszcz','Lesna','19',NULL,'Torun','0000-00-00',2,2.9),(11,'Pilkarz','Jozef','Bydgoszcz','Lesna','20',NULL,'Bydgoszcz','0000-00-00',4,2.91),(12,'Cichowski','Jakub','Bydgoszcz','Cicha','2',NULL,'Bydgoszcz','0000-00-00',2,5.99),(13,'Shreiber','Adam','Berlin','Polska','12',NULL,'Bydgoszcz','0000-00-00',2,4.56),(14,'Jozefecki','Jozef','Fordon','Kaliskiego','21',NULL,'Bydgoszcz','0000-00-00',1,4.9),(15,'Kabanos','Bartek','SolecKujawski','Szeroka','32',NULL,'Bydgoszcz','0000-00-00',2,5.92),(17,'Shreiber','Lukasz','Torun','Nakielska','45',NULL,'Bydgoszcz','0000-00-00',4,3.9),(18,'Gasnica','Grzegorz','Bydgoszcz','Szynkowa','53',NULL,'Warszawa','0000-00-00',4,1),(19,'Jasinski','Julian','Bydgoszcz','Auchonowska','123',NULL,'Bydgoszcz','0000-00-00',4,3),(20,'Rasch','Henryk','Bydgoszcz','Auchonowska','-0',NULL,'Sonsowiec/Radom','0000-00-00',4,6);
/*!40000 ALTER TABLE `uczen` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2024-03-25 10:36:41
