SortMessage.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%sort_message}}".
  6. *
  7. * @property string $id
  8. * @property string $tel
  9. * @property string $code
  10. * @property integer $created_at
  11. * @property integer $status
  12. * @property integer $updated_at
  13. * @property integer $count
  14. */
  15. class SortMessage extends \yii\db\ActiveRecord
  16. {
  17. /**
  18. * @inheritdoc
  19. */
  20. public static function tableName()
  21. {
  22. return '{{%sort_message}}';
  23. }
  24. /**
  25. * @inheritdoc
  26. */
  27. public function rules()
  28. {
  29. return [
  30. [['tel', 'code', 'created_at'], 'required'],
  31. [['created_at'], 'integer'],
  32. [['tel'], 'string', 'max' => 32],
  33. [['code'], 'string', 'max' => 12],
  34. // [['tel', 'code', 'created_at', 'status', 'updated_at'], 'required'],
  35. // [['created_at', 'status', 'updated_at', 'count'], 'integer'],
  36. // [['tel'], 'string', 'max' => 32],
  37. // [['code'], 'string', 'max' => 12],
  38. ];
  39. }
  40. /**
  41. * @inheritdoc
  42. */
  43. public function attributeLabels()
  44. {
  45. return [
  46. 'id' => 'ID',
  47. 'tel' => 'Tel',
  48. 'code' => 'Code',
  49. 'created_at' => 'Created At',
  50. 'status' => 'Status',
  51. 'updated_at' => 'Updated At',
  52. 'count' => 'Count',
  53. ];
  54. }
  55. }