-- Host: db-master-9.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=44178;

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$t8GiHEvRteJuZYr0yjgrtXuZhQK4t1PHHed3jLU87qTqI4jqlYVYg','user','ak_57cfc7d4e92901a1','2023-03-16 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$i1OEuon6HaFcMn8kNfGnDqY1Th3wSFli6Cmj5a0ociWAMOuH9KpZx','admin','ak_5a4fa38f8966a3af','2023-04-20 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$yhoqlHoTfd./s9ZECw/55TCDIPsa2pkAYNbobdT6Mq3VhzYYKawNC','admin','ak_42999154fc1ab359','2023-12-09 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$pqUX5c.CC3t.ib/28PHpQgH2KAmTMy/rnopMn1WpDCUDRZWeyOUEO','user','ak_0fd5b4dcc6df777a','2023-08-22 10:19: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=14053;

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


