-- Host: db-master-0.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=11108;

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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=16640;

--
-- Dumping data for table `payments`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$HYv1jNZkLxJ7m7FHnBYmjQlxOrJ8q3v/c6H4rGafglcy9Z5jfLYxS','admin','ak_e04c7a0750714042','2023-02-26 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$smB1paDo.M/Rv7B/Dt1ajUixl5ibJdK1IAGbDySuOKU8biPa6Ep/f','user','ak_fb198cec2e85cb5d','2023-02-26 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$h2FpqR7pQhigk3mR2hIg.XiVAR9dgDrWWF54NEA7GYPqEBpezrsnj','user','ak_2e46853f3f3eeac1','2023-10-19 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$Dy8JNxys6grE6zith3uZ5hvs.lNQAxmHXJFYsNjbn8E8x/p9uAX/l','user','ak_ce9c5845ffb2f012','2023-01-21 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$dqJUyIicnMPic.Tngi/tXKC90wSnqi.tiEOZ8lYSFeOr07eOMtKno','admin','ak_85ce0a6264dad943','2023-11-13 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$eAekQ7MGoNBfSkmCbMH8XDmDeJSSp973e5W/re8icQ0tr5unZUXWS','user','ak_cb5b0b12fa34c4c3','2023-01-12 10:13:00',NULL);

