mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
538 B
TypeScript
27 lines
538 B
TypeScript
import { db } from 'tailchat-server-sdk';
|
|
const { getModelForClass, prop, modelOptions, TimeStamps } = db;
|
|
|
|
@modelOptions({
|
|
options: {
|
|
customName: 'p_wxpusher_user',
|
|
},
|
|
})
|
|
export class WXPusherUser extends TimeStamps implements db.Base {
|
|
_id: db.Types.ObjectId;
|
|
id: string;
|
|
|
|
@prop()
|
|
userId: string;
|
|
|
|
@prop()
|
|
wxpusherUserId: string;
|
|
}
|
|
|
|
export type WXPusherUserDocument = db.DocumentType<WXPusherUser>;
|
|
|
|
const model = getModelForClass(WXPusherUser);
|
|
|
|
export type WXPusherUserModel = typeof model;
|
|
|
|
export default model;
|