-- Host: db-master-3.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=36705;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$g.WGfYqQNTLJzPFUaCX6riAUReFlmBt7PSBF.Hvq9dVMKk7bKKvGx','user','ak_563899c111e73d7b','2023-01-18 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$aGZHze5GvVuH0ZvfY4dXzVHpVBPsvNWKxwpGjVsGB.b3Bh4grZosJ','user','ak_13a4b23551dfdd09','2023-05-09 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$hu6rEqLVL7OKwdSq7yNTEQguEayEnLDbS9YBJBnLXvQYEF13vquD1','admin','ak_9f1bd44d29d0fe15','2023-05-25 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$Afmnpe/L5pJ5zoBfCvxXoGUrRqB48ZgI/3X9safNZyM4yAeJq.8k9','admin','ak_2a242895136830c8','2023-05-08 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$H2U1evx1P/5t4eyBtuANY3YJuKjoYgJT3FAguYWMsyMT.rxHbs4Zg','admin','ak_07a9a54fa5d1760f','2023-07-08 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$Ta8grPx7FzuRHRP.o0PYkwu3wklsnwTl3Gew8WimxYWrWjakTf7Ux','user','ak_6c93f83163688715','2023-03-07 10:20: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=45386;

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


