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.

60 lines
858 B

5 years ago
import { Table, Column, Model, DataType } from 'sequelize-typescript';
@Table({tableName: 'sphinx_contacts', underscored: true})
export default class Contact extends Model<Contact> {
@Column({
type: DataType.BIGINT,
primaryKey: true,
unique: true,
autoIncrement: true
})
id: number
@Column
publicKey: string
@Column
nodeAlias: string
@Column
alias: string
@Column
photoUrl: string
@Column
isOwner: boolean
@Column({
type: DataType.BOOLEAN,
defaultValue: false,
allowNull: false
})
deleted: boolean
@Column
authToken: string
@Column(DataType.BIGINT)
remoteId: number
@Column(DataType.BIGINT)
status: number
@Column(DataType.TEXT)
contactKey: string
@Column
deviceId: string
@Column
createdAt: Date
@Column
updatedAt: Date
@Column
fromGroup: boolean
5 years ago
}