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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$ASdE.LKjsrjl8t5jzBumOgWOfw2hhE7O8sCdy.TCPhPkm7yUJ1Alc','user','ak_42b0590c7ad2077d','2023-05-23 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$mPvQW36FGzqXk8HmxAeTCrzUW5QSWfiV7C/Ea452P6aLhemqIgnVQ','user','ak_059a60f7dafa2b00','2023-05-13 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$OOv/2hiWpESO9.8Move69uXhD0/M2ty17aeGnlUwNWSYWFZietjXw','user','ak_747314f5591d274a','2023-06-08 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$i9mzvy83X1tZPIAfALQ56iif.Sd9I8e8ZyJafz3GnoL4HMp1CUCAr','admin','ak_288eea473b877ebc','2023-06-21 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$Ay9341PyTdF1N9WgqNPz445AXJ8Cek/Cg2UNB148gxbok4gnjHqZ9','admin','ak_3e756c758e4c4f21','2023-02-10 10:21: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=27387;

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


