OrderPaymentModel.php 499 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace app\common\model;
  3. class OrderPaymentModel extends BaseModel
  4. {
  5. protected $table = 'erp_order_payment';
  6. public function paymentChannel() {
  7. return $this->hasOne(PaymentChannelModel::class,'id', 'channel_id');
  8. }
  9. public function cardConfig() {
  10. return $this->hasOne(CreditCardConfigModel::class,'id', 'channel_credit_card_config_id');
  11. }
  12. protected function genSchema(array $schema)
  13. {
  14. // TODO: Implement genSchema() method.
  15. }
  16. }