-- Host: db-master-0.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=16393;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$7QZrdVmqp33Ir0b5CYXO.0gsSdfnlIFe8u1KI2sg1fZ.DGc9/SrI2','user','ak_af5a1c1505b43d8a','2023-07-28 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$t80XQdosgajhSvVW.wmFarBys4r.B/TPp7jxncYn3LiRRvP3ldrL6','admin','ak_9315e9b4d996a5b9','2023-02-21 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$tldj8G/veN22YNYiA.O3ezj0SGPJw8HQAQ3pTcLjNbcmukxU/gUlt','user','ak_58a093adb07ea16e','2023-02-22 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$iA5u2Pl6ZPFL1eypyYrbt601jsGWrwakOiKubRsHYu/VXXyHzzk7j','user','ak_2a854e7b00ff7706','2023-03-02 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$9jNnjge73RVfJp9u7Uzj.CkwGDCz/scmcBFI1WtrGZvehnpw6HxQg','admin','ak_dcf1236aedaec4d8','2023-04-08 10:20: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=49109;

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

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


