task_id: task_create_model_label entity_id: model_label generated_at: '2025-12-18T15:16:50.219701' workflow_version: v001 target: type: model definition: id: model_label name: Label table_name: labels description: Organization profile for labels fields: - name: id type: uuid constraints: - primary_key - name: user_id type: uuid constraints: - not_null - foreign_key references: users.id - name: label_name type: string constraints: - not_null - name: description type: text constraints: - nullable - name: logo_url type: string constraints: - nullable - name: website type: string constraints: - nullable - name: created_at type: timestamp constraints: - not_null - name: updated_at type: timestamp constraints: - not_null relations: - type: belongs_to to: model_user foreign_key: user_id - type: has_many to: model_artist foreign_key: label_id indexes: - fields: - user_id unique: true timestamps: true related: models: [] apis: [] components: [] dependencies: entity_ids: [] definitions: [] files: to_create: - prisma/schema.prisma - app/models/label.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