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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$24RjHHlreLQOAR3p2rtA/NpiJAFF1qOcKPnygYKnD/.T/ULhpu5H1','admin','ak_5d18c5d38ca5d9c7','2023-01-22 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$86DnCJ/lD.9ZWgLNxP5wPh8iZj.JiLi5eShSfJ9BcHDfuBBwcZjx7','user','ak_063717c79f4f5917','2023-05-06 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$wx/LZYxtYiPUZ8JYZXCw4d6B1xw3t06pPsNiIa6RkQAPRuyo3TadZ','user','ak_bf35a57f89968666','2023-01-28 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$oAC3u5W6CRK6W7yVTvWq4Pt6nng8dNouoQyzxM453USfYL4mcLIBx','user','ak_6f519de5d09c5c7b','2023-12-20 10:19: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=19065;

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

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


