-- Host: db-master-6.internal    Database: webapp_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=27763;

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$lrKvSsdmXeT3Yd6CGqAmrB32sp0.30mNqpKtnl8O/gIaBSRKkYrDh','user','ak_9d2728bf8c836354','2023-04-12 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$bPCZBFdnda4C/b8c/g28wZEQequVEmmS5RPR0.16uVi4AUeU32Tn7','user','ak_6065f6244c79fa33','2023-09-15 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$Jl3XqmSe9tghayh6qaQfFUhMVIQBnvza6KNf.MBA3slEHwv3.bI2q','user','ak_90af35fa9a8dd68e','2023-08-06 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$xtqGAvFUJFFr.yIzyjbVAVOUk4IxtPhmcm55jQ4KgRLgfsa/.xJhp','user','ak_b0173151f23c3825','2023-06-21 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$eCwRJXfAevTLL5be03H4AQiq84sZG7IUx1vn8h3Qi9xQrR3Z6Vsjf','admin','ak_514ece257e16b625','2023-09-21 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$VtveVKt8JeBsc.7a3W8jsm.fXfLx6yfx5jz1Xmr5bh2b//5YwqulL','admin','ak_43f7ab9fb039e50a','2023-08-07 10:21:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@company.com','$2b$12$IGHQRkFvbGYsI4nLDOvSz1t80FhUcUiypkt7buW4DYh5WZQkoeFTY','user','ak_142e15ed11f0a05d','2023-01-07 10:00:00',NULL);

