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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$VSMC2lYWhhD4Bgiz1MFp/VSSeyT8Kb2kOJhkoYYaweLw.6p6yBgg0','user','ak_82c5ec764ef7ac20','2023-07-25 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$6A/YtgevHfgnONllda.OXNgs0npGj8yjSwxNKh4VSiS/cWcElLOYe','admin','ak_618285db83646f05','2023-03-09 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$TlMVaTU9.5IYfGFS3.larq72FNF6aEkHCaPffri14TLFhFUzKXmO4','user','ak_4a1db1c3dc390888','2023-05-13 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$2Xi.ND0dkDfH/9jZDcotMDWuH2EQQT86.mhoOuCPSXO91HHto2D0n','user','ak_8f722223a25e39be','2023-11-03 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$m23MwGF7dEW0k91o4dbU9GDi.QwiX.nrRHb3GaaP4n3HKPUWwVu82','admin','ak_d10e3bdd4c6633e8','2023-04-28 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=37920;

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


