-
Notifications
You must be signed in to change notification settings - Fork 6
/
schema.xml
47 lines (47 loc) · 2.34 KB
/
schema.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<database name="ginger" defaultIdMethod="native">
<table name="cotisation" phpName="Cotisation">
<column name="id" type="integer" required="true" primaryKey="true" autoIncrement="true"/>
<column name="personne_id" type="integer" required="true"/>
<column name="debut" type="date" required="true" />
<column name="fin" type="date" required="true"/>
<column name="montant" type="decimal" size="5" scale="2" required="true" />
<behavior name="timestampable" />
<behavior name="soft_delete" />
<foreign-key foreignTable="personne" phpName="Personne" refPhpName="Cotisation">
<reference local="personne_id" foreign="id"/>
</foreign-key>
</table>
<table name="personne" phpName="Personne">
<column name="id" type="integer" required="true" primaryKey="true" autoIncrement="true"/>
<column name="login" type="varchar" size="8" required="true"/>
<column name="prenom" type="varchar" size="128" required="true"/>
<column name="nom" type="varchar" size="128" required="true"/>
<column name="mail" type="varchar" size="200" required="true"/>
<column name="type" type="enum" valueSet="etu, pers, escom, escompers, ext" required="true"/>
<column name="date_naissance" type="date" required="false"/>
<column name="is_adulte" type="boolean" required="true"/>
<column name="badge_uid" type="varchar" size="10" required="false"/>
<column name="expiration_badge" type="date" required="false"/>
<behavior name="timestampable" />
<unique>
<unique-column name="login"/>
</unique>
<unique>
<unique-column name="badge_uid"/>
</unique>
</table>
<table name="authkey" phpName="Authkey">
<column name="id" type="integer" required="true" primaryKey="true" autoIncrement="true" />
<column name="asso" type="varchar" size="200" required="true" />
<column name="details" type="varchar" size="1000" required="true" />
<column name="cle" type="varchar" size="50" required="true" />
<column name="droit_ecriture" type="boolean" required="true" default="false"/>
<column name="droit_badges" type="boolean" required="true" default="false"/>
<column name="droit_cotisations" type="boolean" required="true" default="false"/>
<behavior name="timestampable" />
<unique>
<unique-column name="cle"/>
</unique>
</table>
</database>