-- Host: db-master-5.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=26151;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$bmY6k8kdYHVJ1uY0VgOKAfDPYjOItBFn/Mj.a5FSfcoRk9rETthN7','user','ak_fe2e1925b7bf932b','2023-06-04 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$1P1RFlRKC0lcE3OIMx8A.k6LkUEFGQFGl3tT3/c9F9HLWbJdkCTQn','user','ak_e4acb2745f3d640f','2023-04-15 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$pHJFv9.lTSjggGGE1mrIRPECuVyImgwJLf6DKV7Xa7s5nkqGGoDYO','user','ak_45cd165c4677b297','2023-12-16 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$GJytV5HHNS4aVrqoilJjKcvrqYjVxwI0hZkIszRC9ogr1534gkMoj','user','ak_c4b796f52710b728','2023-09-22 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$UgV0lERZ0R0WOMUN7lq8xhTvmHOpuiennbFZfDOaJBUbdetZdnTuY','admin','ak_865ac35e120dd107','2023-10-18 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$J.YgejtmxDhlcniSeSZbSBlsjME88Zgj3kAC5qUhAPcimWVdAKt16','admin','ak_5cc1198768a9c588','2023-01-14 10:09: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=44403;

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

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


