-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathschema_propel.yml
23 lines (20 loc) · 1.06 KB
/
schema_propel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
propel:
region:
id: ~
name: { type: varchar, required: true, index: unique, primaryString: true }
_propel_behaviors:
symfony: { form: false, filter: false }
province:
id: { type: char, size: 2, required: true, primaryKey: true }
name: { type: varchar, required: true, index: unique, primaryString: true }
region_id: { type: integer, foreignTable: region, foreignReference: id, onDelete: CASCADE, onUpdate: CASCADE }
_propel_behaviors:
symfony: { form: false, filter: false }
city:
id: { type: char, size: 4, required: true, primaryKey: true }
name: { type: varchar, required: true, index: unique, primaryString: true }
province_id: { type: char, size: 2, required: true, foreignTable: province, foreignReference: id, onUpdate: CASCADE, onDelete: CASCADE }
latitude: { type: decimal, scale: 6, size: 8, required: true }
longitude: { type: decimal, scale: 6, size: 8, required: true }
_propel_behaviors:
symfony: { form: false, filter: false }