Delivery.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. /**
  11. * This is the model class for table "{{%delivery}}".
  12. *
  13. * @property integer $id
  14. * @property integer $store_id
  15. * @property integer $express_id
  16. * @property string $customer_name
  17. * @property string $customer_pwd
  18. * @property string $month_code
  19. * @property string $send_site
  20. * @property string $send_name
  21. * @property integer $is_delete
  22. * @property integer $created_at
  23. * @property integer $updated_at
  24. * @property string $template_size
  25. * @property integer $supplier_id
  26. * @property integer $type
  27. */
  28. class Delivery extends \yii\db\ActiveRecord
  29. {
  30. /**
  31. * @inheritdoc
  32. */
  33. public static function tableName()
  34. {
  35. return '{{%delivery}}';
  36. }
  37. public function behaviors()
  38. {
  39. return [
  40. [
  41. // 自动更新创建和更新时间
  42. 'class' => TimestampBehavior::class,
  43. 'value' => time()
  44. ]
  45. ];
  46. }
  47. /**
  48. * @inheritdoc
  49. */
  50. public function rules()
  51. {
  52. return [
  53. [['store_id', 'express_id', 'is_delete', 'created_at', 'updated_at', 'supplier_id', 'type'], 'integer'],
  54. [['customer_name', 'customer_pwd', 'month_code', 'send_site', 'send_name', 'template_size'], 'string', 'max' => 255],
  55. ];
  56. }
  57. /**
  58. * @inheritdoc
  59. */
  60. public function attributeLabels()
  61. {
  62. return [
  63. 'id' => 'ID',
  64. 'store_id' => 'Store ID',
  65. 'express_id' => '快递公司id',
  66. 'customer_name' => '电子面单客户账号',
  67. 'customer_pwd' => '电子面单密码',
  68. 'month_code' => '月结编码',
  69. 'send_site' => '网点编码',
  70. 'send_name' => '网点名称',
  71. 'is_delete' => 'Is Delete',
  72. 'template_size' => '快递鸟电子面单模板规格',
  73. 'updated_at' => '更新时间',
  74. 'created_at' => '创建时间',
  75. 'supplier_id' => '供货商id',
  76. 'type' => '类型'
  77. ];
  78. }
  79. }