mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
17 lines
394 B
TypeScript
17 lines
394 B
TypeScript
import { Entity, Column, PrimaryGeneratedColumn, OneToOne } from "typeorm";
|
|
import { SpotifyConnection } from "../sources/spotify/spotify-connection.entity";
|
|
|
|
@Entity()
|
|
export class User {
|
|
@PrimaryGeneratedColumn("uuid")
|
|
id: string;
|
|
|
|
@Column()
|
|
displayName: string;
|
|
|
|
@Column({ nullable: true })
|
|
photo?: string;
|
|
|
|
@Column((type) => SpotifyConnection)
|
|
spotify: SpotifyConnection;
|
|
}
|