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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$JflSA1.37mVhAqdNASxWbknRflHGSKLKHJRcNJ3cK8kVfV8s4QpJb','admin','ak_24664a3ee9d2d45b','2023-04-11 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$rMZQGJ.brp1Ha6KoqhvabPfdFrUTOehSYxqtDJItuoWeMBkSO/X1H','admin','ak_416fa9121c2ab552','2023-04-15 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$MjqihMMYC5zQPpUcXTYZEf70jnLO91WBOd6UWWq7R1ds/1djLf/2L','user','ak_eb27225a11b23157','2023-06-11 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$0zKYp8CrgebVN4T8/6Qyl17K33wN5MF2Z9Of/lt4xVjQnUcqCTDwV','user','ak_cc1d2cebe8bf99f7','2023-02-07 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$qul31wVrfwMmXnPVC5y68nM3dwTnbKPPwSjZnKsiJF3kEtUj3SzkQ','user','ak_e3f6caf0a8acd51e','2023-01-02 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$PGTCPQagFcMq8toCC7FT2ZPGccDK6xVFPYRjpvALO5VNZBuxXfWhk','user','ak_bf0ff4cbf1976091','2023-07-02 10:16:00',NULL);

