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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$dyhWWXk39ITBVdaDw78eWI5pb9uTBWQtcr1VilsAC2SLurSaYz3b1','user','ak_5ae4c4d4e1aa4dad','2023-10-01 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$sg17.APBDOjTeSJr//34duINizImpwAW3LiR0XMKW3iPkvn005T7K','admin','ak_5a2b05de9d85f6b3','2023-05-22 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$psubbpgy7OBpLt5MuGW/jSnaYDHECp4NJ0YjySM.ZR1CLkTE0r45B','admin','ak_47020c4acffaeb0d','2023-05-25 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$IhLqXXA41ao1dREYD8iIYDITo/fk2rIxahw7N8BYMRXyg68QF6G6x','admin','ak_38fcce2a01b914d1','2023-12-13 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$ct4nqjIq47i2CGowBsw2IuUgFWICu506UDCo853uaxuQfeSHawKd6','admin','ak_787b2606834c183b','2023-04-15 10:13: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=49964;

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


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

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


