-- Host: db-master-4.internal    Database: webapp_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=20849;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$7HnnrBncFkevOpZUs1JbcpVLucRM4Yx0yPKM6Xtk4w19RAC/bJLPV','user','ak_3b60196c0117ea9e','2023-01-05 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$kooWPBqV3NSxjubGgq9ERfBeaPq9/Td2m0cSY6hh1SCxoqfWZPIZM','admin','ak_59047cff72293719','2023-08-18 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$54YLifjZ2y8nXStNdPnsFQbUBqd6nircKzfZVSjECsmhr7P3/a7oc','user','ak_e1d03988674d76fe','2023-09-19 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$4j2/9YAQ2ge8/wWs/575BFgck.PIm8zElBmrtQz1O2VW253rLH.10','user','ak_3f3e5e36fbefc139','2023-07-15 10:17: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=30417;

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


