-- Host: db-master-8.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=5654;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$L8CyNpzwjYNB1cHSl4EsQfspt2F8XxgeiEdZxm2wer.5Vmf560Cm1','user','ak_0f89938218e0a158','2023-04-10 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$xYCeTg1NXuKfuPnomF9tf57XpsaujUbnOaJhAxmQTZ9Ro3A/D2sfP','admin','ak_dd0e6bdeb5ccf920','2023-07-13 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$ttiPZqXbb6sKo3pdoZaPLAx5Gqg3Unuo9H8hmw953.9NAJccSXU8.','user','ak_d1a4cc821cfb1790','2023-06-04 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$IPN/nhJj.MZufS56xLtma2LtM9nCZV5hq4OpqHthIXo0rukunD4kX','user','ak_c9fee2f0379cdee2','2023-05-02 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$Br.JUOjSDsgL6ydRSeJXunmHczWtqbnGYX/335tTVttQ1BfaNsoj/','user','ak_171c2685c227a63a','2023-12-02 10:13: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=38287;

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


