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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$BGO7dD470Kf65nq22kSD8ZE50Cm9XLzmNzommtiKLjnzNmM.CDLv6','user','ak_715e734884ae7116','2023-05-25 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$gbDtKxu.EFy8KeOI9lP/8T2SVt2Ga2rQJfRUrGMr3eACFbt2FLl8C','admin','ak_8ed151026a69af37','2023-09-01 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$TAaMvsg0OktfNETYjOS6nj7nGnOVKvgvs7X5CsxLiVUGOvA5AEVCF','user','ak_5009afe39a5371e8','2023-02-25 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$UiPvk9K0vmaHXEFSuJyvsYgGCnCICmn.alj/l5I5eQHh7I4XTmykk','user','ak_17b40ea70c022981','2023-07-28 10:19:00',NULL);

