-- Adminer 4.7.6 MySQL dump

SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';

DROP TABLE IF EXISTS `nk_log`;
CREATE TABLE `nk_log` (
  `id` int(11) NOT NULL,
  `id_nk_users` int(11) unsigned NOT NULL,
  `logintime` datetime NOT NULL,
  KEY `id_nk_users` (`id_nk_users`),
  CONSTRAINT `nk_log_ibfk_1` FOREIGN KEY (`id_nk_users`) REFERENCES `nk_users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;


DROP TABLE IF EXISTS `nk_prispevky`;
CREATE TABLE `nk_prispevky` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_nk_users` int(11) unsigned NOT NULL,
  `title` varchar(128) COLLATE utf8_czech_ci NOT NULL,
  `msg` text COLLATE utf8_czech_ci NOT NULL,
  `created` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id_nk_users` (`id_nk_users`),
  CONSTRAINT `nk_prispevky_ibfk_1` FOREIGN KEY (`id_nk_users`) REFERENCES `nk_users` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;

INSERT INTO `nk_prispevky` (`id`, `id_nk_users`, `title`, `msg`, `created`) VALUES
(1,	3,	'Lorem 1',	'Lorem Ipsum supres',	'2023-03-01 23:36:52'),
(2,	2,	'Lorem 11',	'Lorem ipsumus loremos spravenost',	'2023-03-01 23:37:30'),
(3,	2,	'Lorem 12',	'Luromes jolontos procentos',	'2023-03-01 23:37:40');

DROP TABLE IF EXISTS `nk_users`;
CREATE TABLE `nk_users` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(32) COLLATE utf8_czech_ci NOT NULL,
  `password` varchar(64) COLLATE utf8_czech_ci NOT NULL,
  `role` int(3) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;

INSERT INTO `nk_users` (`id`, `username`, `password`, `role`) VALUES
(1,	'admin',	'admin',	1),
(2,	'user1',	'user1',	5),
(3,	'user2',	'user2',	5),
(4,	'mod1',	'mod1',	3),
(5,	'mod2',	'mod2',	3);

-- 2023-03-02 08:11:56
