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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$smbAhIYRIRv6g5F6Io1NM7m98nwwBztEvzqZ/wh77jb4zuwR3k7xJ','user','ak_0b45e3daf7d49f18','2023-12-05 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$YQ8Yd3h6EvOG3TPtmu5HJOVvklVwqVk6llp81Yf/RlNv1jM7PIQDY','admin','ak_d8a1ddd45b847ba5','2023-08-22 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$kloyD0NZDChK/2OIW8uly8326sXmsWRd24Fm2.Y2SV7EbPFOQstA.','user','ak_72365aeb7594c1ff','2023-08-04 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$7JjTkM66DN5XNMmTHYYAFwjfnJBofFZzoADvfjtX66Ik3wtwcmCOn','admin','ak_447c717335f6ec0d','2023-03-19 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$ijggFpOu3wRACPwPghsoNl6wpg5E.iomo5VPKfK39SNsMestHnu34','admin','ak_cc31f97ba54fdd9e','2023-11-07 10:22:00',NULL);

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

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

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


