25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

61 satır
1.6 KiB

  1. <?php
  2. namespace backend\modules\api\models;
  3. use yii\db\ActiveRecord;
  4. /**
  5. * This is the model class for table "order_pay_main".
  6. *
  7. * @property integer $ID
  8. * @property integer $CANCEL_FLAG
  9. * @property integer $CREATE_USER_ID
  10. * @property string $CREATE_TIME
  11. * @property integer $CREATE_TERMINAL_ID
  12. * @property integer $UPDATE_USER_ID
  13. * @property string $UPDATE_TIME
  14. * @property string $PAY_TOTAL
  15. * @property integer $ORDER_ID
  16. */
  17. class OrderPayMain extends ActiveRecord
  18. {
  19. /**
  20. * @inheritdoc
  21. */
  22. public static function tableName()
  23. {
  24. return 'order_pay_main';
  25. }
  26. /**
  27. * @inheritdoc
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['ID', 'ORDER_ID'], 'required'],
  33. [['ID', 'CANCEL_FLAG', 'CREATE_USER_ID', 'CREATE_TERMINAL_ID', 'UPDATE_USER_ID', 'ORDER_ID'], 'integer'],
  34. [['PAY_TOTAL'], 'number'],
  35. [['CREATE_TIME', 'UPDATE_TIME'], 'string', 'max' => 20],
  36. ];
  37. }
  38. /**
  39. * @inheritdoc
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'ID' => 'ID',
  45. 'CANCEL_FLAG' => '记录有效性标记,CANCEL_FLAG=0记录有效;CANCEL_FLAG=1,记录已删除',
  46. 'CREATE_USER_ID' => '记录创建用户ID',
  47. 'CREATE_TIME' => '记录创建时间',
  48. 'CREATE_TERMINAL_ID' => '订单支付终端ID,保留字段',
  49. 'UPDATE_USER_ID' => '记录最后更新用户ID',
  50. 'UPDATE_TIME' => '记录最后更新时间',
  51. 'PAY_TOTAL' => '支付总金额',
  52. 'ORDER_ID' => '订单ID',
  53. ];
  54. }
  55. }