mirror of
https://github.com/lucasrcsantana/story-generator.git
synced 2025-12-17 05:47:52 +00:00
127 KiB
127 KiB
| table_schema | table_name | column_name | data_type | is_nullable | column_default |
|---|---|---|---|---|---|
| realtime | schema_migrations | version | bigint | NO | null |
| realtime | schema_migrations | inserted_at | timestamp without time zone | YES | null |
| extensions | pg_stat_statements_info | dealloc | bigint | YES | null |
| extensions | pg_stat_statements_info | stats_reset | timestamp with time zone | YES | null |
| extensions | pg_stat_statements | userid | oid | YES | null |
| extensions | pg_stat_statements | dbid | oid | YES | null |
| extensions | pg_stat_statements | toplevel | boolean | YES | null |
| extensions | pg_stat_statements | queryid | bigint | YES | null |
| public | teachers | updated_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | teachers | class_ids | ARRAY | YES | null |
| public | classes | id | uuid | NO | uuid_generate_v4() |
| public | classes | school_id | uuid | NO | null |
| public | classes | year | integer | NO | null |
| public | classes | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | classes | updated_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | classes | teacher_id | uuid | YES | null |
| public | essay_analysis_scores | id | uuid | NO | uuid_generate_v4() |
| public | essay_analysis_scores | analysis_id | uuid | NO | null |
| public | essay_analysis_scores | adequacy | integer | NO | null |
| public | essay_analysis_scores | coherence | integer | NO | null |
| public | essay_analysis_scores | cohesion | integer | NO | null |
| public | essay_analysis_scores | vocabulary | integer | NO | null |
| public | essay_analysis_scores | grammar | integer | NO | null |
| public | essay_analysis_scores | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | teacher_classes | id | uuid | NO | uuid_generate_v4() |
| public | teacher_classes | teacher_id | uuid | NO | null |
| public | teacher_classes | class_id | uuid | NO | null |
| public | teacher_classes | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | students | id | uuid | NO | uuid_generate_v4() |
| public | students | class_id | uuid | NO | null |
| public | students | birth_date | date | YES | null |
| public | students | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | students | updated_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | students | school_id | uuid | NO | null |
| public | students | preferred_font_size | integer | YES | 16 |
| public | students | dark_mode | boolean | YES | false |
| public | students | accessibility_settings | jsonb | YES | null |
| public | students | notification_preferences | jsonb | YES | null |
| public | students | avatar_settings | jsonb | YES | null |
| public | students | reading_goals | jsonb | YES | null |
| public | students | last_active_at | timestamp with time zone | YES | null |
| public | students | uppercase_text_preferences | boolean | YES | false |
| public | students | language | USER-DEFINED | YES | 'pt-BR'::language_enum |
| public | stories | id | uuid | NO | uuid_generate_v4() |
| public | stories | student_id | uuid | NO | null |
| public | stories | content | jsonb | NO | null |
| public | stories | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | stories | updated_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | stories | theme_id | uuid | YES | null |
| public | stories | subject_id | uuid | YES | null |
| public | stories | character_id | uuid | YES | null |
| public | stories | setting_id | uuid | YES | null |
| public | stories | language_type | USER-DEFINED | NO | 'pt-BR'::language_enum |
| public | story_themes | id | uuid | NO | uuid_generate_v4() |
| public | story_themes | active | boolean | YES | true |
| public | story_themes | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | story_themes | updated_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | story_subjects | id | uuid | NO | uuid_generate_v4() |
| public | story_subjects | active | boolean | YES | true |
| public | story_subjects | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | story_subjects | updated_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | story_characters | id | uuid | NO | uuid_generate_v4() |
| public | story_characters | active | boolean | YES | true |
| public | story_characters | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | story_characters | updated_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | story_settings | id | uuid | NO | uuid_generate_v4() |
| public | story_settings | active | boolean | YES | true |
| public | story_settings | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | story_settings | updated_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | teacher_invites | id | uuid | NO | uuid_generate_v4() |
| public | teacher_invites | school_id | uuid | NO | null |
| public | teacher_invites | expires_at | timestamp with time zone | NO | null |
| public | teacher_invites | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | phonics_exercises | id | uuid | NO | uuid_generate_v4() |
| public | phonics_exercises | category_id | uuid | YES | null |
| public | phonics_exercises | type_id | uuid | YES | null |
| public | phonics_exercises | difficulty_level | integer | NO | null |
| public | phonics_exercises | estimated_time_seconds | integer | YES | null |
| public | phonics_exercises | points | integer | YES | 10 |
| public | phonics_exercises | is_active | boolean | YES | true |
| public | phonics_exercises | required_score | double precision | YES | 0.7 |
| public | phonics_exercises | created_at | timestamp with time zone | YES | CURRENT_TIMESTAMP |
| public | phonics_exercises | updated_at | timestamp with time zone | YES | CURRENT_TIMESTAMP |
| public | phonics_exercise_types | id | uuid | NO | uuid_generate_v4() |
| public | phonics_exercise_types | created_at | timestamp with time zone | YES | CURRENT_TIMESTAMP |
| public | phonics_words | id | uuid | NO | uuid_generate_v4() |
| public | phonics_words | syllables_count | integer | NO | null |
| public | phonics_words | created_at | timestamp with time zone | YES | CURRENT_TIMESTAMP |
| public | phonics_exercise_words | id | uuid | NO | uuid_generate_v4() |
| public | phonics_exercise_words | exercise_id | uuid | YES | null |
| public | phonics_exercise_words | word_id | uuid | YES | null |
| public | phonics_exercise_words | is_correct_answer | boolean | YES | false |
| public | phonics_exercise_words | order_index | integer | YES | null |
| public | phonics_exercise_words | created_at | timestamp with time zone | YES | CURRENT_TIMESTAMP |
| public | phonics_categories | id | uuid | NO | uuid_generate_v4() |
| public | phonics_categories | level | integer | NO | null |
| public | phonics_categories | order_index | integer | NO | null |
| public | phonics_categories | created_at | timestamp with time zone | YES | CURRENT_TIMESTAMP |
| public | phonics_categories | updated_at | timestamp with time zone | YES | CURRENT_TIMESTAMP |
| public | phonics_exercise_media | id | uuid | NO | uuid_generate_v4() |
| public | phonics_exercise_media | exercise_id | uuid | YES | null |
| public | phonics_exercise_media | media_type_id | uuid | YES | null |
| public | phonics_exercise_media | order_index | integer | YES | null |
| public | phonics_exercise_media | created_at | timestamp with time zone | YES | CURRENT_TIMESTAMP |
| public | media_types | id | uuid | NO | uuid_generate_v4() |
| public | media_types | created_at | timestamp with time zone | YES | CURRENT_TIMESTAMP |
| public | student_phonics_attempts | id | uuid | NO | uuid_generate_v4() |
| public | student_phonics_attempts | student_id | uuid | YES | null |
| public | student_phonics_attempts | exercise_id | uuid | YES | null |
| public | student_phonics_attempts | score | double precision | NO | null |
| public | student_phonics_attempts | time_spent_seconds | integer | YES | null |
| public | student_phonics_attempts | created_at | timestamp with time zone | YES | CURRENT_TIMESTAMP |
| public | student_phonics_attempt_answers | id | uuid | NO | uuid_generate_v4() |
| public | student_phonics_attempt_answers | attempt_id | uuid | YES | null |
| public | student_phonics_attempt_answers | word_id | uuid | YES | null |
| public | student_phonics_attempt_answers | is_correct | boolean | NO | null |
| public | student_phonics_attempt_answers | created_at | timestamp with time zone | YES | CURRENT_TIMESTAMP |
| public | achievement_types | id | uuid | NO | uuid_generate_v4() |
| public | achievement_types | created_at | timestamp with time zone | YES | CURRENT_TIMESTAMP |
| public | student_phonics_progress | id | uuid | NO | uuid_generate_v4() |
| public | student_phonics_progress | student_id | uuid | YES | null |
| public | student_phonics_progress | exercise_id | uuid | YES | null |
| public | student_phonics_progress | attempts | integer | YES | 0 |
| public | student_phonics_progress | best_score | double precision | YES | 0 |
| public | student_phonics_progress | last_score | double precision | YES | 0 |
| public | student_phonics_progress | completed | boolean | YES | false |
| public | student_phonics_progress | completed_at | timestamp with time zone | YES | null |
| public | student_phonics_progress | stars | integer | YES | 0 |
| public | student_phonics_progress | xp_earned | integer | YES | 0 |
| public | student_phonics_progress | created_at | timestamp with time zone | YES | CURRENT_TIMESTAMP |
| public | student_phonics_progress | updated_at | timestamp with time zone | YES | CURRENT_TIMESTAMP |
| public | student_phonics_progress | total_time_spent_seconds | integer | YES | 0 |
| public | student_phonics_progress | correct_answers_count | integer | YES | 0 |
| public | student_phonics_progress | total_answers_count | integer | YES | 0 |
| public | student_phonics_progress | last_attempt_at | timestamp with time zone | YES | null |
| public | phonics_achievements | id | uuid | NO | uuid_generate_v4() |
| public | phonics_achievements | type_id | uuid | YES | null |
| public | phonics_achievements | points | integer | YES | 0 |
| public | phonics_achievements | required_count | integer | YES | 1 |
| public | phonics_achievements | created_at | timestamp with time zone | YES | CURRENT_TIMESTAMP |
| public | student_phonics_achievements | id | uuid | NO | uuid_generate_v4() |
| public | student_phonics_achievements | student_id | uuid | YES | null |
| public | student_phonics_achievements | achievement_id | uuid | YES | null |
| public | student_phonics_achievements | earned_at | timestamp with time zone | YES | CURRENT_TIMESTAMP |
| public | phonics_word_audio | id | uuid | NO | uuid_generate_v4() |
| public | phonics_word_audio | created_at | timestamp with time zone | YES | timezone('utc'::text, now()) |
| public | languages | id | uuid | NO | uuid_generate_v4() |
| public | languages | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | languages | updated_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | story_recordings | id | uuid | NO | uuid_generate_v4() |
| public | story_recordings | story_id | uuid | YES | null |
| public | story_recordings | student_id | uuid | YES | null |
| public | story_recordings | analysis | jsonb | YES | null |
| public | story_recordings | created_at | timestamp with time zone | NO | now() |
| public | story_recordings | processed_at | timestamp with time zone | YES | null |
| public | story_recordings | fluency_score | integer | YES | null |
| public | story_recordings | pronunciation_score | integer | YES | null |
| public | story_recordings | accuracy_score | integer | YES | null |
| public | story_recordings | comprehension_score | integer | YES | null |
| public | story_recordings | words_per_minute | integer | YES | null |
| public | story_recordings | pause_count | integer | YES | null |
| public | story_recordings | error_count | integer | YES | null |
| public | story_recordings | self_corrections | integer | YES | null |
| public | interests | id | uuid | NO | gen_random_uuid() |
| public | interests | student_id | uuid | NO | null |
| public | interests | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | interests | updated_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | achievements | id | uuid | NO | uuid_generate_v4() |
| public | student_achievements_old | id | uuid | NO | uuid_generate_v4() |
| public | student_achievements_old | student_id | uuid | YES | null |
| public | student_achievements_old | achievement_id | uuid | YES | null |
| public | student_achievements_old | earned_at | timestamp with time zone | YES | now() |
| public | student_achievements_old | metadata | jsonb | YES | null |
| public | student_achievements | id | uuid | NO | uuid_generate_v4() |
| public | student_achievements | student_id | uuid | YES | null |
| public | student_achievements | achievement_id | uuid | YES | null |
| public | student_achievements | earned_at | timestamp with time zone | YES | now() |
| public | student_achievements | metadata | jsonb | YES | null |
| auth | saml_relay_states | id | uuid | NO | null |
| auth | saml_relay_states | sso_provider_id | uuid | NO | null |
| auth | saml_relay_states | created_at | timestamp with time zone | YES | null |
| auth | saml_relay_states | updated_at | timestamp with time zone | YES | null |
| auth | saml_relay_states | flow_state_id | uuid | YES | null |
| auth | sso_providers | id | uuid | NO | null |
| auth | sso_providers | created_at | timestamp with time zone | YES | null |
| auth | sso_providers | updated_at | timestamp with time zone | YES | null |
| auth | one_time_tokens | id | uuid | NO | null |
| auth | one_time_tokens | user_id | uuid | NO | null |
| auth | one_time_tokens | token_type | USER-DEFINED | NO | null |
| auth | one_time_tokens | created_at | timestamp without time zone | NO | now() |
| auth | one_time_tokens | updated_at | timestamp without time zone | NO | now() |
| auth | mfa_factors | id | uuid | NO | null |
| auth | mfa_factors | user_id | uuid | NO | null |
| auth | mfa_factors | factor_type | USER-DEFINED | NO | null |
| auth | mfa_factors | status | USER-DEFINED | NO | null |
| auth | mfa_factors | created_at | timestamp with time zone | NO | null |
| auth | mfa_factors | updated_at | timestamp with time zone | NO | null |
| auth | mfa_factors | last_challenged_at | timestamp with time zone | YES | null |
| auth | mfa_factors | web_authn_credential | jsonb | YES | null |
| auth | mfa_factors | web_authn_aaguid | uuid | YES | null |
| auth | mfa_challenges | id | uuid | NO | null |
| auth | mfa_challenges | factor_id | uuid | NO | null |
| auth | mfa_challenges | created_at | timestamp with time zone | NO | null |
| auth | mfa_challenges | verified_at | timestamp with time zone | YES | null |
| auth | mfa_challenges | ip_address | inet | NO | null |
| auth | mfa_challenges | web_authn_session_data | jsonb | YES | null |
| auth | audit_log_entries | instance_id | uuid | YES | null |
| auth | audit_log_entries | id | uuid | NO | null |
| auth | audit_log_entries | payload | json | YES | null |
| auth | audit_log_entries | created_at | timestamp with time zone | YES | null |
| auth | sessions | id | uuid | NO | null |
| auth | sessions | user_id | uuid | NO | null |
| auth | sessions | created_at | timestamp with time zone | YES | null |
| auth | sessions | updated_at | timestamp with time zone | YES | null |
| auth | sessions | factor_id | uuid | YES | null |
| auth | sessions | aal | USER-DEFINED | YES | null |
| auth | sessions | not_after | timestamp with time zone | YES | null |
| auth | sessions | refreshed_at | timestamp without time zone | YES | null |
| auth | sessions | ip | inet | YES | null |
| auth | sso_domains | id | uuid | NO | null |
| auth | sso_domains | sso_provider_id | uuid | NO | null |
| auth | sso_domains | created_at | timestamp with time zone | YES | null |
| auth | sso_domains | updated_at | timestamp with time zone | YES | null |
| auth | mfa_amr_claims | session_id | uuid | NO | null |
| auth | mfa_amr_claims | created_at | timestamp with time zone | NO | null |
| auth | mfa_amr_claims | updated_at | timestamp with time zone | NO | null |
| auth | mfa_amr_claims | id | uuid | NO | null |
| auth | saml_providers | id | uuid | NO | null |
| auth | saml_providers | sso_provider_id | uuid | NO | null |
| auth | saml_providers | attribute_mapping | jsonb | YES | null |
| auth | saml_providers | created_at | timestamp with time zone | YES | null |
| auth | saml_providers | updated_at | timestamp with time zone | YES | null |
| auth | flow_state | id | uuid | NO | null |
| auth | flow_state | user_id | uuid | YES | null |
| auth | flow_state | code_challenge_method | USER-DEFINED | NO | null |
| auth | flow_state | created_at | timestamp with time zone | YES | null |
| auth | flow_state | updated_at | timestamp with time zone | YES | null |
| auth | flow_state | auth_code_issued_at | timestamp with time zone | YES | null |
| auth | identities | user_id | uuid | NO | null |
| auth | identities | identity_data | jsonb | NO | null |
| auth | identities | last_sign_in_at | timestamp with time zone | YES | null |
| auth | identities | created_at | timestamp with time zone | YES | null |
| auth | identities | updated_at | timestamp with time zone | YES | null |
| auth | identities | id | uuid | NO | gen_random_uuid() |
| storage | s3_multipart_uploads_parts | id | uuid | NO | gen_random_uuid() |
| storage | s3_multipart_uploads_parts | size | bigint | NO | 0 |
| storage | s3_multipart_uploads_parts | part_number | integer | NO | null |
| storage | s3_multipart_uploads_parts | created_at | timestamp with time zone | NO | now() |
| storage | s3_multipart_uploads | in_progress_size | bigint | NO | 0 |
| storage | s3_multipart_uploads | created_at | timestamp with time zone | NO | now() |
| storage | s3_multipart_uploads | user_metadata | jsonb | YES | null |
| extensions | pg_stat_statements | plans | bigint | YES | null |
| extensions | pg_stat_statements | total_plan_time | double precision | YES | null |
| extensions | pg_stat_statements | min_plan_time | double precision | YES | null |
| extensions | pg_stat_statements | max_plan_time | double precision | YES | null |
| extensions | pg_stat_statements | mean_plan_time | double precision | YES | null |
| extensions | pg_stat_statements | stddev_plan_time | double precision | YES | null |
| extensions | pg_stat_statements | calls | bigint | YES | null |
| extensions | pg_stat_statements | total_exec_time | double precision | YES | null |
| extensions | pg_stat_statements | min_exec_time | double precision | YES | null |
| extensions | pg_stat_statements | max_exec_time | double precision | YES | null |
| extensions | pg_stat_statements | mean_exec_time | double precision | YES | null |
| extensions | pg_stat_statements | stddev_exec_time | double precision | YES | null |
| extensions | pg_stat_statements | rows | bigint | YES | null |
| extensions | pg_stat_statements | shared_blks_hit | bigint | YES | null |
| extensions | pg_stat_statements | shared_blks_read | bigint | YES | null |
| extensions | pg_stat_statements | shared_blks_dirtied | bigint | YES | null |
| extensions | pg_stat_statements | shared_blks_written | bigint | YES | null |
| extensions | pg_stat_statements | local_blks_hit | bigint | YES | null |
| extensions | pg_stat_statements | local_blks_read | bigint | YES | null |
| extensions | pg_stat_statements | local_blks_dirtied | bigint | YES | null |
| extensions | pg_stat_statements | local_blks_written | bigint | YES | null |
| extensions | pg_stat_statements | temp_blks_read | bigint | YES | null |
| extensions | pg_stat_statements | temp_blks_written | bigint | YES | null |
| extensions | pg_stat_statements | blk_read_time | double precision | YES | null |
| extensions | pg_stat_statements | blk_write_time | double precision | YES | null |
| extensions | pg_stat_statements | temp_blk_read_time | double precision | YES | null |
| extensions | pg_stat_statements | temp_blk_write_time | double precision | YES | null |
| extensions | pg_stat_statements | wal_records | bigint | YES | null |
| extensions | pg_stat_statements | wal_fpi | bigint | YES | null |
| extensions | pg_stat_statements | wal_bytes | numeric | YES | null |
| extensions | pg_stat_statements | jit_functions | bigint | YES | null |
| extensions | pg_stat_statements | jit_generation_time | double precision | YES | null |
| extensions | pg_stat_statements | jit_inlining_count | bigint | YES | null |
| extensions | pg_stat_statements | jit_inlining_time | double precision | YES | null |
| extensions | pg_stat_statements | jit_optimization_count | bigint | YES | null |
| extensions | pg_stat_statements | jit_optimization_time | double precision | YES | null |
| extensions | pg_stat_statements | jit_emission_count | bigint | YES | null |
| extensions | pg_stat_statements | jit_emission_time | double precision | YES | null |
| public | story_details | id | uuid | YES | null |
| public | story_details | student_id | uuid | YES | null |
| public | story_details | content | jsonb | YES | null |
| public | story_details | created_at | timestamp with time zone | YES | null |
| public | story_details | updated_at | timestamp with time zone | YES | null |
| public | story_details | theme_id | uuid | YES | null |
| public | story_details | subject_id | uuid | YES | null |
| public | story_details | character_id | uuid | YES | null |
| public | story_details | setting_id | uuid | YES | null |
| public | story_exercise_words | id | uuid | NO | uuid_generate_v4() |
| public | story_exercise_words | story_id | uuid | YES | null |
| public | story_exercise_words | created_at | timestamp with time zone | YES | now() |
| realtime | subscription | id | bigint | NO | null |
| realtime | subscription | subscription_id | uuid | NO | null |
| realtime | subscription | entity | regclass | NO | null |
| realtime | subscription | filters | ARRAY | NO | '{}'::realtime.user_defined_filter[] |
| realtime | subscription | claims | jsonb | NO | null |
| realtime | subscription | claims_role | regrole | NO | null |
| realtime | subscription | created_at | timestamp without time zone | NO | timezone('utc'::text, now()) |
| auth | instances | id | uuid | NO | null |
| auth | instances | uuid | uuid | YES | null |
| auth | instances | created_at | timestamp with time zone | YES | null |
| auth | instances | updated_at | timestamp with time zone | YES | null |
| auth | users | instance_id | uuid | YES | null |
| auth | users | id | uuid | NO | null |
| auth | users | email_confirmed_at | timestamp with time zone | YES | null |
| auth | users | invited_at | timestamp with time zone | YES | null |
| auth | users | confirmation_sent_at | timestamp with time zone | YES | null |
| auth | users | recovery_sent_at | timestamp with time zone | YES | null |
| auth | users | email_change_sent_at | timestamp with time zone | YES | null |
| auth | users | last_sign_in_at | timestamp with time zone | YES | null |
| auth | users | raw_app_meta_data | jsonb | YES | null |
| auth | users | raw_user_meta_data | jsonb | YES | null |
| auth | users | is_super_admin | boolean | YES | null |
| auth | users | created_at | timestamp with time zone | YES | null |
| auth | users | updated_at | timestamp with time zone | YES | null |
| auth | users | phone_confirmed_at | timestamp with time zone | YES | null |
| auth | users | phone_change_sent_at | timestamp with time zone | YES | null |
| auth | users | confirmed_at | timestamp with time zone | YES | null |
| auth | users | email_change_confirm_status | smallint | YES | 0 |
| auth | users | banned_until | timestamp with time zone | YES | null |
| auth | users | reauthentication_sent_at | timestamp with time zone | YES | null |
| auth | users | is_sso_user | boolean | NO | false |
| auth | users | deleted_at | timestamp with time zone | YES | null |
| auth | users | is_anonymous | boolean | NO | false |
| auth | refresh_tokens | instance_id | uuid | YES | null |
| auth | refresh_tokens | id | bigint | NO | nextval('auth.refresh_tokens_id_seq'::regclass) |
| auth | refresh_tokens | revoked | boolean | YES | null |
| auth | refresh_tokens | created_at | timestamp with time zone | YES | null |
| auth | refresh_tokens | updated_at | timestamp with time zone | YES | null |
| auth | refresh_tokens | session_id | uuid | YES | null |
| storage | buckets | owner | uuid | YES | null |
| storage | buckets | created_at | timestamp with time zone | YES | now() |
| storage | buckets | updated_at | timestamp with time zone | YES | now() |
| storage | buckets | public | boolean | YES | false |
| storage | buckets | avif_autodetection | boolean | YES | false |
| storage | buckets | file_size_limit | bigint | YES | null |
| storage | objects | id | uuid | NO | gen_random_uuid() |
| storage | objects | owner | uuid | YES | null |
| storage | objects | created_at | timestamp with time zone | YES | now() |
| storage | objects | updated_at | timestamp with time zone | YES | now() |
| storage | objects | last_accessed_at | timestamp with time zone | YES | now() |
| storage | objects | metadata | jsonb | YES | null |
| storage | objects | user_metadata | jsonb | YES | null |
| storage | migrations | id | integer | NO | null |
| storage | migrations | executed_at | timestamp without time zone | YES | CURRENT_TIMESTAMP |
| public | essay_types | id | uuid | NO | uuid_generate_v4() |
| public | essay_types | active | boolean | YES | true |
| public | essay_types | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | essay_types | updated_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| pgsodium | mask_columns | attrelid | oid | YES | null |
| public | essay_genres | id | uuid | NO | uuid_generate_v4() |
| public | essay_genres | type_id | uuid | NO | null |
| public | essay_genres | requirements | jsonb | NO | '{}'::jsonb |
| public | essay_genres | active | boolean | YES | true |
| public | essay_genres | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | essay_genres | updated_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| pgsodium | valid_key | id | uuid | YES | null |
| pgsodium | valid_key | status | USER-DEFINED | YES | null |
| pgsodium | valid_key | key_type | USER-DEFINED | YES | null |
| pgsodium | valid_key | key_id | bigint | YES | null |
| pgsodium | valid_key | key_context | bytea | YES | null |
| pgsodium | valid_key | created | timestamp with time zone | YES | null |
| pgsodium | valid_key | expires | timestamp with time zone | YES | null |
| public | student_essays | id | uuid | NO | uuid_generate_v4() |
| public | student_essays | student_id | uuid | NO | null |
| public | student_essays | type_id | uuid | NO | null |
| public | student_essays | genre_id | uuid | NO | null |
| public | student_essays | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | student_essays | updated_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| pgsodium | decrypted_key | id | uuid | YES | null |
| pgsodium | decrypted_key | status | USER-DEFINED | YES | null |
| pgsodium | decrypted_key | created | timestamp with time zone | YES | null |
| pgsodium | decrypted_key | expires | timestamp with time zone | YES | null |
| pgsodium | decrypted_key | key_type | USER-DEFINED | YES | null |
| pgsodium | decrypted_key | key_id | bigint | YES | null |
| pgsodium | decrypted_key | key_context | bytea | YES | null |
| pgsodium | decrypted_key | raw_key | bytea | YES | null |
| pgsodium | decrypted_key | decrypted_raw_key | bytea | YES | null |
| pgsodium | decrypted_key | raw_key_nonce | bytea | YES | null |
| pgsodium | decrypted_key | parent_key | uuid | YES | null |
| pgsodium | key | id | uuid | NO | gen_random_uuid() |
| pgsodium | key | status | USER-DEFINED | YES | 'valid'::pgsodium.key_status |
| pgsodium | key | created | timestamp with time zone | NO | CURRENT_TIMESTAMP |
| pgsodium | key | expires | timestamp with time zone | YES | null |
| pgsodium | key | key_type | USER-DEFINED | YES | null |
| pgsodium | key | key_id | bigint | YES | nextval('pgsodium.key_key_id_seq'::regclass) |
| pgsodium | key | key_context | bytea | YES | '\x7067736f6469756d'::bytea |
| pgsodium | key | raw_key | bytea | YES | null |
| pgsodium | key | raw_key_nonce | bytea | YES | null |
| pgsodium | key | parent_key | uuid | YES | null |
| pgsodium | masking_rule | attrelid | oid | YES | null |
| pgsodium | masking_rule | attnum | integer | YES | null |
| pgsodium | masking_rule | relnamespace | regnamespace | YES | null |
| pgsodium | masking_rule | priority | integer | YES | null |
| pgsodium | masking_rule | security_invoker | boolean | YES | null |
| vault | secrets | id | uuid | NO | gen_random_uuid() |
| vault | secrets | key_id | uuid | YES | (pgsodium.create_key()).id |
| vault | secrets | nonce | bytea | YES | pgsodium.crypto_aead_det_noncegen() |
| vault | secrets | created_at | timestamp with time zone | NO | CURRENT_TIMESTAMP |
| vault | secrets | updated_at | timestamp with time zone | NO | CURRENT_TIMESTAMP |
| vault | decrypted_secrets | id | uuid | YES | null |
| vault | decrypted_secrets | key_id | uuid | YES | null |
| vault | decrypted_secrets | nonce | bytea | YES | null |
| vault | decrypted_secrets | created_at | timestamp with time zone | YES | null |
| vault | decrypted_secrets | updated_at | timestamp with time zone | YES | null |
| realtime | messages | payload | jsonb | YES | null |
| realtime | messages | private | boolean | YES | false |
| realtime | messages | updated_at | timestamp without time zone | NO | now() |
| realtime | messages | inserted_at | timestamp without time zone | NO | now() |
| realtime | messages | id | uuid | NO | gen_random_uuid() |
| public | story_generations | id | uuid | NO | uuid_generate_v4() |
| public | story_generations | story_id | uuid | YES | null |
| public | story_generations | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | story_generations | language_type | USER-DEFINED | NO | 'pt-BR'::language_enum |
| net | http_request_queue | id | bigint | NO | nextval('net.http_request_queue_id_seq'::regclass) |
| net | http_request_queue | headers | jsonb | NO | null |
| net | http_request_queue | body | bytea | YES | null |
| net | http_request_queue | timeout_milliseconds | integer | NO | null |
| net | _http_response | id | bigint | YES | null |
| net | _http_response | status_code | integer | YES | null |
| net | _http_response | headers | jsonb | YES | null |
| net | _http_response | timed_out | boolean | YES | null |
| net | _http_response | created | timestamp with time zone | NO | now() |
| public | story_pages | id | uuid | NO | uuid_generate_v4() |
| public | story_pages | story_id | uuid | YES | null |
| public | story_pages | page_number | integer | NO | null |
| public | story_pages | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | essay_analyses | id | uuid | NO | uuid_generate_v4() |
| public | essay_analyses | essay_id | uuid | NO | null |
| public | essay_analyses | overall_score | integer | NO | null |
| public | essay_analyses | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | essay_analysis_feedback | id | uuid | NO | uuid_generate_v4() |
| public | essay_analysis_feedback | analysis_id | uuid | NO | null |
| public | essay_analysis_feedback | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | schools | id | uuid | NO | uuid_generate_v4() |
| public | schools | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | schools | updated_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | essay_analysis_strengths | id | uuid | NO | uuid_generate_v4() |
| public | essay_analysis_strengths | analysis_id | uuid | NO | null |
| public | essay_analysis_strengths | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | essay_analysis_improvements | id | uuid | NO | uuid_generate_v4() |
| public | essay_analysis_improvements | analysis_id | uuid | NO | null |
| public | essay_analysis_improvements | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| public | teachers | id | uuid | NO | uuid_generate_v4() |
| public | teachers | school_id | uuid | NO | null |
| public | teachers | created_at | timestamp with time zone | NO | timezone('utc'::text, now()) |
| vault | secrets | secret | text | NO | null |
| public | story_themes | icon | text | NO | null |
| public | story_recordings | improvements | ARRAY | YES | null |
| public | achievement_types | name | character varying | NO | null |
| public | achievement_types | description | text | YES | null |
| public | story_recordings | suggestions | text | YES | null |
| vault | decrypted_secrets | name | text | YES | null |
| vault | decrypted_secrets | description | text | YES | null |
| vault | decrypted_secrets | secret | text | YES | null |
| pgsodium | key | associated_data | text | YES | 'associated'::text |
| storage | s3_multipart_uploads_parts | bucket_id | text | NO | null |
| auth | sso_domains | domain | text | NO | null |
| auth | flow_state | authentication_method | text | NO | null |
| pgsodium | key | comment | text | YES | null |
| pgsodium | key | user_data | text | YES | null |
| public | stories | context | text | YES | null |
| public | student_phonics_attempt_answers | answer_text | text | YES | null |
| public | story_recordings | strengths | ARRAY | YES | null |
| pgsodium | masking_rule | format_type | text | YES | null |
| public | story_themes | slug | text | NO | null |
| public | story_themes | title | text | NO | null |
| public | story_themes | description | text | NO | null |
| vault | secrets | name | text | YES | null |
| vault | secrets | description | text | NO | ''::text |
| extensions | pg_stat_statements | query | text | YES | null |
| public | story_subjects | slug | text | NO | null |
| public | story_subjects | title | text | NO | null |
| public | story_subjects | description | text | NO | null |
| public | story_subjects | icon | text | NO | null |
| realtime | messages | topic | text | NO | null |
| realtime | messages | extension | text | NO | null |
| realtime | messages | event | text | YES | null |
| auth | mfa_factors | secret | text | YES | null |
| public | interests | category | text | NO | null |
| public | interests | item | text | NO | null |
| public | story_characters | slug | text | NO | null |
| public | story_characters | title | text | NO | null |
| public | story_characters | description | text | NO | null |
| public | story_generations | original_prompt | text | NO | null |
| public | story_generations | ai_response | text | NO | null |
| public | story_generations | model_used | text | NO | null |
| public | story_characters | icon | text | NO | null |
| auth | mfa_factors | phone | text | YES | null |
| auth | identities | provider_id | text | NO | null |
| net | http_request_queue | method | text | NO | null |
| net | http_request_queue | url | text | NO | null |
| storage | s3_multipart_uploads_parts | etag | text | NO | null |
| public | achievements | name | text | YES | null |
| public | story_settings | slug | text | NO | null |
| public | story_settings | title | text | NO | null |
| public | story_settings | description | text | NO | null |
| net | _http_response | content_type | text | YES | null |
| public | story_settings | icon | text | NO | null |
| net | _http_response | content | text | YES | null |
| public | achievements | description | text | YES | null |
| public | story_details | title | text | YES | null |
| net | _http_response | error_msg | text | YES | null |
| public | story_details | status | text | YES | null |
| storage | s3_multipart_uploads_parts | owner_id | text | YES | null |
| auth | mfa_amr_claims | authentication_method | text | NO | null |
| auth | identities | provider | text | NO | null |
| storage | s3_multipart_uploads_parts | version | text | NO | null |
| public | story_pages | text | text | NO | null |
| public | story_pages | image_url | text | NO | null |
| public | story_details | context | text | YES | null |
| public | story_details | theme_title | text | YES | null |
| public | story_details | theme_icon | text | YES | null |
| public | story_details | subject_title | text | YES | null |
| public | story_details | subject_icon | text | YES | null |
| public | story_details | character_title | text | YES | null |
| public | story_details | character_icon | text | YES | null |
| public | story_details | setting_title | text | YES | null |
| public | story_details | setting_icon | text | YES | null |
| public | teacher_invites | text | NO | null | |
| public | story_pages | image_path | text | YES | null |
| public | story_exercise_words | word | text | NO | null |
| public | story_exercise_words | exercise_type | text | NO | null |
| public | story_exercise_words | phonemes | ARRAY | YES | null |
| public | story_exercise_words | syllable_pattern | text | YES | null |
| public | story_pages | image_url_thumb | text | YES | null |
| public | story_pages | image_url_medium | text | YES | null |
| public | story_pages | image_url_large | text | YES | null |
| public | story_pages | image_path_thumb | text | YES | null |
| public | story_pages | image_path_medium | text | YES | null |
| public | story_pages | image_path_large | text | YES | null |
| public | story_pages | text_syllables | text | YES | null |
| public | teacher_invites | name | text | NO | null |
| auth | schema_migrations | version | character varying | NO | null |
| public | teacher_invites | subject | text | YES | null |
| public | teacher_invites | message | text | YES | null |
| auth | instances | raw_base_config | text | YES | null |
| public | essay_analyses | suggestions | text | YES | null |
| public | teacher_invites | status | text | YES | 'pending'::text |
| public | teacher_invites | token | text | NO | null |
| storage | s3_multipart_uploads | version | text | NO | null |
| auth | users | aud | character varying | YES | null |
| auth | users | role | character varying | YES | null |
| auth | users | character varying | YES | null | |
| auth | users | encrypted_password | character varying | YES | null |
| public | essay_analysis_feedback | structure_feedback | text | NO | null |
| public | essay_analysis_feedback | content_feedback | text | NO | null |
| auth | users | confirmation_token | character varying | YES | null |
| public | essay_analysis_feedback | language_feedback | text | NO | null |
| auth | users | recovery_token | character varying | YES | null |
| auth | saml_providers | entity_id | text | NO | null |
| auth | users | email_change_token_new | character varying | YES | null |
| auth | users | email_change | character varying | YES | null |
| auth | mfa_challenges | otp_code | text | YES | null |
| public | schools | name | text | NO | null |
| public | schools | address | text | YES | null |
| public | schools | phone | text | YES | null |
| public | schools | text | YES | null | |
| auth | saml_providers | metadata_xml | text | NO | null |
| auth | saml_providers | metadata_url | text | YES | null |
| auth | users | phone | text | YES | NULL::character varying |
| public | schools | director_name | text | NO | 'Não informado'::text |
| auth | users | phone_change | text | YES | ''::character varying |
| auth | users | phone_change_token | character varying | YES | ''::character varying |
| public | phonics_exercises | title | character varying | NO | null |
| public | phonics_exercises | description | text | YES | null |
| auth | users | email_change_token_current | character varying | YES | ''::character varying |
| public | essay_analysis_strengths | strength | text | NO | null |
| public | phonics_achievements | name | character varying | NO | null |
| auth | users | reauthentication_token | character varying | YES | ''::character varying |
| public | phonics_achievements | description | text | YES | null |
| public | phonics_exercises | instructions | text | NO | null |
| public | essay_analysis_improvements | improvement | text | NO | null |
| storage | s3_multipart_uploads | id | text | NO | null |
| public | phonics_achievements | icon_url | text | YES | null |
| auth | identities | text | YES | null | |
| auth | refresh_tokens | token | character varying | YES | null |
| auth | refresh_tokens | user_id | character varying | YES | null |
| public | teachers | name | text | NO | null |
| public | teachers | text | NO | null | |
| public | teachers | phone | text | YES | null |
| auth | refresh_tokens | parent | character varying | YES | null |
| public | teachers | subject | text | YES | null |
| supabase_migrations | seed_files | path | text | NO | null |
| supabase_migrations | seed_files | hash | text | NO | null |
| supabase_migrations | schema_migrations | version | text | NO | null |
| supabase_migrations | schema_migrations | statements | ARRAY | YES | null |
| supabase_migrations | schema_migrations | name | text | YES | null |
| storage | buckets | id | text | NO | null |
| storage | buckets | name | text | NO | null |
| storage | s3_multipart_uploads | owner_id | text | YES | null |
| auth | saml_relay_states | request_id | text | NO | null |
| public | teachers | status | text | YES | 'pending'::text |
| auth | saml_relay_states | for_email | text | YES | null |
| public | phonics_exercise_types | name | character varying | NO | null |
| public | phonics_exercise_types | description | text | YES | null |
| storage | buckets | allowed_mime_types | ARRAY | YES | null |
| storage | buckets | owner_id | text | YES | null |
| public | classes | name | text | NO | null |
| storage | objects | bucket_id | text | YES | null |
| storage | objects | name | text | YES | null |
| public | classes | grade | text | NO | null |
| auth | saml_relay_states | redirect_to | text | YES | null |
| public | classes | period | text | YES | null |
| auth | audit_log_entries | ip_address | character varying | NO | ''::character varying |
| public | phonics_words | word | character varying | NO | null |
| storage | objects | path_tokens | ARRAY | YES | null |
| storage | objects | version | text | YES | null |
| storage | objects | owner_id | text | YES | null |
| public | phonics_words | phonetic_transcription | character varying | YES | null |
| auth | saml_providers | name_id_format | text | YES | null |
| storage | migrations | name | character varying | NO | null |
| storage | migrations | hash | character varying | NO | null |
| public | phonics_word_audio | word | text | NO | null |
| public | phonics_word_audio | audio_url | text | NO | null |
| public | essay_types | slug | text | NO | null |
| public | essay_types | title | text | NO | null |
| public | essay_types | description | text | NO | null |
| public | essay_types | icon | text | NO | null |
| public | phonics_word_audio | audio_path | text | NO | null |
| storage | s3_multipart_uploads | upload_signature | text | NO | null |
| storage | s3_multipart_uploads_parts | upload_id | text | NO | null |
| public | languages | name | character varying | NO | null |
| pgsodium | mask_columns | format_type | text | YES | null |
| public | languages | code | character varying | NO | null |
| public | languages | instructions | text | YES | null |
| public | essay_genres | slug | text | NO | null |
| public | essay_genres | title | text | NO | null |
| public | essay_genres | description | text | NO | null |
| public | essay_genres | icon | text | NO | null |
| public | phonics_categories | name | character varying | NO | null |
| public | phonics_categories | description | text | YES | null |
| public | languages | flag_icon | character varying | YES | null |
| auth | sso_providers | resource_id | text | YES | null |
| auth | flow_state | auth_code | text | NO | null |
| pgsodium | valid_key | name | text | YES | null |
| public | students | name | text | NO | null |
| public | students | text | NO | null | |
| storage | s3_multipart_uploads | bucket_id | text | NO | null |
| public | students | guardian_name | text | YES | null |
| public | students | guardian_phone | text | YES | null |
| public | students | guardian_email | text | YES | null |
| pgsodium | valid_key | associated_data | text | YES | null |
| auth | flow_state | code_challenge | text | NO | null |
| auth | flow_state | provider_type | text | NO | null |
| public | students | status | text | NO | 'active'::text |
| public | story_recordings | audio_url | text | YES | null |
| public | student_essays | title | text | NO | null |
| public | student_essays | content | text | NO | null |
| public | student_essays | status | text | NO | 'draft'::text |
| public | students | avatar_url | text | YES | null |
| public | students | nickname | character varying | YES | null |
| public | phonics_exercise_media | url | text | NO | null |
| public | phonics_exercise_media | alt_text | text | YES | null |
| public | students | preferred_themes | ARRAY | YES | null |
| public | story_recordings | status | text | NO | 'pending_analysis'::text |
| auth | flow_state | provider_access_token | text | YES | null |
| auth | one_time_tokens | token_hash | text | NO | null |
| public | media_types | name | character varying | NO | null |
| pgsodium | decrypted_key | name | text | YES | null |
| pgsodium | decrypted_key | associated_data | text | YES | null |
| public | media_types | description | text | YES | null |
| public | story_recordings | transcription | text | YES | null |
| auth | one_time_tokens | relates_to | text | NO | null |
| public | story_recordings | error_message | text | YES | null |
| pgsodium | decrypted_key | comment | text | YES | null |
| auth | sessions | user_agent | text | YES | null |
| public | stories | title | text | NO | null |
| auth | flow_state | provider_refresh_token | text | YES | null |
| public | stories | status | text | YES | 'draft'::text |
| auth | sessions | tag | text | YES | null |
| auth | mfa_factors | friendly_name | text | YES | null |
| pgsodium | key | name | text | YES | null |
| vault | decrypted_secrets | decrypted_secret | text | YES | null |
| pgsodium | mask_columns | key_id_column | text | YES | null |
| pgsodium | mask_columns | associated_columns | text | YES | null |
| pgsodium | mask_columns | nonce_column | text | YES | null |
| pgsodium | masking_rule | view_name | text | YES | null |
| pgsodium | masking_rule | col_description | text | YES | null |
| pgsodium | masking_rule | key_id_column | text | YES | null |
| storage | s3_multipart_uploads_parts | key | text | NO | null |
| storage | s3_multipart_uploads | key | text | NO | null |
| pgsodium | masking_rule | key_id | text | YES | null |
| pgsodium | masking_rule | associated_columns | text | YES | null |
| pgsodium | masking_rule | nonce_column | text | YES | null |
| pgsodium | masking_rule | relname | name | YES | null |
| pgsodium | mask_columns | attname | name | YES | null |
| pgsodium | masking_rule | attname | name | YES | null |
| pgsodium | mask_columns | key_id | text | YES | null |