| 1 |
lars |
1 |
propel:
|
|
|
2 |
_attributes: { defaultIdMethod: none, package: lib.model }
|
|
|
3 |
_propel_behaviors:
|
|
|
4 |
timestampable:
|
|
|
5 |
boolean: true
|
|
|
6 |
create_column: create_date
|
|
|
7 |
|
|
|
8 |
ab_group:
|
|
|
9 |
_attributes: { phpName: Group, package: foo.bar.lib.model }
|
|
|
10 |
id:
|
|
|
11 |
name: varchar(50)
|
|
|
12 |
type: varchar(50)
|
|
|
13 |
_inheritance:
|
|
|
14 |
column: type
|
|
|
15 |
classes:
|
|
|
16 |
tight: Group_Tight
|
|
|
17 |
loose: { phpName: Group_Loose, package: some.other.package }
|
|
|
18 |
|
|
|
19 |
cd_user:
|
|
|
20 |
_attributes: { phpName: User, isI18N: true, i18nTable: cd_user_i18n }
|
|
|
21 |
first_name: { type: varchar, size: 255, default: "Anonymous" }
|
|
|
22 |
last_name: varchar(50)
|
|
|
23 |
age: { type: integer, required: true, index: true }
|
|
|
24 |
ab_group_id:
|
|
|
25 |
created_at:
|
|
|
26 |
|
|
|
27 |
cd_user_i18n:
|
|
|
28 |
description: longvarchar
|
|
|
29 |
|
|
|
30 |
ef_article:
|
|
|
31 |
title: { type: longvarchar, required: true, index: unique }
|
|
|
32 |
stripped_title: { type: longvarchar, required: true, primaryKey: true, sequence: my_custom_sequence_name }
|
|
|
33 |
user_id:
|
|
|
34 |
my_group: { type: integer, foreignTable: ab_group, foreignReference: id, onDelete: setnull }
|
|
|
35 |
my_other_group: { type: integer, foreignTable: ab_group, foreignReference: id, onDelete: setnull, phpName: MyOtherGroupPhpName, fkPhpName: MyOtherGroupFkPhpName, fkRefPhpName: MyOtherGroupFkRefPhpName }
|
|
|
36 |
created_at: timestamp
|
|
|
37 |
updated_at:
|
|
|
38 |
|
|
|
39 |
ij_article:
|
|
|
40 |
_attributes: { phpName: Article }
|
|
|
41 |
title: varchar(50)
|
|
|
42 |
user_id: { type: integer }
|
|
|
43 |
_foreignKeys:
|
|
|
44 |
-
|
|
|
45 |
foreignTable: cd_user
|
|
|
46 |
onDelete: cascade
|
|
|
47 |
phpName: SomePhpName
|
|
|
48 |
refPhpName: SomeRefPhpName
|
|
|
49 |
references:
|
|
|
50 |
- { local: user_id, foreign: id }
|
|
|
51 |
created_at:
|
|
|
52 |
_indexes:
|
|
|
53 |
my_index: [title(10), user_id]
|
|
|
54 |
_uniques:
|
|
|
55 |
my_other_index: [created_at(10)]
|
|
|
56 |
_behaviors:
|
|
|
57 |
paranoid: { column: deleted_at }
|
|
|
58 |
act_as_nested_set:
|
|
|
59 |
_propel_behaviors:
|
|
|
60 |
paranoid: { column: deleted_at }
|
|
|
61 |
act_as_nested_set:
|
|
|
62 |
|
|
|
63 |
kl_article:
|
|
|
64 |
title: varchar(50)
|
|
|
65 |
user_id: { type: integer, phpName: AuthorId }
|
|
|
66 |
_foreignKeys:
|
|
|
67 |
-
|
|
|
68 |
foreignClass: User
|
|
|
69 |
phpName: Author
|
|
|
70 |
references:
|
|
|
71 |
- { local: user_id, foreign: id }
|
|
|
72 |
|
|
|
73 |
ab_group_i18n:
|
|
|
74 |
motto: longvarchar
|
|
|
75 |
|
|
|
76 |
history:
|
|
|
77 |
_attributes: { phpName: History }
|
|
|
78 |
id:
|
|
|
79 |
type: { type: varchar(64) }
|
|
|
80 |
_inheritance:
|
|
|
81 |
column: type
|
|
|
82 |
classes:
|
|
|
83 |
new_user: History_NewUser
|
|
|
84 |
new_page: History_NewPage
|
|
|
85 |
|
|
|
86 |
my_nested_sets:
|
|
|
87 |
_attributes: { phpName: myNestedSetNode }
|
|
|
88 |
id:
|
|
|
89 |
lft: { type: integer, required: true }
|
|
|
90 |
rgt: { type: integer, required: true }
|
|
|
91 |
scope: { type: integer, required: true }
|
|
|
92 |
_nestedSet:
|
|
|
93 |
left: lft
|
|
|
94 |
right: rgt
|
|
|
95 |
scope: scope
|