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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$Tg6B6DgcNPSyUbpOiONaubj1YAmwoAqQnajGzAi5y7AZiDEr07nT1','user','ak_7c4acf74a6f906a1','2023-09-21 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$CITY7PEwpPk.xJuiVmMBkDHC3cE4ZqmghC7ZFvSolYK6Dki7fN11E','user','ak_ae541cb1b19be240','2023-02-18 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$x1ivxAMHHzA007s8jIhrkI3idtdnPZbXPWL496y9dqPwJpu/zej.M','user','ak_a38d0ef2fa268e0e','2023-07-06 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$PjJuYdZTSyULkVCzvtJfbDXtTm8WueRHnUj5qK/GLR8AdDdpqagZ7','admin','ak_444c1d86ce56cf15','2023-01-08 10:21:00',NULL);

