@randombenj/db
Version:
Display, search and copy LXD-images using a web interface.
21 lines (16 loc) • 525 B
text/typescript
import { BaseEntity, Column, Entity, PrimaryGeneratedColumn, OneToOne, JoinColumn, ManyToOne } from 'typeorm';
import { Image, Remote } from '.';
()
export class ImageAvailability extends BaseEntity {
()
id: number;
({
type: 'boolean',
default: true
})
available: boolean;
(type => Image, image => image.imageAvailabilities)
image: Image;
(type => Remote, remote => remote.imageAvailabilities)
remote: Remote;
}