Banks.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. namespace app\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%banks}}".
  6. *
  7. * @property int $id
  8. * @property string|null $name
  9. * @property string|null $mfo
  10. * @property string|null $edrpou
  11. * @property string|null $name_e
  12. * @property int|null $type
  13. * @property string|null $address
  14. * @property int|null $created_at
  15. * @property int|null $updated_at
  16. * @property int|null $deleted_at
  17. */
  18. class Banks extends \yii\db\ActiveRecord
  19. {
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public static function tableName()
  24. {
  25. return '{{%banks}}';
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function rules()
  31. {
  32. return [
  33. [['type', 'created_at', 'updated_at', 'deleted_at'], 'integer'],
  34. [['name', 'mfo', 'edrpou', 'name_e', 'address'], 'string', 'max' => 191],
  35. ];
  36. }
  37. /**
  38. * {@inheritdoc}
  39. */
  40. public function attributeLabels()
  41. {
  42. return [
  43. 'id' => 'ID',
  44. 'name' => 'Name',
  45. 'mfo' => 'Mfo',
  46. 'edrpou' => 'Edrpou',
  47. 'name_e' => 'Name E',
  48. 'type' => 'Type',
  49. 'address' => 'Address',
  50. 'created_at' => 'Created At',
  51. 'updated_at' => 'Updated At',
  52. 'deleted_at' => 'Deleted At',
  53. ];
  54. }
  55. /**
  56. * {@inheritdoc}
  57. * @return BanksQuery the active query used by this AR class.
  58. */
  59. public static function find()
  60. {
  61. return new BanksQuery(get_called_class());
  62. }
  63. }