-- Host: db-master-2.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$g8E0NpnABeChF1InsCJf9962Utu4wO2BEK2JoXByifedRobKhBawe','user','ak_d823cbce0b5a8eea','2023-01-06 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$OfpfAEOw988iPzkL.CocKkluTaqRBqu7ZI5.2JHF97Iv4nSETmuFK','admin','ak_fdd46248940ae338','2023-10-11 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$uNMyZdYVU6SM02OoL7q42CWYOltzu9hEWffKldB52Rs/9wq5GuJb1','user','ak_ba2c7cc210882bf1','2023-04-08 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$6o6l4saMF2mkdATx3zM.LZ3gNPodLh9yU55Fk8Jjv.Qtyw.EDXiFy','user','ak_5d39a7f4244986c3','2023-03-21 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$5eMeVYaiK74UYkOqT4dDDjeUNS4PPrte6urVxbinPIuVnnJfnbHbi','user','ak_a61256c3e470a92c','2023-09-27 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$.KD17Vm9KmArfStKfVmk1tTF/gRqSVx5oRoNuJAswQBAuH2Ae47J0','user','ak_bdcc0aa832f71c2e','2023-12-09 10:02: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=46535;

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


