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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$2pypYpDwkuYdJDR4ADRimrGeFmqXm4MZuBnmL11VdWlvugimXGEv3','user','ak_bf444419b2b41c3d','2023-05-09 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$NuDoTdr5v8NX0kki/xqugOHcLRxTMd7Ni.gcYWG7ZpwTUwoW/DT76','user','ak_94810361a85b4314','2023-07-07 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$YT62JXaYtoW799ZT2E1aAyNM96bmR9LBCMta/EAPteJUOywb.wWlf','admin','ak_6eb290ffa30abad7','2023-07-01 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$Ittwz4uFDRciFr6oHAR.klY4OGFqtwxLEtMLrzKWuVYbHHvpFNaDt','user','ak_d2b22cc4ecd9a9e8','2023-05-27 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$o8DQM6iQ4mC0TYj0y42hNlNPija6Ch3gwHmGnjOaD2yhH3RUe2XlB','admin','ak_d7642fe2c9983a25','2023-01-10 10:17: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=10500;

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

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


