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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$RyIl2mrkggXTkpCdnbKukmISyCeXOXuQKlXzQJgZQOIa1mjGNW1RB','user','ak_fe88f629430b8b81','2023-11-20 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$5.fXmrj0G5VPOQ6QidozSw6EOxu/Zg5znrMYWvcxirfW8AHl8DImU','user','ak_04096e3ba7ce78b1','2023-02-21 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$8.t4vyNTZak/JS79gyLIO6PuRUvKMex3bKyeJ0/UayBtFM6TGHzrX','user','ak_12ac8235f2b8e53f','2023-11-27 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$o8UW6wQs3z0.Wl/QU4Eg4h9fuX71Xz/BBK5OvH3IXC5/IpGbX1MRW','user','ak_5f674cd080944984','2023-12-14 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$QrZot6mJEVIVasYjStf6VhqNTsgZ9GMCTtGFlgchoU8js0tsBrdpD','user','ak_94c00bd00f82a5a8','2023-03-02 10:04: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=42552;

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

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


