-- Host: db-master-1.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=1108;

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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$CMP8Nt0DSkqQH82R/nJfIIMVpyrrajYhZDTpXON0tOVCKfJA5Zn2X','user','ak_a21acc823b31a38e','2023-06-06 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$PF.oXs8R7DjpUra8rIDpUQT/S.p12iw5XUB0eD3rVoByU9PFcMAaO','user','ak_e1ef5095ee76077e','2023-05-24 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$r5EW6046.ioi9Jy2.qWCDwPgwEWldJAn6btOAF13ISCXEulr8iyZy','user','ak_038d6703a535c0f6','2023-10-15 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$Zqw/BauzyIwXL3Oi0owBNsth2xX7zBkjjjtgb1WmeU9mdVH0c6jQ2','user','ak_3a46fa7cfc423e30','2023-03-18 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$AwMjYbc6EvBY/vDF9ye3z5LBde8qW/71zE04sYo91.30ShgKlEm42','admin','ak_ce6dc35388a71f48','2023-10-03 10:09:00',NULL);

