Skip to content

Instantly share code, notes, and snippets.

@jwage
Forked from cwage/gist:767203
Created January 5, 2011 23:17
Show Gist options
  • Save jwage/767205 to your computer and use it in GitHub Desktop.
Save jwage/767205 to your computer and use it in GitHub Desktop.
Employee:
columns:
id:
type: integer
primary: true
autoincrement: true
sf_guard_user_id:
type: integer
name:
type: string(155)
start_date:
type: date
position_id:
type: integer
relations:
User:
class: sfGuardUser
foreignType: one
foreignAlias: Employee
Specialties:
class: EmployeeSpecialty
refClass: EmployeeSpecialtyRef
local: employee_id
foreign: employee_specialty_id
foreignAlias: Employees
Specialty:
columns:
id:
type: integer
primary: true
autoincrement: true
title:
type: string(155)
EmployeeSpecialtyRef:
columns:
employee_id:
type: integer
primary: true
employee_specialty_id:
type: integer
primary: true
relations:
Employee:
class: Employee
onDelete: CASCADE
EmployeeSpecialty:
class: EmployeeSpecialty
onDelete: CASCADE
EmployeeSpecialty:
columns:
id:
type: integer
primary: true
autoincrement: true
specialty_id:
type: integer
level:
type: integer
notes:
type: blob
relations:
Specialty:
class: Specialty
foreignType: one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment