CREATE DATABASE IF NOT EXISTS smile_api;
USE smile_api;

CREATE TABLE api_config (
  id INT AUTO_INCREMENT PRIMARY KEY,
  base_url VARCHAR(255) NOT NULL,
  bearer_token TEXT NOT NULL,
  entity_id INT NOT NULL,
  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

INSERT INTO api_config (base_url, bearer_token, entity_id) VALUES (
  'https://api.smile-indonesia.id',
  'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NzAwNzMsInVzZXJuYW1lIjoiZHV0YXNhcmFuYSIsInJvbGUiOjExLCJwcm92aW5jZV9pZCI6IjEyIiwicmVnZW5jeV9pZCI6IjEyNzciLCJzdWJfZGlzdHJpY3RfaWQiOiIxMjc3MDYiLCJpYXQiOjE3NTAyMTkzNTEsImV4cCI6MTc1MDgyNDE1MX0.Ki0VJ_f5PBGa-ddAtj6S8OUYP35npApe4WFaEYPY53o',
  19534
);
