29 * xref* # not sure why it's (#PCDATA)*...
\r
30 * ant* # not sure why it's (#PCDATA)*...
\r
43 ent_seq (also unique int)... good enough?
\r
49 # SIMPLE translation from XML to SQL:
\r
50 # Unique key for each table,
\r
51 # plus indexed foreign key (except top-level element)
\r
54 k_ele: id, fk, blob (<keb>)
\r
55 k_ele_inf: id, fk, entity
\r
56 k_ele_pri: id, fk, value
\r
57 r_ele: id, fk, blob, nokanji(flag)
\r
58 r_ele_restr: id, fk, value
\r
59 r_ele_inf: id, fk, entity
\r
60 r_ele_pri: id, fk, value
\r
61 ...etc, for all tables.
\r
65 Other tables: pretty much as we planned, but add the fk in, and make
\r
66 the primary key an auto-increment. Will leave us with fewer tables
\r
67 and may reduce size slightly.
\r
74 entry # Keep around just as a full listing...
\r
75 id # ent_seq good enough...?
\r
106 k_ele # k_ele (id, keb => id, value)
\r
129 nokanji # re_nokanji (boolean)
\r
139 ls_type ("full" or "part"... full implied, part if spec'd... meaning???)
\r
140 ls_wasei (t/f flag, "y" if true, not spec'd otherwise)
\r
145 g_gend (can be null) (unused)
\r
147 pri? (t/f: if true, use pri table)
\r
166 id # surrogate in case entity is ever changed
\r