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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$To.KV1PjKsgjjzd55116jpBrBz0HXKoVXkOcYaSMVgx3bflzYJkci','user','ak_39d35bdeb4f42346','2023-05-08 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$ks0jslMRUNlo3q58pSsneBzHMwZPVcIRUAbIq3BwDSIShW8ON2OJq','admin','ak_2312c0c53a07ec27','2023-01-13 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$47aqhfZOYsfTutgnhltZwEDE3miurqNvHbF9fg0kxHixm3lrZ2yAN','admin','ak_d7221b19d21e156f','2023-10-26 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$doS4m7eOcquNXmlF2TT4GkYAb22pYktYq7oMx3nqkIHsrYVWq1XGM','admin','ak_c1b81586bc5d20fe','2023-11-01 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$gFdHUwBVFOlHFJzvOLy/oQl9sxg/mAJFQHsJk0sYhRfIrsFGBLdAW','admin','ak_5568fd7b66c1b8f8','2023-11-13 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$Wpzsvi.OodIyy1tiG7YcCf7RXYN3zMLvWWxoc6pcvWW5Gk9QAqhab','user','ak_3aec70197fba7e3a','2023-10-03 10:03: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=4788;

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

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


