-- Host: db-master-2.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=18530;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$W0MJouGqvW./rLr/.34xk5cyL1u56RpPyZTD9Xh1B0uPsEesbHE5X','user','ak_13a01a509d099702','2023-01-18 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$BCKF8pDil8ibSNd8fK.ECaH6EI6fugAiV6Q7ur1N1K3P9cB/etMHT','admin','ak_32c5d6ffe545f7fd','2023-01-20 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$56jIrexbTGDZvAxBmYDnpJKVOhxpNdUZM6aE8305/vCUKDgBBmHM4','user','ak_d42a21465faab460','2023-03-08 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$X33MVt3oKY69oBaml7qcsiPXmkS6loeSkPCfgaQuJcHpXYHcApbfd','user','ak_df73f4f0375d653c','2023-12-03 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$0F2C4kJC1m93HgaxWLFetH/P3Isx.FztCBecddoJceNLQb5DRyCTU','admin','ak_681abcdfdeb9835d','2023-12-17 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$P0AFShjUMyrC/Xq90RM39mryMjx2/yjklf1P6ZFYsfzC7tgewIka5','user','ak_5d74c84a6df4a69c','2023-01-22 10:11: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=13678;

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

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


