FrontDeliveryOrder.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 "{{%activity_new_user_goods}}".
  7. *
  8. * @property integer $id
  9. * @property integer $front_agent_admin_id
  10. * @property integer $cloud_order_id
  11. * @property integer $delivery_info_id
  12. * @property integer $order_id
  13. * @property integer $store_id
  14. * @property integer $cloud_supplier_id
  15. * @property integer $created_at
  16. * @property integer $updated_at
  17. */
  18. class FrontDeliveryOrder extends \yii\db\ActiveRecord
  19. {
  20. /**
  21. * @inheritdoc
  22. */
  23. public static function tableName()
  24. {
  25. return '{{%front_delivery_order}}';
  26. }
  27. public function behaviors()
  28. {
  29. return [
  30. [
  31. 'class' => TimestampBehavior::class,
  32. 'attributes' => [
  33. ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
  34. ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']
  35. ]
  36. ]
  37. ];
  38. }
  39. /**
  40. * @inheritdoc
  41. */
  42. public function rules()
  43. {
  44. return [
  45. [['id', 'front_agent_admin_id', 'cloud_order_id', 'delivery_info_id', 'order_id', 'store_id', 'cloud_supplier_id', 'created_at', 'updated_at'], 'integer']
  46. ];
  47. }
  48. /**
  49. * @inheritdoc
  50. */
  51. public function attributeLabels()
  52. {
  53. return [
  54. 'id' => '主键ID',
  55. 'front_agent_admin_id' => '仓库管理ID',
  56. 'cloud_order_id' => '云仓订单ID',
  57. 'delivery_info_id' => '平台同城配送订单ID',
  58. 'order_id' => '商城订单ID',
  59. 'store_id' => '商城ID',
  60. 'cloud_supplier_id' => '云仓供货商ID',
  61. 'created_at' => 'Created At',
  62. 'updated_at' => 'Updated At'
  63. ];
  64. }
  65. }