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.
33 lines
522 B
33 lines
522 B
import { Table, Column, Model, DataType } from 'sequelize-typescript';
|
|
|
|
/*
|
|
BOT CREATOR - store the installers of your bot
|
|
*/
|
|
|
|
@Table({tableName: 'sphinx_bot_members', underscored: true})
|
|
export default class BotMember extends Model<BotMember> {
|
|
|
|
@Column({
|
|
type: DataType.BIGINT,
|
|
primaryKey: true,
|
|
unique: true,
|
|
autoIncrement: true
|
|
})
|
|
id: number
|
|
|
|
@Column
|
|
memberPubkey: string
|
|
|
|
@Column
|
|
tribeUuid: string
|
|
|
|
@Column
|
|
msgCount: number
|
|
|
|
@Column
|
|
createdAt: Date
|
|
|
|
@Column
|
|
updatedAt: Date
|
|
|
|
}
|