@randombenj/db
Version:
Display, search and copy LXD-images using a web interface.
18 lines (13 loc) • 462 B
text/typescript
import { BaseEntity, Column, Entity, PrimaryGeneratedColumn, OneToOne, JoinColumn, ManyToOne, OneToMany } from 'typeorm';
import { Image } from '.';
()
export class Alias extends BaseEntity {
()
id: number;
({ type: 'varchar', default: true })
name: string;
({ type: 'varchar', default: true })
description: string;
(type => Image, image => image.aliases)
image: Image;
}