annotate data/users.xml @ 8:5fe2e5724331

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