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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$eRNh63R.jxXcZijHgfjTmrQdjcDOcod/DAowaNz5ldtBMVu5pIIb.','user','ak_45ab00dd087e164d','2023-12-05 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$HdtzuUE7kqb83WHIbuc/xsAXF9HaBEf5b1FMZoCohB8BW9EPgv8Z9','user','ak_f4a3e7eef9f35657','2023-11-24 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$GQHvssA5kl3W2mbf8m6MiMDJbv/SiStZpRw1eVqMWJMDn0vVbJg6P','user','ak_250f8ede5854f2dd','2023-08-15 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$s372zECx4wHlUbTjHyAtjtre77qc6Yl95cXYrKz6J3YULlV3FG/Iv','admin','ak_989e3017f7f3fba7','2023-05-25 10:09:00',NULL);

