diff --git a/sql-migrations/telegram_bot_groups.sql b/sql-migrations/telegram_bot_groups.sql new file mode 100644 index 0000000..c0cf9f2 --- /dev/null +++ b/sql-migrations/telegram_bot_groups.sql @@ -0,0 +1,8 @@ +CREATE TABLE telegram_bot_groups ( + id bigint PRIMARY KEY, + created_at timestamp with time zone, + updated_at timestamp with time zone, + group_name text, + from_id bigint, + github_repo text +) \ No newline at end of file diff --git a/sql-migrations/telegram_tables_rls.sql b/sql-migrations/telegram_tables_rls.sql new file mode 100644 index 0000000..638060d --- /dev/null +++ b/sql-migrations/telegram_tables_rls.sql @@ -0,0 +1 @@ +ALTER TABLE telegram_bot_groups ENABLE ROW LEVEL SECURITY; \ No newline at end of file