Ejemplo n.º 1
0
 public static function defineSchema($className = __CLASS__)
 {
     $schema = self::getSchemaInstance($className);
     $schema->setName($className);
     $schema->registerField(new ARPrimaryKeyField("ID", ArInteger::instance()));
     $schema->registerField(new ARField("keywords", ArVarchar::instance(60)));
     $schema->registerField(new ARField("ip", ArInteger::instance()));
     $schema->registerField(new ARField("time", ArDateTime::instance()));
 }
Ejemplo n.º 2
0
 public static function defineSchema($className = __CLASS__)
 {
     $schema = self::getSchemaInstance($className);
     $schema->setName($className);
     $schema->registerField(new ARPrimaryKeyField("ID", ArChar::instance(32)));
     $schema->registerField(new ARForeignKeyField("userID", "User", "ID", "User", ARInteger::instance()));
     $schema->registerField(new ARField("lastUpdated", ArInteger::instance(12)));
     $schema->registerField(new ARField("cacheUpdated", ArInteger::instance(12)));
     $schema->registerField(new ARField("data", ArBinary::instance(0)));
 }