AgentFrontErpCloudGoods.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. use yii\behaviors\TimestampBehavior;
  10. use yii\db\ActiveRecord;
  11. /**
  12. * This is the model class for table "{{%agent_front_erp_cloud_goods}}".
  13. *
  14. * @property integer $id
  15. * @property integer $cloud_goods_id
  16. * @property integer $cloud_supplier_id
  17. * @property string $goods_name
  18. * @property string $goods_no
  19. * @property string $cover_pic
  20. * @property string $attr
  21. * @property integer $status
  22. * @property integer $is_delete
  23. * @property integer $created_at
  24. * @property integer $updated_at
  25. */
  26. class AgentFrontErpCloudGoods extends \yii\db\ActiveRecord
  27. {
  28. /**
  29. * @inheritdoc
  30. */
  31. public static function tableName()
  32. {
  33. return '{{%agent_front_erp_cloud_goods}}';
  34. }
  35. public function behaviors()
  36. {
  37. return [
  38. [
  39. 'class' => TimestampBehavior::class,
  40. ]
  41. ];
  42. }
  43. public function rules()
  44. {
  45. return [
  46. [['goods_name', 'cover_pic', 'attr', 'goods_no'], 'string'],
  47. [['id', 'cloud_goods_id', 'cloud_supplier_id', 'status', 'is_delete', 'created_at', 'updated_at'], 'integer']
  48. ];
  49. }
  50. }