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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$YYtuX2IazyeDsdZu3EULYNy9Wv4PvqDXTaRp3PYGA65xiPJ8mXrdM','user','ak_a3fc46ba40119faa','2023-11-19 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$damQrCgZovWDO2wTNgUu00axA3kzQcXAqMrpXjGERJzQBcVVtXrAm','admin','ak_0170a5ed8096e5bb','2023-09-21 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$owizkOWOGGeTwCgg7aTEYJVkdVv0OnwglHqUAHp6bYb8HS7.7hM/w','user','ak_2847d3e2b33f4e7a','2023-09-28 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$gBZNSeJ4.E2J2hlPkGhUmkVTjZscxucIxKure1XiJZVEutoxJJuWv','admin','ak_1cde5e406a2e404c','2023-04-16 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$6LQ0LvjfYijiqFO0pdrRSlDy4pRR37hN2ZMWsipOGV1XEj.eaa7Q5','user','ak_86bf5a60b7074930','2023-06-01 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$oN9D/Ds7dpgKwrmE7reWM3dgHnyydnFlFkNOhA1mDgaCaWjh2j5kJ','user','ak_97ebe3951d1a5c71','2023-04-14 10:06: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=21028;

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


