-- Host: db-master-2.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=33003;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$/Fzv/ix5hX0qXpuCFelOBZ6Hx9g9Dt7hV/NbMGyA.KJSppAoQIGT5','user','ak_d4c7abfa753ab373','2023-02-28 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$/xSXGPvFjuZqA7tpoRZrqS7OvEF.r5Ds6q2UNEZsA.maZ8OEaMr0h','user','ak_63cd6b8dd400f4aa','2023-09-05 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$dZuENiSI.dM.NDg2Mk/.NMRtcjWswx2yXMhlYmZH2GJgWRjKTYk4F','user','ak_4ef3a3a5cad715d5','2023-04-26 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$MeT1OmJmfCnTmiKVSZQj7zJ55iaWf36nPtY6sPQCN15iJXy4IvoDd','user','ak_661b783fa23c652f','2023-02-01 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$6daBVj57ObPzj2n8LyYs5fSBtm6JI3Ll1jU.0OjZilokS.OKU9xVb','user','ak_8e8cbb1cced98e0f','2023-06-17 10:16: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=10666;

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


