chickadee » gromit » define-property-type

(define-property-type name table fields...)syntax

Creates a property type. An Object's field list can consist of attribute types or property types. Attributes are simple types that are stored in a single column in the object's database table. Properties are more complex types that are stored in their own database table. A property's field list can consist of attribute types only: property types cannot be nested. An Object's property fields can have zero or more values. If an Object needs to have a property field with more than one value then you must denote some of the property fields as keys. The key, which may consist of several fields, must be unique for each property of that type for a particular Object.

  (define-property-type password 'prop_password
  		      (set        wallclock required constant (key 0))
  		      (algorithm  symbol    required constant)
  		      (iterations integer   required constant)
  		      (salt       text      required constant)
  		      (crypt      blob      required constant))