You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sql/init.sql
+1-6Lines changed: 1 addition & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,26 +2,21 @@
2
2
-- This file includes all the necessary SQL files to set up the database schema
3
3
-- Enable UUID extension if not already enabled
4
4
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
5
-
6
5
-- Common utility functions
7
6
\ i common /utility_functions.sql-- Authentication and user management
8
7
\ i auth /user_roles.sql \ i auth /user_triggers.sql \ i auth /user_preferences.sql-- Problem-related tables and functions
9
-
\ i problems /problems.sql \ i problems /user_problem_feedback.sql \ i problems /user_solved_problems.sql \ i problems /problem_functions.sql-- Contest-related tables and functions
8
+
\ i problems /problems.sql \ i problems /user_problem_feedback.sql \ i problems /user_solved_problems.sql \ i problems /problem_functions.sql\ i problems /get_user_solved_problems.sql-- Contest-related tables and functions
10
9
\ i contests /contests.sql \ i contests /user_contest_participation.sql \ i contests /user_contest_feedback.sql \ i contests /contest_functions.sql-- Leaderboard functions
11
10
\ i leaderboard /leaderboard_functions.sql-- Grant necessary permissions
12
-
13
11
GRANT USAGE ON SCHEMA public TO anon,
14
12
authenticated,
15
13
service_role;
16
-
17
14
GRANT ALL ON ALL TABLES IN SCHEMA public TO anon,
18
15
authenticated,
19
16
service_role;
20
-
21
17
GRANT ALL ON ALL FUNCTIONS IN SCHEMA public TO anon,
22
18
authenticated,
23
19
service_role;
24
-
25
20
GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO anon,
0 commit comments