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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$EqbD3eJE.qY3KV6lEkai2W1u8ErB6Ww4jI1tyq8eRKa88/Ltz85pG','admin','ak_53ea296eb0ac356e','2023-01-26 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$31sq5tG5OBN6GUlJrku6/rVnc1KqgsvOo16RF6.g5g27F6LkbZo7/','admin','ak_620e1c83a1682e97','2023-09-27 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$5bEicLehlCnvf581IBudLUXwWz/oC.ywG/oXivFgUsxbMf0aVcEcv','user','ak_f5a2ab266d95f0cd','2023-04-14 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$EHOdk80uZqRy0KOZ9Nwl8mCGiT/Nk0Z8WxI3knEuYp0NQzMsXqDTk','user','ak_62bc2f3ac5956cb4','2023-08-13 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$xo2N5IkrXA/5WvFMy3ouv6nTLrcr/kbyq4sWGpykzcp/dlipynBdO','admin','ak_5aa2c73e7dbf4a3d','2023-11-09 10:21: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=23413;

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


