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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$Ccoc4eUl40EYK96IXtFhxruP.iKIO810gLBSoQt9amPi3uonOjlSI','user','ak_7a8dbc07aeae1964','2023-08-27 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$t5.Bh/AgTRaakdsP0p17EOr7jcv7fupRbTgO4lWdo0MMWpr0kx1KA','user','ak_6d3e949e45b74d9d','2023-04-23 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$yuLkSfnyB64RtETHC9Nd9rOy6sZz7m/FuX7IxGe6BeKSD3LandVZH','user','ak_ec3f57b55c230ff7','2023-05-10 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$d8YsGwOc0qeckOdMn1p3L9gY4bRB4kUoXA8Ozu2GNl5hL0KebfmHO','user','ak_124e700221109796','2023-10-28 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$qWSpmJTwLKDE1tQHeopN6YZhjznzoiRNS77Yfs.xXDlbHO5SlYlK0','user','ak_aecbac7b01b68ec8','2023-08-28 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$MYrG43HN5Qwi8vNaNlutLLaWAS2lgCobLafeszxvQTvI3/RXO8Ayq','user','ak_856e0a263922cba5','2023-10-23 10:01: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=36118;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=30965;

--
-- Dumping data for table `products`
--


