-- Host: db-master-9.internal    Database: main_app


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=23182;

--
-- Dumping data for table `products`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=32361;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$vIWzoqYgnbhIycfdSE8MBLPmd1RerniGdWliWSS3pXhmdstXSoq19','user','ak_b88900fbbb8973e0','2023-01-13 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$UwBLnOiwBqFXw0Y/EJKFljBGSR6nO/PaM/QVjwjHjLQqg6gLB3pkT','admin','ak_6f08f714c4859192','2023-06-14 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$kpkyRRC8Tny9Jv4nz5W68oltplw.RlWgczckuT0LyQBWvCbePeXA2','user','ak_c692507d7c37b45a','2023-01-27 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$bnNAyPKLqNr.FZxisSmOufbkKTpN3vtRdN3rqGxQp.boepO.iFh3u','admin','ak_94daad429f1ef10d','2023-02-19 10:22:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=49802;

--
-- Dumping data for table `sessions`
--


