IbOpenRecord.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. namespace backend\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "crm_ib_open_record".
  6. *
  7. * @property string $id
  8. * @property integer $ref_id
  9. * @property integer $open_id
  10. * @property double $forex
  11. * @property double $metal
  12. * @property double $hk_fifty
  13. * @property double $btc
  14. * @property double $cfd
  15. * @property double $gold
  16. * @property double $silver
  17. * @property double $wy
  18. * @property string $bank_name
  19. * @property string $bank_province
  20. * @property string $bank_city
  21. * @property string $bank_district
  22. * @property string $bank_branch
  23. * @property string $bank_card_no
  24. * @property string $collect_name
  25. * @property string $bank_swift_code
  26. * @property string $in_time
  27. */
  28. class IbOpenRecord extends \yii\db\ActiveRecord
  29. {
  30. /**
  31. * @inheritdoc
  32. */
  33. public static function tableName()
  34. {
  35. return 'crm_ib_open_record';
  36. }
  37. /**
  38. * @inheritdoc
  39. */
  40. public static function getDb()
  41. {
  42. return Yii::$app->get('dbXcrm');
  43. }
  44. /**
  45. * @inheritdoc
  46. */
  47. public function rules()
  48. {
  49. return [
  50. [['open_id', 'ref_id'], 'required'],
  51. [['open_id', 'ref_id', 'in_time'], 'integer'],
  52. [['bank_name', 'bank_branch', 'bank_card_no', 'collect_name', 'bank_swift_code'], 'string', 'max' => 32],
  53. [['bank_province', 'bank_city', 'bank_district'], 'string', 'max' => 255],
  54. ];
  55. }
  56. /**
  57. * @inheritdoc
  58. */
  59. public function attributeLabels()
  60. {
  61. return [
  62. 'id' => 'ID',
  63. 'ref_id' => 'Ref ID',
  64. 'open_id' => 'Open ID',
  65. 'bank_name' => 'Bank Name',
  66. 'bank_province' => 'Bank Province',
  67. 'bank_city' => 'Bank City',
  68. 'bank_district' => 'Bank District',
  69. 'bank_branch' => 'Bank Branch',
  70. 'bank_card_no' => 'Bank Card No',
  71. 'collect_name' => 'Collect Name',
  72. 'bank_swift_code' => 'Bank Swift Code',
  73. 'in_time' => 'In Time',
  74. ];
  75. }
  76. }