mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-29 07:47:47 +01:00
add (empty) photos routes
This commit is contained in:
17
src/entity/Photo.ts
Normal file
17
src/entity/Photo.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user