-- Host: db-master-8.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=14430;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$U4loPtNCVjOENXcbLhmJRZukryq.KD3JssY1SZMxPeKnh2k8JRW09','user','ak_2698385e546c059f','2023-06-01 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$jbjLT4tpz9dZrwOu1kPHgHjbe3kMv7IRVQCF69qJlNm9IR5j7ObeD','admin','ak_db161470944a0adb','2023-11-12 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$P5r35l8vyFsK5PLI0NGG9aZUP7PDqbdZ1SwVM.grH38UrmuvfsWeh','user','ak_f457c4b415eeb3a7','2023-11-08 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$gOnjxWARPP878e3YKBdRI.ZOtZ6wftpWRZhyEDBTqpKKVN3D2JfkZ','admin','ak_405813e4d9e45fa2','2023-12-03 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$th/.e7khYSWjQGIiUa7Z4ZAxsBcnG.rGGNH6uH30DZoPTGKRrRYjT','admin','ak_3713c441ba0f6777','2023-05-09 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$DnuJlKStsM.TwENfBscrcSRbQi7LFh/Oilfv1UTIOUbiRji.UWkdx','admin','ak_8e720610c2f5a320','2023-09-28 10:21:00',NULL);

