AppointmentVisit.php 1019 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%appointment_visit}}".
  6. *
  7. * @property integer $id
  8. * @property integer $aid
  9. * @property string $content
  10. * @property integer $admin_id
  11. * @property string $operation
  12. * @property integer $c_time
  13. */
  14. class AppointmentVisit extends \yii\db\ActiveRecord
  15. {
  16. /**
  17. * @inheritdoc
  18. */
  19. public static function tableName()
  20. {
  21. return '{{%appointment_visit}}';
  22. }
  23. /**
  24. * @inheritdoc
  25. */
  26. public function rules()
  27. {
  28. return [
  29. [['aid', 'content','admin_id'], 'required'],
  30. [['aid', 'admin_id', 'c_time'], 'integer'],
  31. ];
  32. }
  33. /**
  34. * @inheritdoc
  35. */
  36. public function attributeLabels()
  37. {
  38. return [
  39. 'id' => 'ID',
  40. 'aid' => '预约id',
  41. 'content' => '内容',
  42. 'admin_id' => '操作id',
  43. 'operation' => '操作姓名',
  44. 'c_time' => '创建时间',
  45. ];
  46. }
  47. }