-- Host: db-master-1.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=26299;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$n.1iQtwKpAw.VjuDEvzF7v/vz/mYY/aa6Tzx7AH.vgpCSW2NZ1mbW','admin','ak_544ccc49735d7521','2023-10-11 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$IIQpKh1IptAHlcL0ZZlAv44JdVQ2d/ye1FZZaPGF5kLpxEmqm5CuN','user','ak_ff0a288150c8006c','2023-11-24 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$iysilAarfRd/5Wz7QLG9ai6iLLJLm/GwqR.fP05mfBsVg3LyyYS0W','user','ak_67fc5d50890039ea','2023-02-28 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$33ttcYADESYHUSYWoMJqQ4rUWjQBaGB9cJZi17rfK2YjtG8h4/0LZ','user','ak_6206d71aed31e69a','2023-09-22 10:18: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=12286;

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


