TypeORM-readme-15.ts
· 186 B · TypeScript
Raw
import { Entity } from "typeorm"
@Entity()
export class Photo {
id: number
name: string
description: string
filename: string
views: number
isPublished: boolean
}
1 | import { Entity } from "typeorm" |
2 | |
3 | @Entity() |
4 | export class Photo { |
5 | id: number |
6 | name: string |
7 | description: string |
8 | filename: string |
9 | views: number |
10 | isPublished: boolean |
11 | } |