-- Host: db-master-8.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=20563;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$ljbxPp1ij8ajg8NHTrxc2dfodsRSvDCS0fT.tVzDCzsClH9Yyj/oB','user','ak_e144ccee5f35a92d','2023-03-19 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$h/NfSo5kZWA.15Gw.S/QoO1TOb.gi23YxEaPNikFxGEErGgZvrdRa','admin','ak_e6970d4621dfe33f','2023-05-24 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$9qGQ6BzBLnn.sWBYhpr6Kwfsz/qOhXX5Zl.zZT.8ptNxu9tbEbEmz','user','ak_616387ae2069cfb8','2023-01-12 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$8FJ8.JL5hw8nOFtMYz.9OV3z2i64/vL2ZDPurW/oKZh47c.cB5DoQ','user','ak_978f234febcda77e','2023-06-02 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$ZrOFEZXJNFs1Fz.gNAc6DdHJYN8hdtNOEAwXGCkvZW3wqq8P1S1hn','admin','ak_aa30522b280a9806','2023-12-03 10:05:00',NULL);

