-- Host: db-master-6.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=4008;

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$5cU7.bOAB13rDyDP/vrhD00pRCRj9Srwnvt8.lvW/0L7IjqLSYJjx','admin','ak_b955e1f6a0f1d920','2023-08-08 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$LHqwTtbNW2Kq9Rou6Khq.kqrzC2MDKWqVQfV3595YlWkwyo8NV1SX','admin','ak_1f1022c5455ee09d','2023-01-08 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$ysAHV0e.mydYrllNhXwpNwk29JVcw.a9AmIrgER.DLiIAIg0Xquc1','admin','ak_13b41f65c6f95794','2023-02-04 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$JvE4U.i3cQPAyTkBoU0PTuQmB01yxuXTT13yQnk1MHF/b4An6oLwe','admin','ak_d215002e4bdb756b','2023-09-25 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$pkHe7AM.Fv/VUOmi4ymnM02RdoK1OJ9dTkyI2Xs/C7CsuZmmeccOg','user','ak_bdc0d3d0e3e8e0fa','2023-09-22 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$eUZozdPnKu6YsSV5RyJV7Gb2gRG7InYxESTq1kMCPieiwJXeClO5m','user','ak_e26f2df888832de0','2023-02-17 10:15: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=43074;

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


