import { Column, Entity, PrimaryColumn } from 'typeorm';
import { ApiProperty } from '@nestjs/swagger';

@Entity('contents', { schema: 'public' })
export class ContentEntity {
  @PrimaryColumn('varchar', {
    name: 'store',
  })
  @ApiProperty({})
  store: string;

  @PrimaryColumn({
    name: 'id',
    type: 'uuid',
  })
  id: string;

  @Column('varchar', {
    name: 'hash',
  })
  @ApiProperty({})
  hash: string;

  @Column('bigint', {
    name: 'size',
  })
  @ApiProperty({})
  size: string;
}
