-- Host: db-master-3.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=27206;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$dOaS4qx7PcP062Xo/S8Zrk6yTYjs514mFESw.XMPrLXyKaQxOAWYi','user','ak_a2f429fadf198446','2023-09-26 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$E/nF/ZxeBQ/63MRwbN2hcZFN7Mt/ODOrzs5Si2q36xIz//lU5//tR','user','ak_f96c0c92ace00875','2023-07-26 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$/bf0NdxPDz0b3b/l7bGsd31AtEBtMgrA6nWHAlWMikZ3fA2yD.R0b','admin','ak_72df6ff36a2fc487','2023-09-01 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$cQR/oscMIwko7gGWPOw16v/88wDioWgqNyW.SLT/C/0/S8VAGHVcG','user','ak_383555ce5d56eb26','2023-08-05 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$4BzUgw5yZrrgcv5l29wCI5snnAZpC06.BB.qAmiB5jJX2V4ep.Sp/','user','ak_ea63248d95b270ec','2023-07-03 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$oQZS.acw0MV.Dqx7gInJZZG5.PZe8Z6CK4a4kAAs9UNS.LrnlHJtG','user','ak_de0f7c708e4c2e1d','2023-02-11 10:13:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=33222;

--
-- Dumping data for table `sessions`
--


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

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


