-- Host: db-master-6.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=1976;

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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$0e3fNvdnaZcRvVfvA5blszex6OVDm9LLZLXx8uxhA/aG4slTuBjZr','user','ak_16f13b71484255db','2023-09-28 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$9WeLya.c92jkREDcgSM.3hZF3KjInvTVEbcXu/jC2TOwmJDrdFNe/','user','ak_d3ae664cfb5d2907','2023-05-10 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$WSOwGgpR2toPL9h9Bc9js/yOSZPWHOezFSjLw5b2oaTKGTUIBv/Gx','admin','ak_19827b3ac9fb8c8b','2023-12-10 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$Hm7c14I9YlVBa3qbB1VWKbEHTvjOsLCaPIGzq2HYCsjHgJvAcDMya','user','ak_d55abce668550951','2023-07-25 10:00:00',NULL);

