-- Host: db-master-1.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=36282;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$FpLJw0kn5POwk5Ismn07YMPBOWPwAC303F/fDACGq00cQGBebi4Ba','admin','ak_599383755ba46bf9','2023-09-05 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$tvppK.OxQZFC.Mgdykko0kFis8h8g9yUNLzRXt8UhBZobhVhB8iwp','user','ak_aa3f4dfaf0cb300f','2023-04-05 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$UJKZGCfTt0DGCD9ahbotNV/2sjQv1hbrUuyJ2U405Dfz0DRpnBvTE','admin','ak_de95ec1d0682f676','2023-06-09 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$mJZa8tPgFwDM3DunXWNzn6wPFO5thsAnk4ZalBEIi1ZBBNCYO5Edb','user','ak_1948ca70d86c42b2','2023-12-09 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$.Htd/JLkwtq8P6gcPiWlyO1Tb2CFxywgNfofQAUq08ZMv/l4Ix/Ks','user','ak_0d6f07debfbb6dfb','2023-05-19 10:12: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=12430;

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

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


