-- Host: db-master-9.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=48568;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$zvW1j993DPeDPvSCGvcswxl71ChIE1AkUZ926B8tRNx5ypwqhMZem','admin','ak_9fb0f5d274a6170f','2023-10-10 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$/d6nX4xEctkPtOODtRFVjwH2nRVKf90pdewB/GuKms4zJFhaZ0WUV','user','ak_960b3424d4ac07f2','2023-07-25 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$aFpYURaNQwljrQkoDe2Mjo0HL7pEQKm45dJTE5ZQ3zBubCMX25Dl7','user','ak_b40e9975440ab588','2023-08-04 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$6lgQKm55dIqbZYkOpHxbzXfg8PFlpaK5rd5AqoSB6tGTHFxOaviBa','user','ak_b970d8643f635c2e','2023-04-05 10:21:00',NULL);

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

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


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

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


