diff options
1 files changed, 18 insertions, 0 deletions
| -rw-r--r-- | src/models/JobOffer.php | 18 |
diff --git a/src/models/JobOffer.php b/src/models/JobOffer.php new file mode 100644 index 0000000..1fb3d28 --- /dev/null +++ b/src/models/JobOffer.php @@ -0,0 +1,18 @@ +<?php +include_once("DB.php"); + +class JobOffer { + public const TABLE_NAME = "job_offers"; + public const TABLE_COLUMNS = array("title " . DB::STRING_TYPE, "description " . DB::STRING_TYPE, "company " . DB::STRING_TYPE, "salary " . DB::FLOAT_TYPE); + + public string $title; + public string $description; + public string $company; + public float $salary; + + private DB $db; + + function __construct(DB $db) { + $this->db = $db; + } +} |
