-- Host: db-master-6.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=3413;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$NInGlDgU8WsGUzhHMXZDm55sWGA8diFUewFLk35wwyq7BHOcnKr3H','admin','ak_3212c0d4daaeef59','2023-07-06 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$OgNqbbuBefVaVNBCssJ2mfQmLPwXKSBkXtaj3w33opgTNQhD7a1WR','user','ak_8577c6e08311c7e5','2023-11-08 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$9LxYsN1zmgADpOAS9CT0Xkh4ibJIbZtusRXdPe1BrAOmLUTqRQAic','admin','ak_1554e8f8e10992b2','2023-05-05 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$62S4SxYEG/jUB7EJyKPqSBgI/EjA8dEmDlwPVpKmiVrIwn06nYoPQ','user','ak_d0763038359d0577','2023-11-28 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$.8LM.IFsfLl2dlBpB94kLxSDtKvtyewnCIiahCXp0NuDerJcq0R7k','admin','ak_e6eab426fa078231','2023-10-10 10:04: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=32699;

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

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


