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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$jiQBaLgb/hq5ylYywEh7yfshqB/k6.7LskXiSz8TAjF/87d6psYSK','user','ak_79ed6ef2c4b430eb','2023-08-17 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$rLx2cx8R9wJku/Oj5QeWTPvWUokAIosXMcCsg2rgmo1hb32NLr1Zq','admin','ak_6c44d1b07fc13798','2023-08-01 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$tQPdK1SwPw1Js0R1sKCAaBpIdoZ/TB5A.wW1JXMaj4GsAHpMG/9Di','admin','ak_86f56c90cbf6f36b','2023-05-13 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$NRHDV6Bfdkpf8LGYEiuDLDWiTmELvFjMhrZbZKCCF5H17C4XYR1Lh','user','ak_d9493799eadcca83','2023-07-17 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$EbDAMMjsYfxlQpfaOiDTTKLs0J7SeO7QHM8e1V./S.D0zPceJwUms','user','ak_b9ee777583af8706','2023-01-05 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$Lo2bpbukUUGPuQxXphyonr8PH8t6M1pynHdQlJi3nwsw2qqopRwhp','user','ak_17ea671451338996','2023-03-27 10:23:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=27910;

--
-- Dumping data for table `products`
--


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

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


