channel.entity.ts 984 B

12345678910111213141516171819202122232425262728293031323334
  1. import { modelOptions, prop } from '@typegoose/typegoose';
  2. import { BaseModel } from 'free-midway-component';
  3. @modelOptions({
  4. schemaOptions: { collection: 'channel' },
  5. })
  6. export class Channel extends BaseModel {
  7. @prop({ required: false, index: true, zh: '房间号', remark: '2001开始' })
  8. room_id: string;
  9. @prop({ required: false, index: true, zh: '用户类型', default: '7' })
  10. type: string;
  11. @prop({ required: false, index: false, zh: '密码' })
  12. password: string;
  13. @prop({ required: false, index: true, zh: '标题' })
  14. title: string;
  15. @prop({ required: false, index: true, zh: '来源' })
  16. origin: string;
  17. @prop({
  18. required: false,
  19. index: true,
  20. zh: '类别',
  21. remark: '字典:channel_type',
  22. })
  23. channel_type: string;
  24. @prop({ required: false, index: false, zh: '简介' })
  25. brief: string;
  26. @prop({
  27. required: false,
  28. index: true,
  29. zh: '状态',
  30. remark: '字典:channel_status',
  31. default: '0',
  32. })
  33. status: string;
  34. }