-- Host: db-master-8.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=46988;

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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$YEC3tXgSeHWMTlf56KQAx6Sj6hU05V4d.lyt.alDQWqh.MPsibA57','user','ak_ec3c896245780f09','2023-05-21 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$1p81m1cfu5.q2eclKdYC6XuZ.M4GIyKbXigAv8BfjdYluQboCaats','user','ak_a59b470b4fce2d97','2023-08-17 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$B.Tf4qpT1uEyL6hovSGHZVRvXUe1wGCwrRzOISn7ePKYzrwn0yFGm','user','ak_384eb6238ff2cf58','2023-07-24 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$Z1a4Q5c3vaBGW1vRonu.g.8HOROJx3d6uA0Jqfo0Ds3vaczaRQGmC','user','ak_81b4a75f964f8a8a','2023-09-01 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$maUl.JzSSXG.5E.oAwETNhwiBH2oQqabG1b9yMjvw2TR7cMaqbur7','user','ak_a2cf44c1e9f3a1c6','2023-06-07 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$7ulJP.G2zBsg0m87xzG/fkNrFjEgiFRSmZ/tQY3ooBZAzBhdw168c','user','ak_2e74dd399baaa64c','2023-02-08 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@company.com','$2b$12$7e4TGKNhWeNLKdJrm57xArgUlRFNoq2KKeFQUZAvZsvZ.q9KclO3n','user','ak_26c878001edcb1e2','2023-03-18 10:23:00',NULL);

