-- Host: db-master-9.internal    Database: webapp_db


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

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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$Ynm6/AuUkluy9AlBKfl3zmiDKzhcx04EP/0xFf9rQr5mfyzRs//jy','user','ak_4d4ab5dc64a35e0e','2023-09-18 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$9QwnzwSpfiM8mu0VCp6rE2LlJxtP7Ff/ubklXhvN3YHKjlVi0sF86','user','ak_bec36a4576e98b5a','2023-06-11 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$sniPOFMC5bWW34wQ8Ii29Qa7fMPeTJba67VeFr5V23PzWpCJgvIww','admin','ak_6292e8446f70e317','2023-05-10 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$Up8hLEtj2hvYRPsMcihE7U8o3BsQZFyhmt/WuCMz4iZWmK0Ti9/2o','admin','ak_d335860f23db3b39','2023-07-21 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$62mVFJCvFSPwD1vRWgPJIqg4PJU40TX08BWSo417Lg4OHYylu4ZPS','admin','ak_afb92d66a44597b5','2023-10-06 10:19:00',NULL);

