apps/api/src/entities/profile.entity.ts
Properties |
| birthday |
Type : Date
|
Decorators :
@Column('date')
|
|
Defined in apps/api/src/entities/profile.entity.ts:20
|
| id |
Type : number
|
Decorators :
@PrimaryGeneratedColumn('increment')
|
|
Defined in apps/api/src/entities/profile.entity.ts:14
|
| occupation |
Type : string
|
Decorators :
@Column()
|
|
Defined in apps/api/src/entities/profile.entity.ts:26
|
| phone |
Type : string
|
Decorators :
@Column()
|
|
Defined in apps/api/src/entities/profile.entity.ts:17
|
| user |
Type : UserEntity
|
Decorators :
@OneToOne(type => UserEntity)
|
|
Defined in apps/api/src/entities/profile.entity.ts:30
|
| website |
Type : string
|
Decorators :
@Column()
|
|
Defined in apps/api/src/entities/profile.entity.ts:23
|
import {
Entity,
PrimaryGeneratedColumn,
Column,
OneToOne,
JoinColumn
} from 'typeorm'
import { UserEntity } from './user.entity'
@Entity('profiles')
export class ProfileEntity {
@PrimaryGeneratedColumn('increment')
id: number
@Column()
phone: string
@Column('date')
birthday: Date
@Column()
website: string
@Column()
occupation: string
@OneToOne(type => UserEntity)
@JoinColumn()
user: UserEntity
}