Customer.php 977 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "customer".
  6. *
  7. * @property int $id
  8. * @property string $name
  9. * @property string $sex
  10. * @property string $beizhu
  11. * @property string $tel
  12. * @property string $xiaofei
  13. * @property string $species
  14. */
  15. class Customer extends \yii\db\ActiveRecord
  16. {
  17. /**
  18. * @inheritdoc
  19. */
  20. public static function tableName()
  21. {
  22. return 'customer';
  23. }
  24. /**
  25. * @inheritdoc
  26. */
  27. public function rules()
  28. {
  29. return [
  30. [['name', 'sex', 'beizhu', 'tel', 'xiaofei', 'species'], 'string', 'max' => 100],
  31. ];
  32. }
  33. /**
  34. * @inheritdoc
  35. */
  36. public function attributeLabels()
  37. {
  38. return [
  39. 'id' => 'ID',
  40. 'name' => 'Name',
  41. 'sex' => 'Sex',
  42. 'beizhu' => 'Beizhu',
  43. 'tel' => 'Tel',
  44. 'xiaofei' => 'Xiaofei',
  45. 'species' => 'Species',
  46. ];
  47. }
  48. }