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


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$5fFmsDOeQhE.2nch6nAy30.KQ6xakubgLiBYLU3xKmcu83cL5iVKy','admin','ak_fee48b099f7843dd','2023-08-04 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$.odNwZkIy/DSFo2bu54C4y21AG/HzWHkb4CWRG7lFnlxY7Vu4BKaN','admin','ak_bd33cf2f95c4be7c','2023-12-12 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$qfMEPHf.6VMqGk62ckLcXu/9u6/RuMcJLvFsVKTrASTSCB5E/09mS','user','ak_b5ea96e58bfb76c8','2023-10-03 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$xq3B.VZ/508I2zbkUQBQFP0rgiHvN1W0NoBGjadaP8VmWvgesO/UR','admin','ak_7172da131aea26d0','2023-06-03 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$rYUYbvYSdNKHWQNfJgQDgvTB8ZASAYvZvqJ4pKf7fU7OWR2DLEe0G','user','ak_d29faeb902cfcdc8','2023-05-19 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$Cr/eWf.HLXpR6djJcYcAoLL63ngI7xvCOZmsBj5t3jmUtsF.8BjYW','admin','ak_4bae0515e10a0776','2023-07-13 10:13: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=22258;

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


