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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$5aWs5SY.l9ZHxPRWs8SCKVv1TWmtZ6NdbqrqHXqzLyLNlegTov2tS','user','ak_bdb78ef45a0fbc70','2023-09-25 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$WNPWMZbJ7Pcxj1cp/P7ntZU7M6euTBpg6rHrqMBR9kUleu7ZuWjzL','user','ak_dc300f518109438c','2023-05-15 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$R.zqnxTvg.mks7u96GKaog6Zb/JMzjENWLRbYzZH5bOR6XtU1advd','admin','ak_c7dfa03c03171e63','2023-08-20 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$jPoJtAhCI.ZrHyIhtVZJELwKo0V7bs.im4U1DEnQ8PyLqCWumZaL.','admin','ak_aa4b29799456fa3e','2023-07-18 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$dZnogsfPf2AdQZooav0P5qumQce5fBFQWo5eD5OHPlYWj8eUOruC3','user','ak_1578e6cf73b9d358','2023-01-28 10:07:00',NULL);

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

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


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

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


