Refacor electron app and add migrations

This commit is contained in:
2026-03-04 01:38:43 +01:00
parent 4e95ae77c5
commit be91b6dfe8
70 changed files with 1824 additions and 923 deletions

View File

@@ -0,0 +1,50 @@
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 })
avatarUrl!: string | 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;
}