World.php 510 B

1234567891011121314151617181920
  1. <?php
  2. namespace app\modules\site\models;
  3. use Piko\DbRecord\Attribute\Table;
  4. use Piko\DbRecord\Attribute\Column;
  5. /**
  6. * This is the model class for table "World".
  7. */
  8. #[Table(name: 'World')]
  9. class World extends \Piko\DbRecord
  10. {
  11. #[Column(primaryKey: true)]
  12. public ?int $id = null;
  13. #[Column]
  14. public int $randomnumber = 0;
  15. // The var name is not 'randomNumber' because the column name doesn't exists in the pgsql table
  16. // For Mysql, there is no difference as it is not case sensitive.
  17. }