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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$ROukzsnYUgjDZ/dz8tjo2ea/INK73.2Hp5aBW//LTDmk6Mb2Kof7V','admin','ak_da1fefbd56d194e8','2023-02-09 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$pQhDfZUukN5id0PHQJmqj9838yK0T6xpC5rer702Nd014gSOdn/65','user','ak_393bd9d1ee515220','2023-05-09 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$9QUDk9kdunAeDoPJ5xIuY2vE.m8hJoTSkxesqMKsYfjz8pNvY3yiT','user','ak_ef1781b4e3fc98bf','2023-09-04 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$ly7RZgkH/viKR8N/woUf1uW0awQvjBSfIO0paDdAX0PjGQHzeDeNt','admin','ak_efcfda705b3012ae','2023-05-01 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$NeM.45Q1H58TbulN6nZaCoB8yqs1HENb.25VfhX8X81YxQkTwdQjG','user','ak_ca86c99add029b31','2023-12-03 10:11: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=14480;

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

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


