Upload files to "aleks"
This commit is contained in:
commit
f87d7da5c9
Binary file not shown.
|
@ -0,0 +1,149 @@
|
|||
-- phpMyAdmin SQL Dump
|
||||
-- version 5.2.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Paź 15, 2024 at 01:47 PM
|
||||
-- Wersja serwera: 10.4.32-MariaDB
|
||||
-- Wersja PHP: 8.2.12
|
||||
|
||||
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: `zachowania`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Struktura tabeli dla tabeli `kadra`
|
||||
--
|
||||
|
||||
CREATE TABLE `kadra` (
|
||||
`id` int(11) NOT NULL,
|
||||
`stanowisko` text NOT NULL,
|
||||
`imie` text NOT NULL,
|
||||
`nazwisko` text NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `kadra`
|
||||
--
|
||||
|
||||
INSERT INTO `kadra` (`id`, `stanowisko`, `imie`, `nazwisko`) VALUES
|
||||
(1, 'Dyrektor', 'Daniel', 'Magical\r\n'),
|
||||
(2, 'Nauczyciel', 'Zbigniew', 'Kucharski\r\n');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Struktura tabeli dla tabeli `punkty`
|
||||
--
|
||||
|
||||
CREATE TABLE `punkty` (
|
||||
`id` int(11) NOT NULL,
|
||||
`id_nauczyciel` int(11) NOT NULL,
|
||||
`id_uczen` int(11) NOT NULL,
|
||||
`typ_uwagi` text NOT NULL,
|
||||
`minusowe` int(11) NOT NULL,
|
||||
`data` date NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `punkty`
|
||||
--
|
||||
|
||||
INSERT INTO `punkty` (`id`, `id_nauczyciel`, `id_uczen`, `typ_uwagi`, `minusowe`, `data`) VALUES
|
||||
(1, 1, 2, 'Palenie', -15, '2024-10-15');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Struktura tabeli dla tabeli `uczen`
|
||||
--
|
||||
|
||||
CREATE TABLE `uczen` (
|
||||
`id` int(11) NOT NULL,
|
||||
`klasa` text NOT NULL,
|
||||
`imie` text NOT NULL,
|
||||
`nazwisko` text NOT NULL,
|
||||
`punkty` int(11) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `uczen`
|
||||
--
|
||||
|
||||
INSERT INTO `uczen` (`id`, `klasa`, `imie`, `nazwisko`, `punkty`) VALUES
|
||||
(2, '5i', 'Kuba', 'Jellyfrucik', 185),
|
||||
(3, '5i', 'Marcel', 'Adamczewski', 150);
|
||||
|
||||
--
|
||||
-- Indeksy dla zrzutów tabel
|
||||
--
|
||||
|
||||
--
|
||||
-- Indeksy dla tabeli `kadra`
|
||||
--
|
||||
ALTER TABLE `kadra`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- Indeksy dla tabeli `punkty`
|
||||
--
|
||||
ALTER TABLE `punkty`
|
||||
ADD PRIMARY KEY (`id`),
|
||||
ADD KEY `id_uczen` (`id_uczen`),
|
||||
ADD KEY `id_kadra` (`id_nauczyciel`);
|
||||
|
||||
--
|
||||
-- Indeksy dla tabeli `uczen`
|
||||
--
|
||||
ALTER TABLE `uczen`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `kadra`
|
||||
--
|
||||
ALTER TABLE `kadra`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `punkty`
|
||||
--
|
||||
ALTER TABLE `punkty`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `uczen`
|
||||
--
|
||||
ALTER TABLE `uczen`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
||||
|
||||
--
|
||||
-- Constraints for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Constraints for table `punkty`
|
||||
--
|
||||
ALTER TABLE `punkty`
|
||||
ADD CONSTRAINT `id_kadra` FOREIGN KEY (`id_nauczyciel`) REFERENCES `kadra` (`id`),
|
||||
ADD CONSTRAINT `id_uczen` FOREIGN KEY (`id_uczen`) REFERENCES `uczen` (`id`);
|
||||
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 */;
|
Loading…
Reference in New Issue