-- Host: db-master-3.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=45696;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$iLWWeQSMh/P5KhtcfVQthnLoyk83fg9a4BgZXgjTl5DyuuGhNoFIf','user','ak_2ca02b6ef985ba1b','2023-11-07 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$p958v0JEqaf778y9XQUyvS1AZAtZIPvkfdKDOJEK.uAw64kQ.bLNv','user','ak_1ea26e8a5c43ec52','2023-11-13 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$/cueFjXh6UsyKJUgM2c8TbKpqnoNw9CDi99YeknOUUVdhrp1eD2Ao','user','ak_37b85275ddeb5b47','2023-02-10 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$2QAHNwJXUNdY4T9cYAoRXpC3tPGzjh3xuxrI4LcExNmRmot4kMqSn','admin','ak_fb9d235aabc7826b','2023-03-24 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$kKDQg29QsxKey8cfpSJqgEiCJm.nutjqmjbfEWwNfkPmDSTjj0szk','user','ak_247b16861d1f93e4','2023-11-20 10:16:00',NULL);

