Skip to content

Add codegen-generated Supabase models to chat-compose sample#66

Merged
AndroidPoet merged 1 commit into
mainfrom
demo/codegen-generated-models
Jun 22, 2026
Merged

Add codegen-generated Supabase models to chat-compose sample#66
AndroidPoet merged 1 commit into
mainfrom
demo/codegen-generated-models

Conversation

@AndroidPoet

Copy link
Copy Markdown
Owner

Adds the supabase-codegen output to the chat-compose sample so the generated models are visible in the repo.

What

  • samples/chat-compose/.../generated/SupabaseModels.kt — generated by supabase-codegen from the local Supabase stack (supabase/migrations): ChatRooms, ChatMessages, E2eMessages.
  • .gitignore — keeps the credential guard (codegen.local.properties); generated models contain no secrets (just table structure) so they're committed.

Verified

Compiled the generated models with kotlinc + the serialization plugin and deserialized live rows from the running local instance:

ChatRooms decoded: 2  -> [general, random]
ChatMessages decoded: 1 (nullable senderId handled)
E2eMessages decoded: 0
VERIFY OK

Confirms correct nullable/non-null inference and snake_case to camelCase mapping against real data.

Generated by supabase-codegen from the local Supabase stack (migrations in
supabase/migrations) and verified by compiling + deserializing live rows.
Shows the codegen output for the chat_rooms / chat_messages / e2e_messages
tables. The credentials gitignore guard remains; generated models contain no
secrets (just table structure) so they are committed.
@AndroidPoet AndroidPoet merged commit 084a3ab into main Jun 22, 2026
6 of 8 checks passed
@AndroidPoet AndroidPoet deleted the demo/codegen-generated-models branch June 22, 2026 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant