-- Host: db-master-9.internal    Database: production_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=31128;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$3iwVIyW.tIfBGxTIvVXcUhEozHC7TQo1bacPixb783U1bMA8PjON2','admin','ak_9aec1663a14df90c','2023-03-23 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$tDGuEQl3Kpy9eT83MTJHL///nXOdZ7cVgIq./qxwgLFGNpZF7xtPa','admin','ak_b77e38d5a348e3ea','2023-03-11 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$tB0yo5RWYNvmUegi4/hDB4EfsTIVkpcKbIPK0YuH7p9yTmzfFA5fe','user','ak_ba367e2a3638a554','2023-03-17 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$VpoW4HddGau4h9IttWPDakowyT/EeR18QZW2.T.9KcB3iARYBTmvU','user','ak_7e5b92bd34ba7572','2023-02-01 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$O5kXWaYLWUVpBp7MS4U18IttD3eg7IbVVhBqykKq.gB5vzU4S.HBJ','user','ak_777e9e5839c86ea8','2023-06-05 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$VPtr1GmjxrS5fQlgq0PK0UeG4miazVLTYd5KEAjUftexQMDtmzyDc','user','ak_45c24112aa70731e','2023-05-01 10:15:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$bXq6GnpT3QYm9EK/ccJoKUe/fMJhNVj045QZDrXVGh5yPbUfi73E7','user','ak_74ce8f0133cb4bd4','2023-02-12 10:15: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=21144;

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


