-- Host: db-master-0.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=2487;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$196023NiPkYCFq1MOo9XOidTLOlcvDDsLCrxigYfc62VhfRchd1Ng','user','ak_5d683eae220ae5bb','2023-03-04 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$dc0LbqtxRz.YwHhqdIFgOvQctkhnEIfJkP8Hn8S/oqnkeqcnjDESJ','user','ak_24bc1dc51f567187','2023-07-20 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$Z9BltN2vvUFoWjIyeC7xl9G0TVVdgAXC6SSF5Vpch4KZF..o93t8.','user','ak_6599b788b4d37df7','2023-02-15 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$/R3WXfmkZu0xm.Dr0zG.1OltiRwh6nFV3j.FVwsk7hPbzWoRwrtZd','user','ak_957db5a00cbb9868','2023-11-24 10:23: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=18230;

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


