-- Host: db-master-4.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=8437;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$JVX1jJuLs.wzM3iuCAEhoTRTeIZFqWHVjlTZaQwX4HORCd8gRQvqw','user','ak_6c6355bac12a4579','2023-11-09 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$aAFuHFysyLIzl7P0Q/PN5hMt56rNJJP1Jtyx4Xfr9unrCSWurZcjZ','user','ak_dc7c02203f327b35','2023-03-24 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$J0jo5JRt3VOvS7z/llApufZEPHQZWMsHlMZX2reywphchfJ3ee482','user','ak_737926f0212a2c6d','2023-10-20 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$kLrmS4o7vRR/W7DPM1AvIMyc1AhUk8is35k.3PGVyZ6cXWgopiR2B','user','ak_532cadfced397e5f','2023-07-15 10:16:00',NULL);

