-- Host: db-master-7.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$LiPaDdpDzTuqkNd3.QRnD2bFCsfOCfpOEAyYrysi7KCvsRXo6XoQ3','admin','ak_2c61cf25520f9cf7','2023-05-05 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$FzicXQcqMdGJTDT3BoCoPRVatL9QM6MFQY/Fl/8yTTuhj6EbY9rh/','user','ak_0ddd56a66e7571bb','2023-10-09 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$nQ4rz3t9WTxakUuEj6uohFf.Vra8kR8hQh5J.AuvT69ueMfyK.nAk','user','ak_38f537bb20f84662','2023-08-08 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$HEFMMloBlJyWiHqQdpMEd7LNvfdn5QLtBmFGgNU808kIIXuxOaue3','user','ak_ac6105eea5abe11d','2023-01-03 10:17:00',NULL);

