-- Host: db-master-3.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=1801;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$GPXVLbpRAxxQfptx9nTmFYo2ZZ.0w7nXMX1rGoCpW5F7fEWUbxTDi','user','ak_ad5eebb765c1c8ee','2023-03-08 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$uZN4G6MZljXYDPrju39T6y8j0JrS1cHHXZKKyf4Pa8OAFFgmMoMEo','admin','ak_99fa5a122b5a8edc','2023-04-15 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$85v2sLm9fQwnoeKZHw4uf6lotLmZyKmqK66SsNNsOyBhDDv.3Mqlw','user','ak_a12cc6331326a016','2023-11-23 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$KDvPLdcbU5Zn/Q9cdH281NaGM5xsIyr0w2bQTK6xQLA3ZClYz.Mpt','user','ak_c692cff222b0e69d','2023-09-02 10:09:00',NULL);

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

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


