import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

export type MaterialRarity = 'common' | 'rare' | 'epic';

@Entity('materials')
export class Material {
  @PrimaryGeneratedColumn('uuid')
  id: string;

  @Column({ length: 100 })
  name: string;

  @Column({ type: 'text', nullable: true })
  description: string | null;

  @Column({ type: 'varchar', length: 20 })
  rarity: MaterialRarity;
}
