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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$TGWivJwDbBlT4pYQHXNIp976704ZLgA3DiuInab664yEiByy3LQ3I','admin','ak_d869f6fb952e8900','2023-02-05 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$Be05.NiNWHV0n68hur7qUZWSZNzp57hR29G9dzQAoB3ZXKkvQmHlW','admin','ak_0788ca7445a5c266','2023-05-02 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$9tK.2gImDLbXTN4WEzo96XX1xFBm02ggxI3a7RR3I/5GS7m8UBaR9','user','ak_b04d9985174af967','2023-02-04 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$WZ/3M.obbh9N5idbBzpHTNftbgN8chXeuppMJnRQHEubrEHnvy1d7','admin','ak_8fb7027bcbc7e69d','2023-08-02 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$MoFiYzIfAybzgJ8Te9svLpFwWYPRYQjNTHmE0Ug0ji7MJdWzHQE15','user','ak_340c71ea2d25852c','2023-12-15 10:23:00',NULL);

