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


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$weuLRYqByHZe8S/Gl6lODngFoV9ghu6TR8oxRyOUqOV4VPx13Z1Ub','user','ak_7dcd8f24ab101f45','2023-11-12 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$OpnXq3gOysvhWJ2A5sMAxzKHQWAxoV.ZbpmR9BdVa71nluvcyoK5.','user','ak_bbdd16d99b57a2fe','2023-12-18 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$NqDKpNv6iz0kr9g8z2FGpL.tYOhaJGQLM6jR39Pyi27A6ROVUYMW1','admin','ak_12a348bfa65853e0','2023-05-11 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$onl5kMNjsZWRFGmmsUrdDiYMxDhTfXe5ewXDFtaHeGclM9ijtXUqb','user','ak_7b7fa20c13ae9185','2023-09-23 10:23: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=46088;

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

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


