Advertisement
Guest User

Untitled

a guest
Jun 9th, 2011
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.84 KB | None | 0 0
  1. schema.yml
  2.  
  3.     sfGuardUser:
  4.       actAs: [Timestampable]
  5.       columns:
  6.         email_address:
  7.           type: string(255)
  8.           notnull: true
  9.           unique: true
  10.         username:
  11.           type: string(128)
  12.           notnull: true
  13.           unique: true
  14.         first_name:
  15.           type: varchar(255)
  16.         last_name:
  17.           type: varchar(255)
  18.         algorithm:
  19.           type: string(128)
  20.           default: sha1
  21.           notnull: true
  22.         salt: string(128)
  23.         password: string(128)
  24.         is_active:
  25.           type: boolean
  26.           default: 1
  27.         is_super_admin:
  28.           type: boolean
  29.           default: false
  30.         last_login:
  31.           type: timestamp
  32.       indexes:
  33.         is_active_idx:
  34.           fields: [is_active]
  35.       relations:
  36.         Groups:
  37.           class: sfGuardGroup
  38.           local: user_id
  39.           foreign: group_id
  40.           refClass: sfGuardUserGroup
  41.           foreignAlias: Users
  42.         Permissions:
  43.           class: sfGuardPermission
  44.           local: user_id
  45.           foreign: permission_id
  46.           refClass: sfGuardUserPermission
  47.           foreignAlias: Users
  48.  
  49.     sfGuardUserProfile:
  50.       actAs:
  51.         Timestampable: ~
  52.       columns:
  53.         user_id:
  54.           type: integer(11)
  55.           notnull: true
  56.           default:
  57.           unsigned: false
  58.           primary: false
  59.           unique: false
  60.           autoincrement: false
  61.         email_new:
  62.           type: string(255)
  63.           unique: true
  64.         firstname:
  65.           type: string(255)
  66.         lastname:
  67.           type: string(255)
  68.         validate_at:
  69.           type: timestamp
  70.         validate:
  71.           type: string(33)
  72.      relations:
  73.         User:        { onDelete: CASCADE, local: user_id, foreign: id, type: one, foreignType: one, foreignAlias: Profile, alias: User }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement