import { ApiProperty } from '@nestjs/swagger';

export class AccessDTO {
  @ApiProperty({})
  dir: null | string;

  @ApiProperty({})
  quota: number;

  @ApiProperty({})
  maxSize: number;

  @ApiProperty({})
  rights: 'r' | 'rw' | 'w';
}

export class UserAccessDTO {
  @ApiProperty({})
  user: string;

  @ApiProperty({})
  store: string;

  @ApiProperty({ type: () => AccessDTO, isArray: true })
  access: AccessDTO[];
}
