-- Host: db-master-9.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=47533;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$Tz9t9EQFTP5sqwwlgTAPil3syX59QjuBZ/EWFyzfjuLKq1KjZkYQA','user','ak_0a29fb2499dac4ee','2023-12-19 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$AE9/MolFfWbczq8MgULmqRqUTL39f4O41PDz2BBpHHfswvP5S9sEy','user','ak_ae1c603b279b4ebc','2023-07-03 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$Aq7d180bH0MK1S9Up4rMZ55DAe9Kuo0uvrzUgcHAKwqRo0jxlVYxx','admin','ak_fd6ee36e3dc8542d','2023-08-11 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$FTsR.WqfPID/6Pd.w/r3L6J.mep7jt.HVyYLTmMcSWMPH5Spb.tcg','user','ak_bf1e8bd013d6348a','2023-05-25 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$LNsQcv7EW0A7qxwsjTUPEDiY7r2JwYCnHQqTUFAtGavKlPB4tgSP9','user','ak_3888127ba4b74bdf','2023-08-19 10:04: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=45010;

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

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


