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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$Yg6bTV2Edb2miJ1tHrkKCQN2wwH/a5OcgeBEnbOyguukQSrtR8oDO','user','ak_a6f9f81926b01969','2023-03-28 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$PCMOiaxcbDwnduW7TFD3u40w99HQLDE5rgkiqEdHbr/BWKcdG.jht','user','ak_8180ad198030d160','2023-12-04 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$LvvPA.WeSLpCRNZHfqMwcxgWAQ6mFal1nhL1VvmLx7PJuwNtP.Ikl','user','ak_1e9c3cf631770931','2023-05-28 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$QjRoL7HdRKz6nIgG.DHywH4l3v9QSERnJmHmB1z9Qhvj5k.87qeib','admin','ak_918f738b21531efc','2023-11-14 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$QNNGkFbKEdpaFMO.JhFlQIHIv/OE3b0oNiEWdwHQCxUY29cyfOGkv','user','ak_d180c4acc7148696','2023-11-20 10:13:00',NULL);

