Skip to content

Commit c7f65f1

Browse files
committed
Added Missing model
1 parent 5350b8d commit c7f65f1

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

dbObject/models/user.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
require_once "product.php";
3+
4+
/**
5+
* To make IDEs autocomplete happy
6+
*
7+
* @property string id
8+
* @property string userid
9+
* @property string name
10+
* @property string authcode
11+
* @property string iscallerid
12+
*/
13+
class user extends dbObject {
14+
protected $dbTable = "users";
15+
protected $primaryKey = "id";
16+
protected $dbFields = Array (
17+
'login' => 'text',
18+
'active' => 'int',
19+
'customerId' => 'int',
20+
'firstName' => 'text',
21+
'lastName' => 'text',
22+
'password' => 'text',
23+
'createdAt' => 'datetime',
24+
'expires' => 'datetime',
25+
'loginCount' => 'int'
26+
);
27+
28+
protected $relations = Array (
29+
'products' => Array ("hasMany", "product", 'userid')
30+
);
31+
}
32+
33+
34+
?>

0 commit comments

Comments
 (0)