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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$8064sLgAwjIL6qPKgAEM1t6CJKRVbBwDnh50OFnW5FFftE9bS1.qQ','admin','ak_218968afa17f2173','2023-08-01 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$G.YqWdk3tOQX8qDP.ihiHmismeKplcBF1fG.x1TWXfxvDMhZxJsuj','admin','ak_9332ccf44785ff60','2023-01-07 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$IPqMKGRXa1B9TA.d6RZKfM2TOzenQdjAyg3Z0WAIEkFDk1.S/3Guc','admin','ak_8704c2acbc63a4ae','2023-12-28 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$ohDr/cQMxKsmKDD6CT3lwrcgR6hJp77kuNYgRj0zocyLv.vfyQGvB','user','ak_9d2682ac5f77833d','2023-03-14 10:08:00',NULL);

