-- Host: db-master-8.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=9479;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$6ZvzFXFMp.njPd/ToPEEVlVRW4lQHw7Om1sGMOMB5JmrrjGXRReda','user','ak_e90311bc4134e8b4','2023-08-18 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$njxipk2Qc/ph3gM3CpGyPbxpljw11mEQRCUQz6Gkow9X6wrBNedJs','user','ak_758335e7b2993b6c','2023-12-03 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$He//tHOZRpLvO0ZajUvryU63OSmDD3OMIOaoUOZe9i188gpAZByH/','user','ak_bef58431cf2e7ea3','2023-12-04 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$VGIv3YB8J3/WNWeKfhW7V/cddp6Ep7c1qcBwVlYKzzz.dNOxYDv2.','user','ak_8bc6b639cf59544d','2023-08-12 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$/GoqiLkF9QIXT0ESMfPhHu0b5KEo8Ntw1OjYQ5wNmP6bSJFa23oNP','user','ak_1d4ad79dcc50d30a','2023-06-02 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$uiBgp7PhR7NC6SdOSmBvBb6KZQeLBnBIZt9HnFfiEPBadDfs0WW6V','admin','ak_c3b30f4e4d41a092','2023-10-05 10:20: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=30161;

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

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


