Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
feat: create a migration of logs table for devpanther
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcodercrane committed Aug 18, 2023
1 parent b06587f commit f6e99df
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions supabase/migrations/20230818030324_create_logs.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-- Create `logs` table
CREATE TABLE logs (
id SERIAL PRIMARY KEY,
repo_name TEXT,
org_name TEXT,
comment_id INT,
issue_number INT,
log_message TEXT,
level INT,
timestamp TIMESTAMPTZ DEFAULT current_timestamp
);

CREATE INDEX idx_timestamp ON logs (timestamp);

-- Enable RLS for `logs` table
ALTER TABLE logs ENABLE ROW LEVEL SECURITY

0 comments on commit f6e99df

Please sign in to comment.