add (empty) photos routes

This commit is contained in:
2020-10-12 20:33:18 +03:00
committed by Stepan Usatiuk
parent a8b5117979
commit 755e849ded
3 changed files with 22 additions and 0 deletions

17
src/entity/Photo.ts Normal file
View File

@@ -0,0 +1,17 @@
import {
BaseEntity,
Column,
Entity,
Index,
PrimaryGeneratedColumn,
} from "typeorm";
@Entity()
export class Photo extends BaseEntity {
@PrimaryGeneratedColumn()
public id: number;
@Column({ length: 190 })
@Index()
public hash: string;
}