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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$.NzkdS8jNRLZAyeGOz19KqEk/kCgGKvuklOJL7gsC5iL0Q2Jh3OHk','user','ak_017627f27d915e66','2023-12-17 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$.9xrVLGQ53CRguH8Jion0FpNFsEFrPsDud9R1JPFU8PgRcAlpJYo1','user','ak_8e15301fbbca5ca3','2023-05-10 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$RWu9AZSbvdlAEctCWiMht0Z7/CrQvTgNnKVexY1E7FXc4ynz7EOm0','user','ak_2c908c47d464d73a','2023-10-21 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$AozUgsYQ7nEAGFhfWmkCI01VfFkatWmh9ogw3vUNNAqYqLswtDZAW','user','ak_b59b0c0774f4fe06','2023-04-22 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$cSHomUjt7ilKUzJOseRQI.eicet7hViC8bwo9TuIZyfpWWE0YqHnA','admin','ak_645f3807fd7fb74e','2023-07-24 10:14:00',NULL);

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

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

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


