package Ġcom . robot nec . budget . core . persistence . schema Ċ Ċ import Ġcom . yahoo . s quid b . annotations . PrimaryKey Ċ import Ġcom . yahoo . s quid b . annotations . TableModel Spec Ċ Ċ /** Ċ Ġ* Ġ@ author Ġz ak Ġz ak @ swing pulse . com > Ċ Ġ*/ Ċ @ TableModel Spec ( className Ġ= Ġ" Transaction Record ", ĊĠĠĠĠĠĠĠ ĠtableName Ġ= Ġ" transactions ", ĊĠĠĠĠĠĠĠ Ġtable Constraint Ġ= Ġ" FOREIGN ĠKEY Ġ( accountId ) ĠREFERENCES Ġaccount ( id )," Ġ+ Ġ" FOREIGN ĠKEY Ġ( categoryId ) ĠREFERENCES Ġcategory ( id )") Ċ class ĠTransaction Schema Ġ{ ĊĊĠĠĠ Ġ@ PrimaryKey ĊĠĠĠ Ġprivate Ġval Ġid : ĠLong Ġ= Ġ 0 ĊĠĠĠ Ġprivate Ġval ĠaccountId : ĠLong Ġ= Ġ 0 ĊĠĠĠ Ġprivate Ġval Ġcategory Id : ĠLong Ġ= Ġ 0 ĊĠĠĠ Ġprivate Ġval Ġamount : ĠString ? Ġ= Ġnull ĊĠĠĠ Ġprivate Ġval Ġdate : ĠLong Ġ= Ġ 0 Ċ } Ċ