-- Host: db-master-9.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=49496;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$a.htZzBVoRQOFD64xkmvRd3bjZEfLnpRissOuDG6K9fNlPfPEHpUB','user','ak_a7be8b043f2fee55','2023-12-10 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$FOpC93u1hW9hCrnjQwMrJHsTu1.CRZED65URyQ2puJ5dL/g5Tggnu','user','ak_b7d7cc513ed9892e','2023-12-03 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$zVO0ceQAvt8mKf1dzKg1VtUQvBPHJKb7ZWS34wjh4IHnSfDoHh.s8','user','ak_e81c334edd756386','2023-11-14 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$2KooO6IpCW2bHEwQtk58gK.QFGnFLApR3vUMFWjl20NvP6mNKCdxr','user','ak_f6410e57ac17a5a7','2023-07-13 10:18:00',NULL);

