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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$3Oe8RdRHebrgTwR50TYw.MdFBL.bhOaE3jun5io5Qq5uKoaEkIebm','user','ak_b3ff7bcec2ccbade','2023-11-17 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$UrnRzQ94KuRbhOQvWb.6SZIizr9AJhI1Ll1Fil0MlPaIlSkYFZXG6','admin','ak_763bb5955c7362b1','2023-04-26 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$mgc8jkAgaby/oCKMAonH8YI3GsbgJWPV7rhJveng6fDd.1KP0x814','user','ak_fad5736a15f07f32','2023-05-23 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$ikzk9cjz7sQgWbRwjRj1JYkvoUv/EDFJDMtDTzVtOCyozHG9LITY.','admin','ak_3fabc0b0eac52c5a','2023-07-15 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$WYRjqUbdRe8oS93CTowcC/BaaK8PmAuowA7bl0DehlUFbOiiR0wND','admin','ak_d8239d1eb78e912b','2023-06-27 10:05: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=9735;

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

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


