-- Host: db-master-9.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$UiQnv6EWQKjuR/x8QzRmAw5pUAKFB3Oxx.WM0NMLHCc7cPvcZGJWU','admin','ak_ac7e0d350b9901f1','2023-03-25 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$.DYBPLqpDUYvMueWIROg.LB1.UOmMbBlbGianudwZ9Xsgq7rmQI9r','user','ak_1e5f9472760b24f8','2023-12-16 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$GkbL.qVyUXZ2dc.Lli.rz3PwQpSi3k3Wot41G8zSCoZUMpDmABV4M','admin','ak_0a891786bd900964','2023-11-27 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$aLP05PxXCryNQHh1BEg3r1LBWX8zAv/3LMmPUeXYGo4ozYhRaLrHX','user','ak_2a6b46f50be8f2cc','2023-01-24 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$DFfbq27c38qay.tgm39d1JZer0uO6D7tqZQWazfNdZ/HizFNi599b','admin','ak_65c0f9f07a238e68','2023-09-12 10:12:00',NULL);

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

--
-- Dumping data for table `audit_log`
--


