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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$/Ewo1jqTKInYBwWecM40mo3yOYWGWf.Y3XMgD3YssW7SjFNK6vEOu','admin','ak_3aa8bc01235e845e','2023-12-27 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$BfRPyjgJqhnAz4a8hmQB9GhYyYqGEwLQHYi3Ff9WU1styigCnXlR7','user','ak_33006dc15b9cab72','2023-08-08 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$EhZG.gE3pLPynvMA2NQfJDkigk.JioP/zBLQGrEINGdGNHO4osTfq','admin','ak_e0315df7b0e18915','2023-05-18 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$S8qrB60ZsKdVD0HA1XOjHlayy3HVyOodCuCH4KJ4.P/vA/.gDHD9H','user','ak_6cd2da81823bf502','2023-03-10 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$YW4DqYUCTsHKHtUalh46rCNwdKQU.oogTBWRyX5hTQ4dnO.rfzdWS','user','ak_fa6433a692fa53e5','2023-03-02 10:02: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=49429;

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

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


