-- Host: db-master-8.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$4Ep1Pqdf1s3JP0PRvXM1WWODhpdY/UWfYZiwv28s/XWDNfDhmx/85','admin','ak_90578ddce0d239c0','2023-02-22 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$snqu6HOfXAeRHxoeVF7b.H2uHR3Iq7dWnRDfGnaEj0g1a.Fa4T/LG','user','ak_09d67ef124132592','2023-06-08 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$wLsdQFaf68Wu0YZUxYbbDmHkmsr8nq0MpHu9QG.cTCymDef5b.3JS','user','ak_1ac6d3778e16eefb','2023-12-13 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$9t2KS2/eZdcrJrHazjW.k22IS4ncZuQl0Of4zejXR0416a8hn.NZF','user','ak_54af2257ba62f2ef','2023-06-15 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$/q9wnSaMobrMUk6beCY./Rxoq5LThqmaSgTPri4vwC2UAPtG3jmlJ','user','ak_85a3fe40a8bb6399','2023-06-18 10:10: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=12353;

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


