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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$luFOnUq8fcQ6GQUL82mNow41am8C5cueLN6FLS6hxVUQyN1q.afYk','user','ak_59d8a5844abf9530','2023-08-10 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$FD09UAZS92WZT6aWvYcIQprh98aJ0nARNJMHV5c2lg5e72sajxUQQ','admin','ak_bbcd6ee8f1ba7cdb','2023-05-11 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$9Xzq5YmAV2SdrEOq7ayfLLhYS9sKzHhNoZcljpNWegiGzH9Ap8CpR','user','ak_e7dde15fa452b93c','2023-06-20 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$Hmlc1xvKQJU3GHrwcg3vhZ.vgo9u9JFSY7pT5hpRl4icIJLkOLBUW','user','ak_e7be9990110c304f','2023-02-27 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$1Eo7I.kV2hJfXZKHwVKQgk0ePjCnL0D.z4T4bOc3UvuL6L1Z7VT95','admin','ak_7196deed68a16e0a','2023-03-23 10:11: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=45164;

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


