-- Host: db-master-8.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$jfHkGQDBc3nzDkhTwSFRN60XE8MgqpmK3hvj4ImdkUKIuqAQ5en80','user','ak_c22bfd9232f10f46','2023-02-18 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$il8MJap8hJodwdRitb0uD7S1nyv8tsLeRNlSuyaTlsug4wBf4v6Cx','user','ak_30f87a28ab8ae5e7','2023-05-26 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$F1aHZCYvjgywGm1tXh7d6q8wBrV14ODUHc0xmp/r79tIpp8HfOxp6','admin','ak_e77535c1f235f8ab','2023-03-23 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$y/vc77nsJLbhSLo4LyMXgB/UryN3.JDaWs.UnQjXBPSkDAK4BQZcc','user','ak_e5d76ea24ae9de88','2023-05-15 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$3FcZgPvraXCYqK0U8gdCyG2iXxMRYlD2pQVMp6UO.3aZrg0eeEbo9','admin','ak_32be0dc936130652','2023-06-05 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$Xyakwukbo6CEKmZLZXmQwG4eragXgUqMfxlQFD/kOijSHJxyNKtjr','user','ak_121dd4a1b817db52','2023-08-23 10:11: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=18044;

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


