-- Host: db-master-0.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$gi6qaiPVXM4t5zjtaQSXvhivnJOPOwEp3bzQvEZgR66de5k4rW.gi','user','ak_1d90833ebc5e7908','2023-02-26 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$LtznpGD0Masn795sTfgVBoXrs74cbZN9Gzskcryy9BHwLOdLmIhiJ','user','ak_4c50cd08487c6f60','2023-05-12 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$8sOSqEJtm8gccezUv8KwzzVYeUBz/uceIhQnH4K.XEw96GjMoYAED','admin','ak_6eebe22edf5426b4','2023-12-12 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$m9QU7Fljex31V0n0rc2/ILu1ZP8XXQxK5FZ1e8s47Eg7IDjvRkSWz','user','ak_55ed29ee885b0f28','2023-12-12 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$FraDny8ur6La49tQjC31etnvdlsPoXWKUtdKwEMlePZF089wngn8v','user','ak_97a5eab71287d030','2023-03-04 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$fukGvO/lmqIfOIDDF1EPW4P6OoSuki2cmvuuVgd6pzMCSsUNADKee','user','ak_fd8be564e786a1a8','2023-07-04 10:06: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=30057;

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


