-- Host: db-master-6.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$yKMg5eVZAXt.MiEBkeDA2Ynuss5mdB2QlYL4MmIg7WNJonj/cyJnv','admin','ak_514d4ddfb3f3dbe2','2023-06-13 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$oZoTj0u5kzyhjReD1EwJ4KqWFZTS9XpToHu5eLAZyM5Gf8/aETuJI','user','ak_841c77cb98bf61d7','2023-10-21 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$NqmJjWnnVEZC.KybWoXzkk6QrkuVzLabqtqJtYtmFeI0Q1dUHnJxO','user','ak_1e514d461ff7731f','2023-09-27 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$yA3OtOa5fzus2zRR6sbLTvxLKHSFMb7n0XYaEXULAgNKV6OjlxSMo','admin','ak_9886420b35a3b5fe','2023-02-18 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$dmXW88g.axdY6Q4LaR5eDeNdOFA0JdejawXhDkH1peCahObAI0tRG','admin','ak_c40c8f5fc232ce00','2023-12-23 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$M0aD/oZ1URYqo.HBiRmC04l5Nu98proM9iWCHHTS7KrsAgEMeGwBA','admin','ak_962c7db0306175cf','2023-10-28 10:12: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=17870;

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


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

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


