Enroll.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace frontend\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "bit_enroll".
  6. *
  7. * @property integer $id
  8. * @property string $nickname
  9. * @property string $mobile
  10. * @property string $email
  11. * @property string $weixin
  12. * @property integer $in_time
  13. * @property string $ip
  14. * @property string $domain
  15. * @property string $remark1
  16. * @property string $remark2
  17. */
  18. class Enroll extends \yii\db\ActiveRecord
  19. {
  20. /**
  21. * @inheritdoc
  22. */
  23. public static function tableName()
  24. {
  25. return 'bit_enroll';
  26. }
  27. /**
  28. * @inheritdoc
  29. */
  30. public function rules()
  31. {
  32. return [
  33. [['in_time'], 'integer'],
  34. [['nickname', 'mobile', 'email', 'weixin', 'domain', 'remark1', 'remark2'], 'string', 'max' => 255],
  35. [['ip'], 'string', 'max' => 50],
  36. ];
  37. }
  38. /**
  39. * @inheritdoc
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'id' => 'ID',
  45. 'nickname' => 'Nickname',
  46. 'mobile' => 'Mobile',
  47. 'email' => 'Email',
  48. 'weixin' => 'Weixin',
  49. 'in_time' => 'In Time',
  50. 'ip' => 'Ip',
  51. 'domain' => 'Domain',
  52. 'remark1' => 'Remark1',
  53. 'remark2' => 'Remark2',
  54. ];
  55. }
  56. }