41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
|
|
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
|
||
|
|
|
||
|
|
@Entity('wechat_reply')
|
||
|
|
export class WechatReply {
|
||
|
|
@PrimaryGeneratedColumn()
|
||
|
|
id: number;
|
||
|
|
|
||
|
|
@Column({ name: 'name', type: 'varchar', length: 64, default: '' })
|
||
|
|
name: string;
|
||
|
|
|
||
|
|
@Column({ name: 'site_id', type: 'int', default: 0 })
|
||
|
|
site_id: number;
|
||
|
|
|
||
|
|
@Column({ name: 'keyword', type: 'varchar', length: 64, default: '' })
|
||
|
|
keyword: string;
|
||
|
|
|
||
|
|
@Column({ name: 'reply_type', type: 'varchar', length: 30, default: '' })
|
||
|
|
reply_type: string;
|
||
|
|
|
||
|
|
@Column({ name: 'matching_type', type: 'varchar', length: 30, default: '1' })
|
||
|
|
matching_type: string;
|
||
|
|
|
||
|
|
@Column({ name: 'content', type: 'text' })
|
||
|
|
content: string;
|
||
|
|
|
||
|
|
@Column({ name: 'sort', type: 'int', default: 50 })
|
||
|
|
sort: number;
|
||
|
|
|
||
|
|
@Column({ name: 'create_time', type: 'int', default: 0 })
|
||
|
|
create_time: number;
|
||
|
|
|
||
|
|
@Column({ name: 'update_time', type: 'int', default: 0 })
|
||
|
|
update_time: number;
|
||
|
|
|
||
|
|
@Column({ name: 'delete_time', type: 'int', default: 0 })
|
||
|
|
delete_time: number;
|
||
|
|
|
||
|
|
@Column({ name: 'reply_method', type: 'varchar', length: 50, default: '' })
|
||
|
|
reply_method: string;
|
||
|
|
}
|