Files
Toju/electron/entities/UserEntity.ts
Myx bd21568726
All checks were successful
Queue Release Build / prepare (push) Successful in 28s
Deploy Web Apps / deploy (push) Successful in 5m2s
Queue Release Build / build-windows (push) Successful in 16m44s
Queue Release Build / build-linux (push) Successful in 27m12s
Queue Release Build / finalize (push) Successful in 22s
feat: Add user metadata changing display name and description with sync
2026-04-17 22:55:50 +02:00

66 lines
1.3 KiB
TypeScript

import {
Entity,
PrimaryColumn,
Column
} from 'typeorm';
@Entity('users')
export class UserEntity {
@PrimaryColumn('text')
id!: string;
@Column('text', { nullable: true })
oderId!: string | null;
@Column('text', { nullable: true })
username!: string | null;
@Column('text', { nullable: true })
displayName!: string | null;
@Column('text', { nullable: true })
description!: string | null;
@Column('integer', { nullable: true })
profileUpdatedAt!: number | null;
@Column('text', { nullable: true })
avatarUrl!: string | null;
@Column('text', { nullable: true })
avatarHash!: string | null;
@Column('text', { nullable: true })
avatarMime!: string | null;
@Column('integer', { nullable: true })
avatarUpdatedAt!: number | null;
@Column('text', { nullable: true })
status!: string | null;
@Column('text', { nullable: true })
role!: string | null;
@Column('integer', { nullable: true })
joinedAt!: number | null;
@Column('text', { nullable: true })
peerId!: string | null;
@Column('integer', { default: 0 })
isOnline!: number;
@Column('integer', { default: 0 })
isAdmin!: number;
@Column('integer', { default: 0 })
isRoomOwner!: number;
@Column('text', { nullable: true })
voiceState!: string | null;
@Column('text', { nullable: true })
screenShareState!: string | null;
}