-- Host: db-master-5.internal    Database: production_db


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

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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$ms5jYO.dypJjUVqp7OKU/3t5NiJxBZNVHLVrOS0E6hW5AdKi.b8Pf','user','ak_e24dc54283dca59b','2023-12-18 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$qq3IW6zNG/hM8jZwp23lid9VHF1kfXx/0NpKiBErMz4xVlHN8WEsj','user','ak_4ba84315bc250363','2023-11-15 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$gLKTcNiaK2fbkX0d1PYE.FWEcL/ZxWJhKu8ES1nLgfpZ0CthHJes4','user','ak_5374634c46faae5f','2023-03-10 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$Ji7Dn.u3WzecR1GCbzP3ntb9r3ujHo5cRDEbz2Brc9cpmxlVx9Ilu','user','ak_45d2c0b432aa97f7','2023-06-28 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$4hKF0ie/GMD1MIsjVSF2o6cNAZm5YJnz5MHSYqLYFO.CF6T6k92sr','admin','ak_59d57510bb0e6226','2023-11-18 10:19:00',NULL);

