-- Host: db-master-1.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=12396;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$kpH8aRbkslGt5scJ.8pJtUEWdeR.YZW7u1SwnJqZURtAJQ0WBCGm9','user','ak_ce60ee237f0c8e2c','2023-01-24 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$3rztHfSpyCIbUR95yOvtRTvHvg2C7z3CYYrottZrnUJJERAAlEQKV','admin','ak_b7bf2728e9e9a301','2023-03-15 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$gYKg/9QCJN1y0R9m6vjqPk3VCHJ3kdwYfNzD8ANvO3Hz40aZOCTUr','admin','ak_ae3428fc88c14224','2023-01-26 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$fcvZLKzVcHVtrPePwGAP3LDyULnHyLj3R7IjB.lAm/JSRdkVBH9S0','user','ak_8f671b852d6391a9','2023-11-26 10:00: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=3607;

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

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


