-- Host: db-master-0.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=9999;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$So2UDfI1mza9hkLbvNaeK1GcQ6ga4HY0IdSgAyVipSYfwbGQ5TluI','user','ak_9a5c94e1cee83734','2023-05-16 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$6eh40p8Q6TE.E6piR7ZRB0hfFnUOKVnnPTNoUlXPyuSn.ExYOwmP.','user','ak_9b5306722c40816e','2023-05-19 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$YUpujbxzphSSvwH1MomuHs1/LwK0btfzZHAJYvoK5sGPGNIfjQYht','admin','ak_0d1a2564784e08e7','2023-06-23 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$nkNK0PJzYDMeokrrXCCuyAdS70BQYiOmW03yxPDJctwW43jJlVrOS','user','ak_4e5fa1111d617161','2023-01-28 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$4z6kJ7kt//EFLFWj1Jojg6mqr/uZdrK7PuKUYEVgb.61.1QbAGh13','admin','ak_80368980be719ff2','2023-03-12 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$eHQytAcdWjxByBEc3lB4ilhxpz5UQbhHVb0ud65F1ovP0d4U5rknO','user','ak_e225de6321070113','2023-04-01 10:21: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=7740;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=7698;

--
-- Dumping data for table `sessions`
--


