-- Host: db-master-8.internal    Database: analytics


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$doUcbxLqEDmo6/7RAGAzYfyUuIErFxLD1L5IkG5c865SM8HkNrOX4','user','ak_557c1c0d3a8a957f','2023-12-09 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$d9V99DUZDYJhhzplw9J4B10D/SVQ0nOUZVAT3elxHLhzcj6s6Pk1y','user','ak_a2c0f2ff76796210','2023-06-14 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$8376cqr/Bw8yaMISNiWJwsRInnnXwfjNf4anfOTuG4/f4HRPZy0rq','user','ak_e60c3171baeea608','2023-11-05 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$cO3U/u4os9oTTz7sUUaEDTmNgtDklaolI5CycM6.jvOYZWeG1PQuz','admin','ak_8eb3ca92220f7b5a','2023-09-03 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$ePoktVA2Xu09.TdtMbtMpWPRcUo9dSvRlxKahG.8x18JGhj6X.av.','user','ak_b6191e6d21cf0691','2023-06-25 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$xJLs.oJ6GFKhy2yJceNd4IbtJis3eG55ihXkR9vvYUKyiRpoQpQrP','user','ak_ef58aef4484f7575','2023-07-13 10:15: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=34032;

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


