-- Host: db-master-8.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=6042;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$hUBwvAhWDaejmMLU4UiXPv.HNw9xs5aZp9zLQqRDvsEQy27Ny5ia8','user','ak_a041a719d5ac2020','2023-02-04 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$vLm1d9TacahW3jHdrVUbNyVf8qrFh4Rg5Sq02U9Ktio5EV/vIG2ll','user','ak_69e4831b7193aa19','2023-05-26 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$WxI5Xq5VHbCKo.uYSp1GFwWB1uch/l4LtaQAwLFUR9Ospe9hh8Tz0','user','ak_4710ee44e062912f','2023-08-01 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$jaCDrAjsfQRJ7LOZT4SO5m8dpbqImXA4YQFAcRoMdwkPWQXYXqO2t','user','ak_21c4ccdce74317b2','2023-02-08 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$Ci338t1iWwbiPScMqYoNbwDP5OupF3cqK3/T04OaYWzcrpz.aYvxm','user','ak_fa3fd96d357128bf','2023-12-04 10:03:00',NULL);

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

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

--
-- Dumping data for table `payments`
--


