You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
323 B
19 lines
323 B
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'
|
|
|
|
@Entity()
|
|
export class User {
|
|
@PrimaryGeneratedColumn()
|
|
id: number
|
|
|
|
@Column({ unique: true })
|
|
id_42: number
|
|
|
|
@Column({ unique: true })
|
|
username: string
|
|
|
|
@Column()
|
|
avatar: string
|
|
|
|
@Column({ default: 'online' })
|
|
status: string
|
|
}
|
|
|