-- Host: db-master-3.internal    Database: webapp_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=31158;

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$asjFjo3xYVpT2RfCBDsjozYy4z2AcI6QqQERb/12ZNWq5kfeq0wXB','admin','ak_6f4834cdfebc210c','2023-05-12 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$qV21c6jL9.uu/EjaItLq8PICqXlVAHBfSFZeAi8OE.gjbpuzQr3In','user','ak_657652e596d9a7c8','2023-09-03 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$FUuINDpFtFY9cIVatOK7XHrQ3gRl6YU7Pk0b0BD1VugwfR6xXqiR8','user','ak_3eaca096de3b8f26','2023-05-12 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$ir0hTIj2S9agEfh2537F5O4Kw3vEJOGlY55NOYvHx7EW7shEGxJs/','admin','ak_3ef79b24861e9583','2023-06-28 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$oYDgwkwd9wuVN6msJwxQWMwT7/GvM0dGlWb6S7xXRAjLj4hLiPtre','admin','ak_83802c3823521b00','2023-03-26 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$wklb.q6LrVscBCU5UneQwdJjz/n9VwyIEANrpr11yBV1CUvK8jxlX','admin','ak_439a26e70f6b7f22','2023-06-20 10:11:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@internal.io','$2b$12$w9xlHw.BGnq1EMt6M/MUgtB7igOO7quw.GcNxbl29DXVCOD.YoIFf','admin','ak_80292ac354291055','2023-12-22 10:14:00',NULL);

