Skip to content

Instantly share code, notes, and snippets.

@delbono
Created Aug 30, 2010
Embed
What would you like to do?
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