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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$oi5tdcpOweS0dc8gL3J.GYliz2tgkHZ4Uq1zrgb2wfbj6NDxPf8Sz','user','ak_651e4d655333574c','2023-01-07 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$JCYDwBSbjBpWYBoIg3Hgoqc/M8MLlpCm.Ri33VwyT2kifR.7CS0hH','admin','ak_90fe533a2375d2b3','2023-04-27 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$zGQTC/3OtrgfWykSz0qSaLvs3rSRlZ02PHiP./bHYUGnSBItyQMS/','user','ak_3dfebaee86f0ef4e','2023-10-14 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$UfmIGhE0NMsYtEwdaGvM0CvtX11W8BBPGtWNjmgHe4baykdt587To','admin','ak_011ff365dd890561','2023-08-20 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$pjjjNn83j1gehsb9YCXFx0dDDdL7C8DsW8x.8aOokI2UtM9PiU2AC','user','ak_85ec8c4c4ef36b1b','2023-10-06 10:02: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=4825;

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

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


