FrontExpressOrder.php 1.7 KB

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