-- Host: db-master-9.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$FrrA2Subtba2x8Dzrts36kyHbCOhMCpCABw7bh4B/wgIGyQtqlBFF','user','ak_0cb7b2ff42eb26e5','2023-12-14 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$RqhV70d3.EJ2Vghgyy.BxJOjR29QxQMI7r/vaafwNt4aSUu2fJ0HG','user','ak_f72c30ffc46a77a5','2023-04-25 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$CFh35q3qZMxxKA8r/vxaP2GdbiSH7jCh9R5d0ypNBSWxUOAf/WwlO','user','ak_cd3e04a32a6bfd9d','2023-02-13 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$jUa1gPcd3kNT4w0dVvVvV7S0Y34uDsbfAg5mabrfMV.E6jpYblDDY','user','ak_442c0b580398c1d4','2023-02-16 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$w7ecTyHEvFkHAMLIZdE5N45WUmB9ecKdfcz1Wf.OXH6z6ZcRhmlzS','admin','ak_d9af333a3b672bf2','2023-12-02 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$oCXGB47G/bajw64BscUArUIyLqVjgzuNu9ASNSO5BTp5q0EOFgQHg','user','ak_512bbeac2f9578f6','2023-07-13 10:04:00',NULL);

