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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$XCtpoYgIoMTL7dXXNo6EYJHRECOG39.QIR7fMven4gJ0HiKCJt3h5','user','ak_6f05a0ecc4cc4887','2023-11-02 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$xI6PderdkXn8F5Ug9tVbzqkHghH1LAd9ZpsO1BzgCqqczHzGfc1GQ','admin','ak_0c1af546540cb604','2023-12-23 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$K230y0D5ktp1tgp9LWWuZHYx3mJ5JDpMp3JR/Nb.u.dpAZgcJcj/2','user','ak_ff7da97131bbc40e','2023-07-21 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$uNA58PB.3hMg9DH69hPhCTC4Q7JOnMrWbG1mn/YvWHwRJuKmiZ5Qz','admin','ak_30276834bf528825','2023-09-23 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=37470;

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

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


