ChatsRecord.php 690 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. namespace We7\Table\Mc;
  7. class ChatsRecord extends \We7Table {
  8. protected $tableName = 'mc_chats_record';
  9. protected $primaryKey = 'id';
  10. protected $field = array(
  11. 'uniacid',
  12. 'acid',
  13. 'flag',
  14. 'openid',
  15. 'msgtype',
  16. 'content',
  17. 'createtime',
  18. );
  19. protected $default = array(
  20. 'uniacid' => '',
  21. 'acid' => '',
  22. 'flag' => 1,
  23. 'openid' => '',
  24. 'msgtype' => '',
  25. 'content' => '',
  26. 'createtime' => '',
  27. );
  28. public function searchWithUniacid($uniacid) {
  29. return $this->query->where('uniacid', $uniacid);
  30. }
  31. }