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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$p2nilKdwnUyF2EeGQ30EWhZDU0w6nSumGueY79vRUSbzhQdiS1wNG','admin','ak_c236bee5641cc56f','2023-03-06 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$frQmhFCDPEm86FEPTPqH3z0yMjI4.D5uSqntXu0n7qd11h.NxTwF9','user','ak_02fdd305f25c7748','2023-05-14 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$pX6LvqrtsyGLdIBbcSwcxGGomuTPunBAqYxnuiDP7Zg/7w5ONOY3C','user','ak_01db5e27c49d7671','2023-06-02 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$2GiadkOelV9Tke8KmZCr9DpInZEYlG/VrIpqZzj9vuqHb95sZhACi','user','ak_016bc0273afe5a3a','2023-07-04 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$9593QqlE19jsRIVvnQBJqWvdvlvbdnhi58rzIja/DLSMoQVZai.jZ','admin','ak_f36a327c07f327ce','2023-02-01 10:04: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=4058;

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


