Skip to content

Instantly share code, notes, and snippets.

@delbono
Created August 30, 2010 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save delbono/557848 to your computer and use it in GitHub Desktop.
Save delbono/557848 to your computer and use it in GitHub Desktop.
OrdinativiMenuItem:
actAs: { Timestampable: ~ }
columns:
menu_id: { type: integer, notnull: true, default: 0 }
name: { type: string(255), notnull: true }
type: { type: string(3) }
state: { type: integer, notnull: true, default: 0 }
enabled: { type: boolean, notnull: true, default: 0 }
relations:
OrdinativiHealthState: { type: many, foreignType: one, class: OrdinativiHealthState, local: state, foreign: id, onDelete: CASCADE, foreignAlias: OrdinativiHealthStates }
OrdinativiMenu:
type: many
foreignType: one
class: OrdinativiMenus
local: menu_id
foreign: id
onDelete: CASCADE
foreignAlias: OrdinativiMenus
OrdinativiMenuItemDays:
type: one
foreignType: many
local: id
foreign: item_id
onDelete: CASCADE
foreignAlias: MenuItemDays
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment