-- Host: db-master-3.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=28775;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$Ao5yoXoZeOp8TpkJxJ0wczrZVdHnyZ/cSlgg4tbxELJ55kR8iMRVd','admin','ak_18ebb62b87ded227','2023-02-10 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$M5fi/76/WbbcX7yVcUzOfIJiaEfIK2kcQXb4EzHfDtMWrUT7PBAUG','admin','ak_1e7f615b60d3047c','2023-12-24 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$49x5NZ/fU6idy.dHLsZrpGNWFSzfHuGdHaYIBNtcaens5gyO6Uama','user','ak_9ffa81229764ac2e','2023-12-02 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$5OrUc.5SkCP5YKi.6Py5LUAPg37h2yZR3TUPGiHuzYnmn3n0UWnF/','user','ak_587af6a53e3ecb7f','2023-04-23 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$rBcDZbxXpuDVHQBf/pryRfIOpxKLL4PM1cEjKh0z7UyTWZHCnKq3b','user','ak_7ebd5ace65dd70a0','2023-08-25 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$/Exk.vusC3tZq2KUsvdHa9S.LEYlm09PjEX9jYHMQogIseKjcO7G/','user','ak_d9ead1dcef76bc44','2023-11-20 10:15: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=29492;

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

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


