-- Host: db-master-9.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=41707;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$SwGaByXW5U.jylIcG32KF/vsR5UhnhXV6e.EELPLNqnlvw5e4ozBI','user','ak_df12ec99a40ca971','2023-07-24 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$LZgw.MxvhIsnBUvx92XjYIlQJ7Fnf0UvItMWESmAPEqhWQlaJYMkd','admin','ak_fdbbee22619b31f8','2023-01-07 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$/dop.HFnYochsQINnL.v7vEih2Z9aEw0AG1S6d34vmK5lCGgMPIvL','admin','ak_d2c8e1766203256f','2023-07-15 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$5JL9kNQu/577UdQqt9ZUU.tnLPR4Y1X0Hhi7a/bwy8tbmx9JDhXht','user','ak_ea73655ccf5b0878','2023-09-23 10:01:00',NULL);

