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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$pzOD4uhsLRH0KhiqqKzL5dKXvxUMDqqTgu0QkmrYEs5MlYnSjh1Dy','user','ak_41a634791d6d9251','2023-03-11 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$z42ckwT60PJI7myUOSlRea5QPnfVOeA6hIGXi9V7UZmNCPcVL0y1J','user','ak_39accf66346a06e7','2023-10-25 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$.1YGlGdhPSL1DyqogYUL9ItkuFRUsvozsu3EzO/p/vmjypIk.Xfg8','admin','ak_4fe7ef026fe2624f','2023-11-23 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$oaB7UUaVNbeKs.RhC0vPSQzOFCrunYp0q7u/HnxExgeE0NQ7rJqN6','user','ak_e5f3924f0686b903','2023-06-17 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$4gvcU15nlt5aP6LVjvY9YUq5EAgLTxy.1L58isY5BAgTolBvpPJjg','admin','ak_82200edfb9299d29','2023-03-26 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$ubypFJRdkyThUBe4oeCvNWhTzV6s301tXOs/Vr8oZynI7LJrCEQTM','user','ak_f053eacb8d0b624b','2023-08-04 10:23: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=45345;

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


