19 lines
355 B
TypeScript
19 lines
355 B
TypeScript
import { EImage } from 'picsur-shared/dist/entities/image.entity';
|
|
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
|
|
@Entity()
|
|
export class EImageBackend implements EImage {
|
|
@PrimaryGeneratedColumn('uuid')
|
|
id: string;
|
|
|
|
@Column({
|
|
nullable: false,
|
|
})
|
|
user_id: string;
|
|
|
|
@Column({
|
|
nullable: false,
|
|
})
|
|
created: Date;
|
|
}
|