-- Host: db-master-2.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$AccK0A9sfZ.H7G2VTYncbPkOQOTnNp1ophtK1nOVGR3MejB//BP8h','admin','ak_a2fd9e8192a90de1','2023-10-13 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$icqX3C1vGCQjuBjAO6uI9.m7f0dQL9q934zevvJcoQxoAxksUP4ux','user','ak_4e64d980b1f6b703','2023-09-06 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$Bd65ECq8JPMHJcYQcGMw6YQY7/wGVGmkewsa9gBODk1Knz57aANGz','admin','ak_39d8fc519820edc4','2023-04-20 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$Z2X0sSuxlVz3HOpG9zDe85wJC3CcTXwn3bU3HVXQRQSQFnJoeaur6','user','ak_d2db7cbd01eee5ee','2023-11-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=25297;

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


