feat: Add emoji and alot of other fixes
This commit is contained in:
35
electron/entities/CustomEmojiEntity.ts
Normal file
35
electron/entities/CustomEmojiEntity.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import {
|
||||
Column,
|
||||
Entity,
|
||||
PrimaryColumn
|
||||
} from 'typeorm';
|
||||
|
||||
@Entity('custom_emojis')
|
||||
export class CustomEmojiEntity {
|
||||
@PrimaryColumn('text')
|
||||
id!: string;
|
||||
|
||||
@Column('text')
|
||||
name!: string;
|
||||
|
||||
@Column('text')
|
||||
creatorUserId!: string;
|
||||
|
||||
@Column('text')
|
||||
dataUrl!: string;
|
||||
|
||||
@Column('text')
|
||||
hash!: string;
|
||||
|
||||
@Column('text')
|
||||
mime!: string;
|
||||
|
||||
@Column('integer')
|
||||
size!: number;
|
||||
|
||||
@Column('integer')
|
||||
createdAt!: number;
|
||||
|
||||
@Column('integer')
|
||||
updatedAt!: number;
|
||||
}
|
||||
Reference in New Issue
Block a user