-- Host: db-master-2.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=48735;

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$sKySFgxAn3zYc.XUSXBKk9AwuOTpagNurYj69u0lDMqIrNDN9gxd7','admin','ak_7a3b50ea901aabff','2023-12-21 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$Gt4a3Mfdwaynu9zA6B9JCfndhTJH5YI.T66NV0oTf0s8VRv93DUEQ','admin','ak_f9d6546ced62c8a0','2023-07-09 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$xm/CLSKnmsCzmrPMvHA1sWergOCKpMp7x8lf/PdWWaI4XDJwFH3vi','user','ak_2e1afd91fdf7842d','2023-08-20 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$w6kQTGtR/l5EAogKi.rKyO0lxpkgpGwZ.r4X4bUOytENdaInUWaTk','user','ak_db6415e94c71fd87','2023-04-19 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$bBxQLtJ.hDpabtbCnZC/HNy/FlQy1gG.hCQAGZb4qGOQrn2DUkWoa','user','ak_f80804e362d00e61','2023-09-27 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$.IgPOCeMMg2s0JI1nQWJn2r/St.7v3BmYdhOBdslTWegGIbRbNcF7','admin','ak_75903e0e2dabaa83','2023-03-12 10:05:00',NULL);
INSERT INTO `users` VALUES (7,'admin@example.org','$2b$12$gUAN6WAO/SjbGPL93.Q48WXLSMTdNm2Vu2ZdUBryxuI.G4OjFbYBA','user','ak_b908b6b5ec564841','2023-05-25 10:16: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=11244;

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


