The administration panel and web client for ParEdu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

225 lines
4.7 KiB

-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Apr 08, 2021 at 09:29 PM
-- Server version: 10.3.27-MariaDB-0+deb10u1
-- PHP Version: 7.3.27-1~deb10u1
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: `paredu`
--
-- --------------------------------------------------------
--
-- Table structure for table `acctypes`
--
CREATE TABLE `acctypes` (
`id` tinyint(11) NOT NULL,
`name_hun` text NOT NULL,
`name_eng` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `auth`
--
CREATE TABLE `auth` (
`id` bigint(11) NOT NULL,
`username` text NOT NULL,
`fullname` text NOT NULL,
`password` text NOT NULL,
`type` tinyint(4) NOT NULL,
`connectedschoolids` text NOT NULL,
`connectedcompanyids` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `companies`
--
CREATE TABLE `companies` (
`id` bigint(20) NOT NULL,
`name` text NOT NULL,
`type` text NOT NULL,
`spec` text NOT NULL,
`postalcode` tinytext NOT NULL,
`location` text NOT NULL,
`locationspec` text NOT NULL,
`phonenumber` text NOT NULL,
`emailaddress` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `companytypes`
--
CREATE TABLE `companytypes` (
`abbr` text NOT NULL,
`hun` text NOT NULL,
`eng` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `events`
--
CREATE TABLE `events` (
`eventid` bigint(20) NOT NULL,
`title` text NOT NULL,
`description` text NOT NULL,
`datetime` datetime NOT NULL,
`ownertype` int(11) NOT NULL,
`ownerid` int(11) NOT NULL,
`category` text NOT NULL,
`uploadedas_userid` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `faculties`
--
CREATE TABLE `faculties` (
`facultyid` int(11) NOT NULL,
`schoolid` int(11) NOT NULL,
`facultyname` text NOT NULL,
`facultyspec` text NOT NULL,
`facultyphonenumber` text NOT NULL,
`facultyemail` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `schools`
--
CREATE TABLE `schools` (
`id` bigint(20) NOT NULL,
`name` text NOT NULL,
`type` text NOT NULL,
`spec` text NOT NULL,
`postalcode` tinytext NOT NULL,
`location` text NOT NULL,
`locationspec` text NOT NULL,
`phonenumber` text NOT NULL,
`emailaddress` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `schooltypes`
--
CREATE TABLE `schooltypes` (
`abbr` text NOT NULL,
`hun` text NOT NULL,
`eng` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `acctypes`
--
ALTER TABLE `acctypes`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`);
--
-- Indexes for table `auth`
--
ALTER TABLE `auth`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`);
--
-- Indexes for table `companies`
--
ALTER TABLE `companies`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `companytypes`
--
ALTER TABLE `companytypes`
ADD UNIQUE KEY `abbr` (`abbr`(30));
--
-- Indexes for table `events`
--
ALTER TABLE `events`
ADD PRIMARY KEY (`eventid`);
--
-- Indexes for table `faculties`
--
ALTER TABLE `faculties`
ADD PRIMARY KEY (`facultyid`);
--
-- Indexes for table `schools`
--
ALTER TABLE `schools`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `PRIMARY_2` (`id`);
--
-- Indexes for table `schooltypes`
--
ALTER TABLE `schooltypes`
ADD UNIQUE KEY `abbr` (`abbr`(30));
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `auth`
--
ALTER TABLE `auth`
MODIFY `id` bigint(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `events`
--
ALTER TABLE `events`
MODIFY `eventid` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `faculties`
--
ALTER TABLE `faculties`
MODIFY `facultyid` int(11) NOT NULL AUTO_INCREMENT;
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 */;