1 |
|
2 | import {field, document} from '../mongoose/decorators';
|
3 | import {Strict} from '../mongoose/enums/';
|
4 | import {onetomany, manytoone, manytomany, onetoone} from '../core/decorators';
|
5 |
|
6 | //@document({ name: "session", strict: Strict.false })
|
7 | export class Session {
|
8 |
|
9 | ()
|
10 | sessionId: string;
|
11 |
|
12 | ()
|
13 | userName: string;
|
14 |
|
15 | ()
|
16 | role: string;
|
17 |
|
18 | ()
|
19 | userId: number;
|
20 |
|
21 |
|
22 | reliableChannles: any;//format { "order": { "status":true,lastemit:date} }
|
23 |
|
24 |
|
25 | }
|
26 |
|
27 | export default Session;
|
28 | /*
|
29 | db.sessions.insert([{
|
30 | "sessionId":"first1",
|
31 | "role":"ROLE_USER",
|
32 | "userName":"Ratnesh"
|
33 | },
|
34 | {
|
35 | "sessionId":"session_for_ordermatcher",
|
36 | "role":"ROLE_ADMIN",
|
37 | "userName":"OrderMatcher"
|
38 | },
|
39 | {
|
40 | "sessionId":"session_admin",
|
41 | "role":"ROLE_ADMIN",
|
42 | "userName":"session_admin"
|
43 | }
|
44 | ]
|
45 | )
|
46 |
|
47 | */ |
\ | No newline at end of file |