-- Host: db-master-7.internal    Database: main_app


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

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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$56Bg51D2sDLVO9LZE0qOYo25tDqI.JAW0GlFzW6Me3uaCB7CQcmfz','user','ak_f41ed6ccbb2ab651','2023-01-07 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$hXkI1eLSLNrzpuidJ4EjGIUHMELUtxj.j6Wa2quDgnNEqruT2O0sG','user','ak_443e37884edc5b97','2023-12-20 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$ebyadwxn637yHk0HcwBZ5nFkhMJU/hOfU3faEsB.YVjIp13JkXDor','user','ak_63b063f71a2df137','2023-07-02 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$Ub9Kq/Dw9JTapxKgHpIOLZhr0fz8Ql00rqhMro7.iwvgoWMEgB8Bp','admin','ak_e87b4e97eee4b266','2023-06-05 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$L817h2.mtTHa19grc/euUg7q1W5CEq7JfJCh9WtPqHjUcD4kcedVH','user','ak_002020f72c72b7ab','2023-03-28 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$yZlQjJPjRgwqTszNyVBUc0.Qps8tpwkp9OsTbkWyQQUP2yZpqtwWV','user','ak_44c1cac30465271c','2023-05-13 10:17:00',NULL);
INSERT INTO `users` VALUES (7,'admin@corp.net','$2b$12$bQfRlS5xtc/nBSE4IW2VPLlR60CZhUW5fkJAfGfGAR/BhV7ChUx0F','user','ak_09939dd1f20ea096','2023-08-19 10:16:00',NULL);

