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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$mufioK5tICfTpT92LN5Ignx9bmBsiGnZD8ziQWLSCtGaG2fn4y4JW','admin','ak_3e57dd47259c268b','2023-04-18 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$uEEpDF4ZQV9diwo9i6pQVVgGnmxy4t11pzDbU73SGwBpJRdMNPIlE','admin','ak_349272d181cc0685','2023-10-22 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$oMA7sb.4pJZXeD0jgu9eSvP.A4c8/7ekPwYYRQNwfwT2fZCuxtEQ9','user','ak_bb8288a378d90b63','2023-11-28 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$Ik9IvYtbRx.EbFyuEcOI41aPWzaHeVmvdDxqslMcfDT3nxak.YbYy','user','ak_054b824347407d94','2023-04-13 10:15: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=33584;

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

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


