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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$She7WZIji7hSlTU6HLIrs/022.peq6H6YFoctuapsY5jNI.jynjNo','user','ak_35c4ab2990b58183','2023-01-02 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$li3.w3mQCBIaZgnngcgsRMa2kYvg73EQEBm4bNPjGY67zlononqRB','user','ak_f0608e00a94a55b9','2023-06-03 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$xi80bdXjFLmUA9IHAdhWkwlg3laEPZI/YYgjwHZkzJDgl5xrBPS9l','user','ak_da9bb83043ee5ec2','2023-01-06 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$HvXJ3piabv23SbViS8Igo9SBHy537OT42QWATehye8VQ.j/bXdCDu','user','ak_5ffc12b9a52de05f','2023-08-21 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$ixo1osltPqtzR0iU2FdvB9Zf90jm8ZON8cy6zTRC501eh4jf7xB7z','admin','ak_02d227c5dc60af8f','2023-05-04 10:14:00',NULL);

