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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=48467;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$zyh0QVsk61HXUHTd1BHAZ3nAE7lHOEFohfRvqihmlqtnBMPzr3liM','user','ak_d7b6063f47f4336c','2023-12-17 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$ht18GpxOCI7K07UinMu7Pgl/EZP0ilgaaEbddA8k0fXwYbdtC6sVf','user','ak_8a6884d42752a94c','2023-12-12 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$W9ObIcTI3T9ZY/7ov0OOnxpVvmXj2Cw9jiuEQLGe77djqb8zfM1p5','admin','ak_2cb0d31ab6bb129a','2023-08-23 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$6PP9gUuH9ZEWmO7KmmQ0VY.UsxN/kWv8xoaXDE4BbDecpwEtJGojY','user','ak_3050b5bf229b9e14','2023-06-07 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$RoikZf/dBxmmMAb9U9GAQESvD3X8f4Vhmo72ufMJ1Rhc6K9RdCew7','admin','ak_e8d165d205b9f9e6','2023-11-17 10:14: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=32603;

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


