-- Host: db-master-5.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=6728;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$OC0Y8V7P2bwhDWf.PpzuFr8QMGeJVoxxU3l13DvaEsdcPtYiIzCW3','user','ak_bdfcfac6bcc80d3b','2023-01-24 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$WDqnsR6bb/UW93rk1DOUNvwux7EZwFBpb5ezk/xVgTo4kNbCuiJqm','admin','ak_7f1c1ed7b44349b2','2023-06-04 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$tIZdgBTrcYTbOPzCIAvenQfJ2bPB3gbEXSQtTdGbkX/h8i7Itmr3H','user','ak_828fd0c0a9f078f2','2023-02-07 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$zn7c3tj0dA/tlD4v9g79y7yodH0jCtVuVEesYX0iNaz7DuCAdC7oR','admin','ak_7edc3c184eb95755','2023-07-14 10:23:00',NULL);

