Last active 1729144718

TypeORM-readme-17.ts Raw
1import { Entity, Column, PrimaryColumn } from "typeorm"
2
3@Entity()
4export class Photo {
5 @PrimaryColumn()
6 id: number
7
8 @Column()
9 name: string
10
11 @Column()
12 description: string
13
14 @Column()
15 filename: string
16
17 @Column()
18 views: number
19
20 @Column()
21 isPublished: boolean
22}