NoticeRead.php 989 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace backend\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "xcrm.crm_notice_read".
  6. *
  7. * @property string $id
  8. * @property string $member_id
  9. * @property string $notice_id
  10. */
  11. class NoticeRead extends \yii\db\ActiveRecord
  12. {
  13. /**
  14. * @inheritdoc
  15. */
  16. public static function tableName()
  17. {
  18. return 'crm_notice_read';
  19. }
  20. /**
  21. * @return \yii\db\Connection the database connection used by this AR class.
  22. */
  23. public static function getDb()
  24. {
  25. return Yii::$app->get('dbXcrm');
  26. }
  27. /**
  28. * @inheritdoc
  29. */
  30. public function rules()
  31. {
  32. return [
  33. [['member_id', 'notice_id'], 'required'],
  34. [['member_id', 'notice_id'], 'integer'],
  35. ];
  36. }
  37. /**
  38. * @inheritdoc
  39. */
  40. public function attributeLabels()
  41. {
  42. return [
  43. 'id' => 'ID',
  44. 'member_id' => 'Member ID',
  45. 'notice_id' => 'Notice ID',
  46. ];
  47. }
  48. }