20 行
688 B
TypeScript
20 行
688 B
TypeScript
|
|
import { Model } from '@nozbe/watermelondb'
|
||
|
|
import { field } from '@nozbe/watermelondb/decorators'
|
||
|
|
|
||
|
|
export class MessageModel extends Model {
|
||
|
|
static table = 'im_messages'
|
||
|
|
|
||
|
|
@field('server_id') serverId!: string
|
||
|
|
@field('app_id') appId!: string
|
||
|
|
@field('conversation_id') conversationId!: string
|
||
|
|
@field('from_user_id') fromUserId!: string
|
||
|
|
@field('to_id') toId!: string
|
||
|
|
@field('chat_type') chatType!: string
|
||
|
|
@field('msg_type') msgType!: string
|
||
|
|
@field('content') content!: string
|
||
|
|
@field('status') status!: string
|
||
|
|
@field('mentioned_user_ids') mentionedUserIds!: string | null
|
||
|
|
@field('server_created_at') serverCreatedAt!: number
|
||
|
|
@field('synced_at') syncedAt!: number
|
||
|
|
}
|