-- Host: db-master-1.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=22956;

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$8P0dtFDkbIp1NfodPc/u0shKAV0M710T9DOau0YMWYec61JarXIrn','user','ak_3fcbb6e045b3c993','2023-09-27 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$pPIrDX7zugBXub9rtVPZPl2XGE2ErcwsKHe804EkYntJPZdWiO47E','user','ak_19f7f664eaae4383','2023-11-05 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$phxD4jP4NC3Edzukb14bjNwroNHCiHxO.NnoDpnT13pBxs773BfDv','user','ak_d0667cc32a2a7046','2023-11-21 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$RBVL2CiBhYgVjZ8MRlaa7dwfjQ9iAs/cZSBtju1sGo284NTw/PtWy','user','ak_457394504bcd4e70','2023-09-12 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$vBrEfxrYlIA/aPn2WSHDfdp3wouTVRLUxJWKdt3B7iRFpXJ.ILC7C','user','ak_004174170fc3bc7e','2023-12-23 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$3Mzm5Yv2w88rfdgEjvKB017.sVO/wjyx6j43g.AF9R7.DJtEkKkhg','user','ak_e46363e0e7efedec','2023-11-08 10:10:00',NULL);

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

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


