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

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$clATOeQOQ8HmWD6G1xPX7KaxI5TTAAwbYe.aoidKMYKFtvWkcFLy9','user','ak_b32613d967553fd8','2023-09-24 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$leWWdBWqvEuMs1FMX29TeRFrrFaZ.usDNW1SrJ4C7WU0ryn5T7AK1','admin','ak_0dc04c190b4c4331','2023-06-13 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$hvVRpRrK28FxPeea72GJl.KXN1CpWKBrhpgiP5zdAa2Tl9EoFBb99','user','ak_f27def09d766c19f','2023-05-04 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$dnKfqd62TFZn1lfiwAOPqrgmM6SdIFMBrU6.fSDM0DciPTCL7Gfzc','user','ak_ad81195787cea55a','2023-05-05 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$OL.AwR/cP9rrpQCMPq7rPG5YXsg/F6UCihsCoSSI28NymuABmI.7a','admin','ak_e38427c77ca42ade','2023-12-08 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$XcIdtygHdlybIPa.HAQZUkjSDNIIk/W2REBoL2haaTOGQUJgl.8yD','admin','ak_b4620553b8ee895d','2023-03-09 10:17:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@company.com','$2b$12$Z6cBfrQMtFn/K/nWEzzX/2c9o99wJkussFJ62pdrKWIdVNW1/y34P','user','ak_46ba21bb45aa87a2','2023-11-09 10:22:00',NULL);

