AgentFrontCentralizeGoodsCancelLog.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 "{{%agent_front_centralize_goods_cancel_log}}".
  7. *
  8. * @property integer $id
  9. * @property integer $front_admin_id
  10. * @property integer $supplier_id
  11. * @property integer $centralize_goods_id
  12. * @property integer $cloud_order_id
  13. * @property integer $md_id
  14. * @property integer $goods_num
  15. * @property integer $driver_line_order_id
  16. * @property integer $created_at
  17. * @property integer $updated_at
  18. */
  19. class AgentFrontCentralizeGoodsCancelLog extends \yii\db\ActiveRecord
  20. {
  21. /**
  22. * @inheritdoc
  23. */
  24. public static function tableName()
  25. {
  26. return '{{%agent_front_centralize_goods_cancel_log}}';
  27. }
  28. public function behaviors()
  29. {
  30. return [
  31. [
  32. 'class' => TimestampBehavior::class,
  33. 'attributes' => [
  34. ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'],
  35. ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at'
  36. ]
  37. ]
  38. ];
  39. }
  40. /**
  41. * @inheritdoc
  42. */
  43. public function rules()
  44. {
  45. return [
  46. [['id', 'front_admin_id', 'supplier_id', 'centralize_goods_id', 'cloud_order_id', 'md_id', 'goods_num',
  47. 'created_at', 'updated_at', 'driver_line_order_id'], 'integer']
  48. ];
  49. }
  50. public function attributeLabels()
  51. {
  52. return [
  53. 'id' => '',
  54. 'front_admin_id' => '仓库ID',
  55. 'supplier_id' => '',
  56. 'centralize_goods_id' => '集采商品表ID',
  57. 'cloud_order_id' => '云仓订单ID',
  58. 'md_id' => '门店ID',
  59. 'goods_num' => '商品数量',
  60. 'driver_line_order_id' => '司机配送订单ID',
  61. 'created_at' => '',
  62. 'updated_at' => ''
  63. ];
  64. }
  65. }