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


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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$JInz6foPVIEcPmU8nqtEshE6svfZnbZk33sFW31ysgRZn4P2GeAD9','admin','ak_8221a36ca33e15e5','2023-02-09 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$A1Va3lVoKv6fZQUc2U5Kcl.YTn5RaIs6NEqMiF2TKpnmWsKNcMnU/','admin','ak_03d8b677d4106510','2023-06-24 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$m31XxB1.XwFVbtpmf0Y3oNozMNGOnsR2ajFt0lqA5pnIYj57GWdVS','admin','ak_b26399d7ebb83f69','2023-05-15 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$p4e74eCqBwmQTQ0CeKbsWfIB2ij9x5Q2TXg/duLeDdqq/O1qbxi6k','user','ak_824e17096845f7d0','2023-02-23 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$xbDBtWcOAqtskibM2JKtAurnZP3Rlu6xnEWLoRa/lIvgmjlAA69p3','admin','ak_9a270e66a13ab485','2023-01-23 10:23:00',NULL);

