CashierUserExt.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. namespace app\models;
  3. use yii\behaviors\TimestampBehavior;
  4. use yii\db\ActiveRecord;
  5. /**
  6. * This is the model class for table "{{%cashier_user_ext}}".
  7. *
  8. * @property integer $id
  9. * @property integer $user_id
  10. * @property integer $md_id
  11. * @property integer $is_delete
  12. * @property integer $created_at
  13. * @property integer $updated_at
  14. */
  15. class CashierUserExt extends \yii\db\ActiveRecord
  16. {
  17. /**
  18. * @inheritdoc
  19. */
  20. public static function tableName()
  21. {
  22. return '{{%cashier_user_ext}}';
  23. }
  24. public function behaviors()
  25. {
  26. return [
  27. [
  28. 'class' => TimestampBehavior::class
  29. ]
  30. ];
  31. }
  32. /**
  33. * @inheritdoc
  34. */
  35. public function rules()
  36. {
  37. return [
  38. [['id', 'user_id', 'md_id', 'is_delete', 'created_at', 'updated_at'], 'integer'],
  39. [['created_at', 'updated_at'], 'safe']
  40. ];
  41. }
  42. public function attributeLabels()
  43. {
  44. return [
  45. 'id' => '',
  46. 'user_id' => '用户ID',
  47. 'md_id' => '门店ID',
  48. 'is_delete' => '是否删除',
  49. 'created_at' => '',
  50. 'updated_at' => '',
  51. ]; // TODO: Change the autogenerated stub
  52. }
  53. }