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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$yRv6c72MtbATTrepwP0GsBDr62p51V9SuldRbET2mpt31/33VOglP','user','ak_c12e03aeec6b947d','2023-08-15 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$5VhLL8WQRti1BL38uBm1TvG/aPPATnDqB7cjPY0b./Uq8VNsYHco4','user','ak_14508f1504f9f787','2023-03-11 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$cyJ2Y6Sn.mZbMSEXBM0kxWwvLQnJYNqebInRLOUY9bw2HISPBNbDm','admin','ak_b1675012edf91774','2023-05-25 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$NtNqn60wsvM7H1yO09mXGQz26S.J0pIs52.Sr.a7w3e6j.0mYBdRg','user','ak_d9529321dba48488','2023-12-05 10:03:00',NULL);

