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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=39989;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$QmPMZqBGvpkNYo4u0XDxDQm254gr2SMTBpx8oKLaJn8RO2UPGEOIj','user','ak_7b54c83ebe536c56','2023-09-12 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$xjaKh7YB7wHEuX1lE9L3DplHYAgylT9MQIMz2kldJOz.lJRSUQAXm','user','ak_988c9172ace2e31e','2023-11-17 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$SLV3AFK3j24TlhGAVJe00sCWRf4QI59.7fZBQ3b/nbrlpfYF6PViy','user','ak_accf43f9aba4718e','2023-06-04 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$aozQlLNgRNgHaV7tkXG65BD4O/.8HQeSNBN7hXZcEay97j7sXk2lX','user','ak_afbecb793df05810','2023-06-23 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$qHLl4YO3xi0GnJtBxzMaVZoLbM8/YDa1aLfNzdOTH4v0aYWVGeLrV','admin','ak_897315b54d398a87','2023-10-22 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=32762;

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


