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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$Axwk1Hg7/S.W/RUh2e8IdPkz8koZxFdE6G0.Y.4fzBRUdA6DClzbX','user','ak_bc4bbc82e712c3a5','2023-01-20 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$uRTDd.oFLXYScVQXfW7p./s41Q5AlP9mthR7ARtHj3I7X9lswlym5','user','ak_2f17529ac567c317','2023-03-04 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$9eIjK.rI7aBd8rXVt.jyTxaa5TjXn3giTdTGBgeismhbmieXtVX9K','user','ak_21398fcd42566ad6','2023-09-06 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$s7qIAlRG3eHYW5UaMAOE2exyhTwxFzjpA7iINZ2jNqIA.d4MjH1kv','admin','ak_97698a3355a254f2','2023-04-23 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$q/b0dA.zbcxBNdyFgmO0xzSu7c2DxilAhUsigxishjjx.MmA3ezl.','admin','ak_f01d69166fc52c73','2023-01-09 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$F9hIZH7kWgdQksai0U76V3OpV4d8/9XQOaA.7I5KnjURTsE7OXVG3','admin','ak_598cd278e7edb837','2023-11-23 10:05: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=48318;

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

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


