task_id: task_create_model_song_genre entity_id: model_song_genre generated_at: '2025-12-18T15:16:50.224015' workflow_version: v001 target: type: model definition: id: model_song_genre name: SongGenre table_name: song_genres description: Junction table for song-genre many-to-many fields: - name: song_id type: uuid constraints: - not_null - foreign_key references: songs.id - name: genre_id type: uuid constraints: - not_null - foreign_key references: genres.id relations: - type: belongs_to to: model_song foreign_key: song_id - type: belongs_to to: model_genre foreign_key: genre_id indexes: - fields: - song_id - genre_id unique: true timestamps: false related: models: [] apis: [] components: [] dependencies: entity_ids: [] definitions: [] files: to_create: - prisma/schema.prisma - app/models/songgenre.ts reference: [] acceptance: - criterion: Model defined in Prisma schema verification: Check prisma/schema.prisma - criterion: TypeScript types exported verification: Import type in test file - criterion: Relations properly configured verification: Check Prisma relations