-- Host: db-master-3.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=2156;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$d0ucWXkCNhvhBz14YbtC9sZSqMC6a57/DbqqoWrptPEvsVv3kSHvu','admin','ak_d91a5910bb731bcd','2023-12-11 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$2SNxFmsi3oc9XtXgrU4YkATNUMXcSiL8WiI2PUla.26Jo3kbX3MWK','admin','ak_3bf7fa9f18a164bd','2023-09-01 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$zgp2FbBYcXrooNjmZoiwQbMV/O3cZUKz8dbgLdGaHczGDkF/IJAaZ','user','ak_6a0c013bed1188c0','2023-12-09 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$PG72gsGF5ju9haGwzaz5JkSZTeZwiGgqEPGk18Zg3LmG.hxEY8hvs','admin','ak_38819d0bb3103982','2023-08-21 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$INBxzEp55pwvhzRZyijkAUza3Nmrt/5G0aRmTAKPJa1vs.urG3KkO','user','ak_5b977f0ccb16f96d','2023-06-19 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$vAq8DrFQMGadMr0Sip03fCsf04v2XNZpqcN8ijb.iqa1yDjfKmsB5','admin','ak_3092ca4a83214a08','2023-12-23 10:22:00',NULL);
INSERT INTO `users` VALUES (7,'admin@internal.io','$2b$12$CUnIaW49xkwwrpYbL4EsX8HkD6UGLZ5AONorq/Ix.wgvLzxexfsR4','admin','ak_031a55f685486bd3','2023-09-09 10:09: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=22314;

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

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


