-- Host: db-master-5.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=28516;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$FloVVrj1yO6A/d5UzEoPRNPWbxLpLUgCY.Km2HjI8wdng490eRiX1','admin','ak_53473600f6b1a506','2023-11-22 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$k4Z82lwxbTCvLcGWat/j9jMURQ5.UcR4vaX7n6JFyIePaiNBcYPqd','user','ak_2c53794d5c7219ed','2023-09-07 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$7TrEpERZiZRHU2ywvkDI1hV/CdZI.XKAgW3yYDcwn.yZsQ6FLT1Bo','admin','ak_c4b5b5fc2264bbfb','2023-02-23 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$rdAxaFOSms9.PY6LF1I6izO6Gw1khFXT5ajy1usAMWz7hxXPjmgsa','admin','ak_fb0ba3cc30bb5e53','2023-09-18 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$g3FRVlo0gk1Jxjk1ykwPBqJ3sFhF0yqboutGQqrPlIWoVroNjQfxa','user','ak_cd3568255dc1f36c','2023-11-03 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$ZDWhD/iBCLrwAs0v4zAR92KZxtkXyZiYCRiBV9w6aRF4y20GgqYsN','user','ak_e642d416b3c55769','2023-10-20 10:19:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=25117;

--
-- Dumping data for table `audit_log`
--


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

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


