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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$gieVhyrAlFwNulh0eXcOhZQLbGskaE.HOoiL8RBFvm3k2fxVvA8eB','admin','ak_f5062484eeeaabcb','2023-09-06 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$3WnlyLBZSvLst76msLDjtXNpIJEoFEizd19dBts7Xv/9bdhoycJT8','user','ak_add4894cdd8e6075','2023-02-18 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$yXphdFBKozew2ZTTUuXGbJv3SmwOjMNm9Xw/gzk0oR2DG.bbZj9ua','admin','ak_ff6d5e9ff39a0bf4','2023-01-02 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$o0U2fUSUU65ngkNbMITe.QBzHGW5wrfKnuQzg55C6Qj6NXSAhNWDK','user','ak_8e9b79208f626479','2023-12-23 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$fvSKwWRk8BUKvymPS/D/0thXAV0aoUbDP89pZMZpb7eCg3g/hAJFG','admin','ak_ed1aac82cba480fe','2023-09-14 10:09: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=17344;

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


