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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$g.5ACbvnaEAf0XDmVN8yXFTA8YCYGAgbQ64EpDUr9bHFEfe2pDlXJ','user','ak_fb6328c81be03f6d','2023-03-04 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$aKZd/6PzPaa31fjIHfxBLJ28L/R3e4NgyA4hXFTlAXPtAE4DMtTK3','user','ak_7247cfccf8064242','2023-03-17 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$tLMo12dAre8Hq8w1F3OcwEJR72x4ks6x8ygJDdrxtXop8G4eWqb3a','user','ak_4b92b620bbaf5c90','2023-06-10 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$r14Lw1fIKeJOMfILQkQvyQfaN.kQMwjirteDTLScDY4amMwJdULgW','user','ak_398f0ba8a2ec0339','2023-11-27 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$0Dcbq/5h8xJ5ojv1SLjrUK0eYka9Ewb/2eJvYQjTozdtEHRToNN4V','user','ak_692118abaac274c6','2023-01-18 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$r02O6mA9NNid8VKzzM4.CUYZAAXoqe6SRjrmPK09kZyow74s1N2R.','admin','ak_f40de6a9ce5d58a0','2023-09-15 10:19: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=40495;

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

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


