-- Host: db-master-6.internal    Database: production_db


--
-- 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=8736;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$Fw8KyyGWfxferEs41xl/eCIXTJEsLQHtvLf9XVh1LsR.qKy4HSCju','admin','ak_2c9b38be50c1df2a','2023-10-16 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$C84JBYW.oOJNSDq.szi2BBto3lnl9eftVkGIuMzLv7Y5GlW4PeGWa','user','ak_bd53ce621b72ccc5','2023-09-04 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$3ye.2wCB8Bu2gPKR6IGjqAXX0qL/FAIb8ytGh9FRlkdNoyVwX6yGy','admin','ak_d11044c0d6b402d9','2023-07-22 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$89UUdSa88beG7BQKeg4Q2fFdNeqFD81VsdJuH9fCQUVSSF7eJUv7y','admin','ak_0da12e45044ebe2d','2023-05-08 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$31pgTIf9dpDq0CRE83UTbzKPYafjzqp5CZ8.8UdJLT7zfBbo05HcT','admin','ak_c83152db1b02956e','2023-04-11 10:03: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=5857;

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


