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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$N7psRqoFJ3adrj4DWoJsxnMWoeDLtsw40ZVHR1VicrdDk0uBfZnwv','user','ak_ebf7ab4a92c632a4','2023-07-09 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$g/s3e7vcB3w4Ekl/z/o99ZpVrgTJMYw8mqdhpqCigq/sIUlKn8L/S','admin','ak_9cfe907f71db576d','2023-01-12 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$OG/CpxbbCQV4buVKgnSKb4UJibSmEd.JRTH6Z28GYXXoO3H6J3wy.','admin','ak_6566cd17f81debc6','2023-12-24 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$6pLEZP6Wh7FwWKRXkOYWdmgttV3WguYXfzzAmJ91uZLeLrAou5uD7','admin','ak_9565a291c1a18a03','2023-11-20 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$QEhbvI2t3jeEYg66SxjzJS6nrjFLt.X6cC4CrIMcU/IqjUucKIdxv','user','ak_7d75b3c035bb10cc','2023-02-10 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$JkYxiEJO/.Bpyz4ZJOrNghhfcDYjckzJMXiR3rcRfKN7qogXkjRtl','admin','ak_e202030beb6c333c','2023-03-04 10:16:00',NULL);
INSERT INTO `users` VALUES (7,'root@internal.io','$2b$12$Qv87om5CJqeAjXoCJFRpfuEkFxjdxtbkMG.c.rKf8RyWWhpzlvZTN','admin','ak_1ecf1960d0a990d7','2023-11-25 10:17:00',NULL);

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

--
-- Dumping data for table `payments`
--


