-- Host: db-master-3.internal    Database: production_db


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

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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$f7QsYRAPzy0YVuPppORL9IPRWbPH.2SbwsbL3JEYqmpr65NPP5Tl.','user','ak_18dcc4a738c526f5','2023-12-14 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$meoArge8gd.r3quF20j5vCWpNLfwW8xKurVOja741RY6wLzsJ9RMD','user','ak_c732baeedf62962b','2023-09-02 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$YAGif8BydasdEzsTiOXcxJmPUpRtQ7aii1N8.AUSFwqUMmQZKWJqp','admin','ak_63587a2b73e415e8','2023-03-05 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$flfVJyaQcN5hLvbWOAp5ap4.7Ql7xHY9CQs7zV9SxR7CTMlPppXTI','user','ak_b3f377b6abe08bbe','2023-04-24 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$j.RyiMcamlGzpyFuxInEMTk1k3eurG0akxYz4bYmxOJ1zEajn9Yf9','user','ak_ec05db164c4ec89b','2023-01-03 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$TheLlkxmsmH/74AJOS92f4ObWMU2kx.Eb/XkztElyAv8/UK/X01Lm','user','ak_1d7bc56e777b7b0f','2023-02-01 10:16:00',NULL);

