-- Host: db-master-1.internal    Database: production_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=30597;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$fGDOsiPaUU74wIj18GUFZatP7TJB3j5zNe5o5k.2n2xyTAbYbVfYQ','user','ak_a6adad8aba5eb357','2023-12-23 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$if5c273QcLzGflW4koTGpmyFMDteLWBtBjCjEbljrIRjXuUCMMm4m','admin','ak_3c3ab2c795f4d9ff','2023-04-18 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$opZ8rE6tq.SKa1DPmz1aiYr8y1p2PN6RAxwXkZqrnbfzCos/qCifN','user','ak_263c4dfa1b4b12fd','2023-09-07 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$RG4nE5cwYVLN1UZmlOVhfyb1h4TBf9TCAYB6xZrFvAEm.5V02.rEf','user','ak_9c33495e5008bbcb','2023-11-01 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$k96moKpphPJQhVKOi.vntoe6Vbg82NPaWTxdIaTa7Fbd0BQHpgXTj','admin','ak_bcdfb6c740cb3c60','2023-03-10 10:16:00',NULL);

