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


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$qV4MPCWp3gIelmMBjbmCEW1GUwhY3Hu4KZ/JY9bEruLQRnzh6ZclY','admin','ak_cb0741c02190b8a9','2023-03-27 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$HYB.oWY0A9o5J8zs2BbW5CzEi4q4CmvkCQEGDXepkI9EP.Kz38jZU','user','ak_c914e011f67f49fb','2023-02-21 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$gosZ5d.7SweagmENdesuWU83PtEoQPbqeo.REgSZe4qEWJwqA0T9t','user','ak_fd33fa535ccc2234','2023-12-13 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$p1D4w.y0YCdx80UrGMdxWVL1NkfT7ahC7wkmLmncsB9C4q1r8CmYB','admin','ak_a706deb873f2530e','2023-06-27 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$8vA7oDa7IVg0uCN/hZ6aKovSHNVE6L3t4Y03XNB9ygVF/Qvy2Q3wM','user','ak_2cc963ef1f37218a','2023-11-12 10:17:00',NULL);

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

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


