3
|
1 <?xml version="1.0"?>
|
|
2 <package xmlns="http://implab.org/schemas/data-model.v1.xsd"
|
|
3 xmlns:f="http://implab.org/schemas/data-model/geo.v1.xsd" xmlns:clr="http://implab.org/schemas/data-model/dotnet.v1.xsd"
|
|
4 xmlns:sql="http://implab.org/schemas/data-model/sql.v1.xsd" xmlns:esri="http://geopallada.ru/schemas/data-model/esri.v1.xsd"
|
|
5 name="users" version="1.0" clr:namespace="Pallada.PoiskMore.Model">
|
|
6
|
|
7 <import href="types.xml" />
|
|
8
|
|
9 <entity name="User">
|
|
10 <primaryKey name="Id" type="uuid"/>
|
|
11 <property name="login" type="string" />
|
|
12 <property name="enabled" type="boolean" />
|
|
13 <sql:unique name="login_unique">
|
|
14 <member name="login"/>
|
|
15 </sql:unique>
|
|
16 </entity>
|
|
17
|
|
18 <entity name="Session">
|
|
19 <primaryKey name="Id" type="uuid" />
|
|
20 <hasA name="User" type="User">
|
|
21 <!-- {memberName}{pkPropertyName} -->
|
|
22 <thisKey/>
|
|
23 </hasA>
|
|
24 </entity>
|
|
25
|
|
26 <entity name="UserRole">
|
|
27 <primaryKey>
|
|
28 <use name="UserId"/>
|
|
29 <use name="RoleId"/>
|
|
30 </primaryKey>
|
|
31
|
|
32 <property name="UserId" type="uuid"/>
|
|
33 <property name="RoleId" type="uuid"/>
|
|
34
|
|
35 <property name="Inherited" type="boolean"/>
|
|
36
|
|
37 <hasA name="User" type="User">
|
|
38 <thisKey use="UserId"/>
|
|
39 </hasA>
|
|
40
|
|
41 <hasA name="Role" type="Role">
|
|
42 <thisKey use="RoleId"/>
|
|
43 </hasA>
|
|
44 </entity>
|
|
45
|
|
46 <entity name="Journal">
|
|
47 <primaryKey name="Id" type="uuid"/>
|
|
48
|
|
49 <hasA name="LoginUser" >
|
|
50 <thisKey name="UserLogin" matches="Login"/>
|
|
51 </hasA>
|
|
52
|
|
53 <property name="action" type="string"/>
|
|
54 </entity>
|
|
55
|
|
56 </package> |