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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$Tf4FSbPIOzrMGJf0nzTxaVTnUKoiCYsDXP7UjGc52CXQlaU062y2x','user','ak_37d2f9779652348f','2023-10-01 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$vxa6zB/mgzpd6Ai/mVTzs9VzrQjp82Erl3SVa50X.Tq8ob9bumhKk','user','ak_d47f3ec5b6ed4687','2023-08-24 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$nvyd1NmKZuZCh4VYwTqKsGWjVZQFFMZGQdp54Oigin5inDJvW6IHV','user','ak_fd1d275fabce15bd','2023-03-15 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$pYoj0VMH4T/h9jQb.H24g9cUnHFBz3aXXmb0Z4INo2GTlpfj8b8HS','admin','ak_2393626d330656fd','2023-01-22 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$.CZ0PZYYTqQC4YAdOPKb8Gx8RcUeFeBw1Wkrtt6gBJpTES4oDG7yl','user','ak_3ab9727dad6fffc4','2023-02-12 10:04:00',NULL);

