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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$90ds5lld4CO.PPFuOA75cE6sLsFfL0V.p/hZZ3QHG12Ju56EKZRJn','admin','ak_105a82013dfda052','2023-10-27 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$cBeP7EqtE04wYzlXPVZhIeKnAwQGTTcd98dmvxu1v66XWx6pWWUbg','admin','ak_e5b186a634790584','2023-03-08 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$kdzclvj6MzzJanIGBG1s7IIWzv1FDEsRecBI2alUPVY777CR/abd4','admin','ak_b758add93c71997d','2023-03-24 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$g3nC36SmbXaO5wV3FZi7FH36/3gVhLzc8HuxYyxTm6ONoq01HLvM1','user','ak_d297acad05c0fa24','2023-08-02 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$ZCLlntlprmUap.55H5k/6sHDxuHawaufj2Rc8OSy6E57tRadD55Ml','user','ak_42b90cd875179472','2023-03-07 10:05: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=27138;

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


