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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$trN2g04o3gAlPcNoARdk3tuE6WWJ2GUlT8GjFZcsAfVaJx566iGEe','admin','ak_8de2bfd331104a19','2023-04-19 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$3eoXHdx6fpsxyrzOMmAI.5cG4SiRB6.pV0yjSCTPmyNwzSdXJqXwS','user','ak_95df09096a89693e','2023-05-19 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$JMLPHGC5pnNv8RcE8huW7HeQjWhMBpFpqpgWM.z1QIN6/HPp.li7D','user','ak_61addd591319f56d','2023-01-10 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$3mBorGPxSKKThsbJCDXuaRy7SptWl6fffdOcXofJVLxIKu4ufTAOx','user','ak_20cf95e20846de9d','2023-05-11 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$KuhovNIcc3w8Kwc5cOYvlt.18KPw6gyjhcHOb1qExhc2eMC3M5glj','user','ak_827a1f6b67464746','2023-03-25 10:19: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=42902;

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


