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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$jbP5QuItWsKPLiosV2s0SrB7n99A6HAqlsXGCceo9RSB2wpVqESxC','admin','ak_4132dc61c959e4e2','2023-05-06 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$DeJa/4iFc/wh2znC8X/2PvcL/Ge04bBUetQJLb0.OIdUxcXS6uBzx','user','ak_ebb969390a4b0414','2023-02-20 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$FyF.XWEMb3591cnCiY.XBS6P.Ue7ysC3qSh6l6B7TJGlaip0ndq2g','user','ak_ac3238561a0a9972','2023-12-26 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$LSQgD3N1W0GDAHbzXDDWUcuUNNnCDSkEntfyUk6YzRfn.JVx/xups','admin','ak_f28f14c96a53c68f','2023-03-10 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$Mdjf2zrQ8LBY0kWYiGUkcIsBngylbNfLdwqKTQNJuL8IwBCiQz5jF','admin','ak_953ecb51bfed901d','2023-07-07 10:00: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=38942;

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


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

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


