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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$XzyWOi1/6e4mkNzDhzgj0pvBRAa.EOTyayQDcT6Ea6bkBG3o6poC3','admin','ak_c3ef908f39e03484','2023-06-24 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$.mlqEsSzbk2NLOwiG1pLjTW5HMWY9IWpVN0f.QGUmbsHN5BKgP8gg','user','ak_0713812fe8f1c72f','2023-03-14 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$qQrh78fVEYhTwLOevQsXhzHiH3pUlrv.pxg8v9fQHa/AGTUc.P10q','admin','ak_8624eca6dad07fdc','2023-02-10 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$H1B4vL6Pb7CxOfrVAPlt3G1wTHwAAGtBCHM.SHsCdqELbNAgE7Dhu','user','ak_468664ea233288b1','2023-07-18 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$6wfVsRCF6RIMUXPeATJn39EJYW9TLZe0mWWtYi5X0FfDyXRhB23r3','admin','ak_52647579a0129c03','2023-10-19 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$bgkEJ.w2lGTTczt9vteP2mTlRhaFQJvzZ8BhOr35VQGKC6bwCki.U','user','ak_1861e96258b3e300','2023-08-23 10:20:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@company.com','$2b$12$N32NFaHqD8PcohWcxwuvdXumvruouoAL2Ajz2FHKhP2ev6VKwDGIw','user','ak_eed3d0344a235c1e','2023-07-25 10:04:00',NULL);

