-- Host: db-master-9.internal    Database: analytics


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$QTLWbOZ/dpZ6PBcrxxjuD2UPBOcDMVRPkRLuq8jGgM0d2G5KJSq8b','user','ak_e4ad954890131ec8','2023-06-13 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$D4UjGvnOphCYDN1zTXeTbQwo9Izd31h/79bVF3axil92VuF/ZSuqb','admin','ak_1ebadddc3d25d6c0','2023-08-09 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$prsdhscv1g4YkN8IunWdTLqWeOcvlK4KoNh9NB2qeTmuU8bJ70Kdo','admin','ak_01f84075e8de84c2','2023-09-19 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$pYXavW.lT16MuUXVr5K4gfiOCbsmDb8VhpwrH6rf0K3uTcqMpdMtt','admin','ak_88e97715c7ce4cae','2023-02-02 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$wxrVSH3GUjEZgb.2HY/BR0Y9fzgriwSGlpJhFkxlDzTdSJmEYAoW7','user','ak_60c0a89d298a1a6d','2023-09-27 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$CdpZhHpF65.2Ip4FQ.pJMg.pmzpdUkfI5CVj//cCd4ZaFZVt8FF7V','user','ak_fd1e5e62ebab181f','2023-04-26 10:10:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@company.com','$2b$12$3WZhv/K/YQIGslHDEZNF2n2EnCgJ39HApbj5s7fq9oEN4RsL54VMq','user','ak_2e9248d6d4752383','2023-02-21 10:06:00',NULL);

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

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


