StoreOperations.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. namespace app\models;
  3. use yii\behaviors\TimestampBehavior;
  4. /**
  5. * Class StoreMiniToken
  6. * @package app\models
  7. * @property integer $id
  8. * @property integer $saas_id
  9. * @property string $remark
  10. * @property integer $status
  11. * @property integer $is_delete
  12. * @property string $created_at
  13. * @property string $updated_at
  14. **/
  15. class StoreOperations extends \yii\db\ActiveRecord
  16. {
  17. /**
  18. * @inheritdoc
  19. */
  20. public static function tableName()
  21. {
  22. return '{{%store_operations}}';
  23. }
  24. /**
  25. * @inheritdoc
  26. */
  27. public function rules()
  28. {
  29. return [
  30. [["id", "saas_id", "is_delete", 'status'], 'integer'],
  31. [["remark", "created_at", "updated_at"], 'string'],
  32. ];
  33. }
  34. public function behaviors()
  35. {
  36. return [
  37. [
  38. 'class' => TimestampBehavior::class,
  39. ]
  40. ];
  41. }
  42. /**
  43. * @inheritdoc
  44. */
  45. public function attributeLabels()
  46. {
  47. return [
  48. 'id' => '',
  49. 'saas_id' => '联盟用户id',
  50. 'remark' => '备注',
  51. 'status' => '状态0禁用 1启用',
  52. 'is_delete' => '',
  53. 'created_at' => '',
  54. 'updated_at' => '',
  55. ];
  56. }
  57. }