You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
458 B
29 lines
458 B
import { Table, Column, Model } from 'sequelize-typescript';
|
|
|
|
@Table({tableName: 'sphinx_chat_members', underscored: true, indexes:[
|
|
{unique:true, fields:['chat_id','contact_id']}
|
|
]})
|
|
export default class ChatMember extends Model<ChatMember> {
|
|
|
|
@Column
|
|
chatId: number
|
|
|
|
@Column
|
|
contactId: number
|
|
|
|
@Column
|
|
role: number
|
|
|
|
@Column
|
|
totalSpent: number
|
|
|
|
@Column
|
|
totalMessages: number
|
|
|
|
@Column
|
|
lastActive: Date
|
|
|
|
@Column
|
|
status: number
|
|
|
|
}
|