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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$f2bdOaSxeKuRWYaCVqvLtQIpmh46p1jYTI/dlqpPTG3fDc4rMlgVJ','user','ak_e2a81d8d83028316','2023-06-02 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$PdnDYpdsUhhiJQXrS/HyCApfnXrMhLt7TBqtsvLoDXpoLdD6WhCyT','admin','ak_111788da8826e443','2023-11-12 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$RhQoAgR5tYT70RSZaZpjy55wfSnImqRYYpQkseJtA.6TQES2MzHGU','user','ak_cd7ea41fde479dca','2023-11-10 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$C6CeowUgQKEsHtff1gTJTl8.SV7.jWcEmnkrxPCOEUnsxKPsInqt1','user','ak_9edf4c0d49dfe87d','2023-09-15 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$l0Znch8cRkBXJAMRFqKvVECEFVaxbpjJNe7aiCJAEUKN3xO9Tv.F9','user','ak_d96be8188a6d9583','2023-03-04 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$8h5H63n.K7Bw9lfoAEIC9iINJIesI1/Dn/vp2pwI6thX7jO.TtCGu','admin','ak_554b9773ae9047a7','2023-04-15 10:01: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=36137;

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

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


