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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$czgrvoKHLDz5Vlc0b3DgP0i2Vm3IlOyZGM09uNjGZn8XcF1m6WqI3','admin','ak_1ffd8415e890f30b','2023-01-06 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$0M3Fz2fbs6n/3hKWkvdx6rnx4Gv.aHZSmEAmzZPrA1rr8GHEhwNtr','user','ak_b81896ee4488efaa','2023-09-16 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$9ZlcozquL3B7WMrLaXmEsMrM9KB2Pa0MahW1Ib23FZFAUAers1hHW','user','ak_0988de10e16fa4d1','2023-01-25 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$GMTtqnLwV80qEhfMULB/c3WThbbWPTxPDo5migZgodKoG.gh0N8vo','admin','ak_cd4572072b727b54','2023-09-08 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$Q/4PQi4KHT435hb8fH9CkEciokjUw7YT6uXFRQOmSaSv9k82LXy.X','user','ak_4d18df1d3e426e08','2023-11-22 10:07: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=7759;

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

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


