1<?php
2
3/**
4 * Nextcloud - cospend
5 *
6 * This file is licensed under the Affero General Public License version 3 or
7 * later. See the COPYING file.
8 *
9 * @author Julien Veyssier <eneiluj@posteo.net
10 * @copyright Julien Veyssier 2019
11 */
12
13namespace OCA\Cospend\Db;
14
15use OCP\AppFramework\Db\Entity;
16
17class Project extends Entity {
18
19	protected $userid;
20	protected $name;
21	protected $email;
22	protected $password;
23	protected $autoexport;
24	protected $lastchanged;
25	protected $guestaccesslevel;
26	protected $deletiondisabled;
27	protected $categorysort;
28	protected $paymentmodesort;
29	protected $currencyname;
30
31	public function __construct() {
32		$this->addType('id', 'string');
33		$this->addType('userid', 'string');
34		$this->addType('name', 'string');
35		$this->addType('email', 'string');
36		$this->addType('password', 'string');
37		$this->addType('autoexport', 'string');
38		$this->addType('lastchanged', 'integer');
39		$this->addType('guestaccesslevel', 'integer');
40		$this->addType('deletiondisabled', 'integer');
41		$this->addType('categorysort', 'string');
42		$this->addType('paymentmodesort', 'string');
43		$this->addType('currencyname', 'string');
44	}
45}
46