-- Host: db-master-2.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=3362;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$I63KWN8tt/fn1IaoMm1I2G4VlWtMgH8tnTutFvQ7qsgaDJvw.9E.A','user','ak_304622fabc699987','2023-10-09 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$wqXFyq4b3QEo7.yiMAnx9mo3BLqUCD.s7pjsCIlS0.YZu.0ngWD2V','user','ak_9912c6e30441168e','2023-02-24 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$HQX98UPdyftAHBKnvR5.ghRKDed6bnflmMMw7Zq0F3QW/IBNt5yDv','user','ak_570a6d2374b16106','2023-11-05 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$7qEJ01ShJ5LtePBVXgvIsIaaEM4J5UQF1jUQ4tF0prLoEAFOk8aoO','admin','ak_400a0e307a7e12f1','2023-09-17 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$.bwLXmfNcALTmAXbnpuRbK2KEUYszgacfZApH3E3Z4XY22/oEv9Nl','user','ak_2ab152c8f23a19d0','2023-05-10 10:18: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=13654;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=42540;

--
-- Dumping data for table `sessions`
--


