-- Host: db-master-4.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=15895;

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$zrxu.NbodseKtW75Du3v0s7OKu5g.Wi2th0g80W0GmpoQ0HixLQxP','user','ak_733871b857db7101','2023-06-12 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$66phA.A0Bc1np9hVpbPPP.DZhyJI65RBB9LDEqwvebKrfxNgLLJal','user','ak_aac07e0e356d80a6','2023-03-28 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$HQ0wcuNBmCxLEHwuM.OFKwQYdZvMveBzDzJsVlIhWTTrMNTGBSpmL','user','ak_e7299d428b938113','2023-04-18 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$gXvT3spnaM64g.ED4FbLjzym1ztul3oUZDEpCm/ByNpaHl3vL0E6b','user','ak_ccf1f6c0c6e1e8d4','2023-09-13 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$Fz.zRJ1LG.AWeB85yVQCqMlerrXFouWB7cOgCMca5lYEklvifiRMw','user','ak_fd32038ed4e854f8','2023-01-09 10:14: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=33614;

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=25390;

--
-- Dumping data for table `audit_log`
--


