-- Host: db-master-5.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=48785;

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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$bp5uaJTW7Gb/CEJ9z2JnHCQQSqQSjiIhFZgms2bFhalCOwHL4jbaB','admin','ak_645df39d62b9847c','2023-06-15 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$1gWVp04vMwr/HkgduZLJkla30EfWKyg5bDyajZKUA8COByM/Ln0zI','user','ak_172d6f6db23989a1','2023-09-21 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$Vdhxy8wkU16lAS/MeaOdlddUGFGcmaXMLfUW5KFpboGJ3Y98JLW/M','user','ak_d9d3b1acce48b561','2023-03-09 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$uQrcxKr46Y2vDguGAbltVwxKND4hHsB4AA6BL1BIVytlfVWfbhn2p','admin','ak_c532c57a713fb21c','2023-01-13 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$phAS7nHLFlyveEp1b56PotFGXcDKqWspXgcNkEKyTf/Qk85YzBDSu','user','ak_2503a0070fba5fa1','2023-07-25 10:20:00',NULL);

