ProductBatchProcessLogRead.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\plugins\product_traceability\models;
  8. use yii\behaviors\TimestampBehavior;
  9. use yii\db\ActiveRecord;
  10. /**
  11. *
  12. * Class ProductBatchProcessLog
  13. * @package app\plugins\product_traceability\models
  14. * @property integer $id
  15. * @property integer $store_id
  16. * @property integer $process_log_id
  17. * @property integer $read_user_id
  18. * @property integer $is_delete
  19. * @property string $created_at
  20. * @property string $updated_at
  21. */
  22. class ProductBatchProcessLogRead extends ActiveRecord
  23. {
  24. public function behaviors()
  25. {
  26. return [
  27. [
  28. // 自动更新创建和更新时间
  29. 'class' => TimestampBehavior::class,
  30. 'value' => time()
  31. ]
  32. ];
  33. }
  34. public static function tableName()
  35. {
  36. return '{{%product_batch_process_log_read}}';
  37. }
  38. public function rules()
  39. {
  40. return [
  41. [['store_id', 'process_log_id', 'read_user_id' ], 'required'],
  42. [['store_id', 'created_at', 'updated_at', 'is_delete', ], 'integer'],
  43. ];
  44. }
  45. public function attributeLabels()
  46. {
  47. return [
  48. 'id' => 'ID',
  49. 'store_id' => '商城id',
  50. 'process_log_id' => '流程记录id',
  51. 'read_user_id' => '阅读用户id',
  52. 'created_at' => '创建时间',
  53. 'updated_at' => '更新时间',
  54. 'is_delete' => 'Is Delete',
  55. ];
  56. }
  57. }