propel/generated-classes/Map/ProfileTableMap.php
/**
     * Initialize the table attributes and columns
     * Relations are not initialized by this method since they are lazy loaded
     *
     * @return void
     * @throws PropelException
     */
Initialize the table attributes and columns
Relations are not initialized by this method since they are lazy loaded

@return void
@throws PropelException
Initialize the table attributes and columns Relations are not initialized by this method since they are lazy loaded @return void @throws PropelException
public function initialize()
    {
        $this->setName('profile');
        $this->setPhpName('Profile');
        $this->setClassName('\\Profile');
        $this->setPackage('');
        $this->setUseIdGenerator(true);
        $this->addPrimaryKey('ID', 'ID', 'INTEGER', true, null, null);
        $this->addColumn('UUID', 'UUID', 'CHAR', true, 36, null);
        $this->addForeignKey('USER_ID', 'UserID', 'INTEGER', 'user', 'ID', true, null, null);
        $this->addColumn('DEALER_ID', 'DealerID', 'INTEGER', true, null, null);
        $this->addColumn('FIRST_NAME', 'FirstName', 'VARCHAR', false, 128, null);
        $this->addColumn('LAST_NAME', 'LastName', 'VARCHAR', false, 128, null);
        $this->addColumn('GENDER', 'Gender', 'ENUM', false, null, null);
        $this->getColumn('GENDER', false)->setValueSet(array (
  0 => 'male',
  1 => 'female',
));
        $this->addColumn('DATE_OF_BIRTH', 'DateOfBirth', 'DATE', false, null, null);
        $this->addColumn('PHONE_NUMBER', 'PhoneNumber', 'VARCHAR', false, 30, null);
        $this->addColumn('MOBILE_NUMBER', 'MobileNumber', 'VARCHAR', false, 30, null);
        $this->addColumn('IMAGE', 'ProfileImage', 'LONGVARCHAR', false, null, null);
        $this->addColumn('COMPANY_NAME', 'CompanyName', 'VARCHAR', false, 128, null);
        $this->addColumn('PRIMARY_ADDRESS_STREET', 'PrimaryAddressStreet', 'VARCHAR', false, 255, null);
        $this->addColumn('PRIMARY_ADDRESS_STREET_2', 'PrimaryAddressStreet2', 'VARCHAR', false, 255, null);
        $this->addColumn('PRIMARY_ADDRESS_CITY', 'PrimaryAddressCity', 'VARCHAR', false, 128, null);
        $this->addColumn('PRIMARY_ADDRESS_STATE', 'PrimaryAddressState', 'VARCHAR', false, 128, null);
        $this->addColumn('PRIMARY_ADDRESS_POST_CODE', 'PrimaryAddressPostCode', 'VARCHAR', false, 20, null);
        $this->addColumn('PRIMARY_ADDRESS_COUNTRY', 'PrimaryAddressCountry', 'VARCHAR', false, 128, null);
        $this->addColumn('BILLING_ADDRESS_STREET', 'BillingAddressStreet', 'VARCHAR', false, 255, null);
        $this->addColumn('BILLING_ADDRESS_CITY', 'BillingAddressCity', 'VARCHAR', false, 128, null);
        $this->addColumn('BILLING_ADDRESS_STATE', 'BillingAddressState', 'VARCHAR', false, 128, null);
        $this->addColumn('BILLING_ADDRESS_POST_CODE', 'BillingAddressPostCode', 'VARCHAR', false, 20, null);
        $this->addColumn('BILLING_ADDRESS_COUNTRY', 'BillingAddressCountry', 'VARCHAR', false, 128, null);
        $this->addColumn('SECURITY_QUESTION_1', 'FirstSecurityQuestion', 'VARCHAR', false, 128, null);
        $this->addColumn('SECURITY_ANSWER_1', 'FirstSecurityQuestionAnswer', 'VARCHAR', false, 128, null);
        $this->addColumn('SECURITY_QUESTION_2', 'SecondSecurityQuestion', 'VARCHAR', false, 128, null);
        $this->addColumn('SECURITY_ANSWER_2', 'SecondSecurityQuestionAnswer', 'VARCHAR', false, 128, null);
        $this->addColumn('SECURITY_QUESTION_CUSTOM', 'CustomSecurityQuestion', 'VARCHAR', false, 128, null);
        $this->addColumn('SECURITY_ANSWER_CUSTOM', 'CustomSecurityAnswer', 'VARCHAR', false, 128, null);
        $this->addColumn('CREATED_AT', 'CreatedAt', 'TIMESTAMP', false, null, null);
        $this->addColumn('UPDATED_AT', 'UpdatedAt', 'TIMESTAMP', false, null, null);
    }
public function initialize ( ) { $ this -> setName ( 'profile' ) ; $ this -> setPhpName ( 'Profile' ) ; $ this -> setClassName ( '\\Profile' ) ; $ this -> setPackage ( '' ) ; $ this -> setUseIdGenerator ( true ) ; $ this -> addPrimaryKey ( 'ID' , 'ID' , 'INTEGER' , true , null , null ) ; $ this -> addColumn ( 'UUID' , 'UUID' , 'CHAR' , true , 36 , null ) ; $ this -> addForeignKey ( 'USER_ID' , 'UserID' , 'INTEGER' , 'user' , 'ID' , true , null , null ) ; $ this -> addColumn ( 'DEALER_ID' , 'DealerID' , 'INTEGER' , true , null , null ) ; $ this -> addColumn ( 'FIRST_NAME' , 'FirstName' , 'VARCHAR' , false , 128 , null ) ; $ this -> addColumn ( 'LAST_NAME' , 'LastName' , 'VARCHAR' , false , 128 , null ) ; $ this -> addColumn ( 'GENDER' , 'Gender' , 'ENUM' , false , null , null ) ; $ this -> getColumn ( 'GENDER' , false ) -> setValueSet ( array ( 0 => 'male' , 1 => 'female' , ) ) ; $ this -> addColumn ( 'DATE_OF_BIRTH' , 'DateOfBirth' , 'DATE' , false , null , null ) ; $ this -> addColumn ( 'PHONE_NUMBER' , 'PhoneNumber' , 'VARCHAR' , false , 30 , null ) ; $ this -> addColumn ( 'MOBILE_NUMBER' , 'MobileNumber' , 'VARCHAR' , false , 30 , null ) ; $ this -> addColumn ( 'IMAGE' , 'ProfileImage' , 'LONGVARCHAR' , false , null , null ) ; $ this -> addColumn ( 'COMPANY_NAME' , 'CompanyName' , 'VARCHAR' , false , 128 , null ) ; $ this -> addColumn ( 'PRIMARY_ADDRESS_STREET' , 'PrimaryAddressStreet' , 'VARCHAR' , false , 255 , null ) ; $ this -> addColumn ( 'PRIMARY_ADDRESS_STREET_2' , 'PrimaryAddressStreet2' , 'VARCHAR' , false , 255 , null ) ; $ this -> addColumn ( 'PRIMARY_ADDRESS_CITY' , 'PrimaryAddressCity' , 'VARCHAR' , false , 128 , null ) ; $ this -> addColumn ( 'PRIMARY_ADDRESS_STATE' , 'PrimaryAddressState' , 'VARCHAR' , false , 128 , null ) ; $ this -> addColumn ( 'PRIMARY_ADDRESS_POST_CODE' , 'PrimaryAddressPostCode' , 'VARCHAR' , false , 20 , null ) ; $ this -> addColumn ( 'PRIMARY_ADDRESS_COUNTRY' , 'PrimaryAddressCountry' , 'VARCHAR' , false , 128 , null ) ; $ this -> addColumn ( 'BILLING_ADDRESS_STREET' , 'BillingAddressStreet' , 'VARCHAR' , false , 255 , null ) ; $ this -> addColumn ( 'BILLING_ADDRESS_CITY' , 'BillingAddressCity' , 'VARCHAR' , false , 128 , null ) ; $ this -> addColumn ( 'BILLING_ADDRESS_STATE' , 'BillingAddressState' , 'VARCHAR' , false , 128 , null ) ; $ this -> addColumn ( 'BILLING_ADDRESS_POST_CODE' , 'BillingAddressPostCode' , 'VARCHAR' , false , 20 , null ) ; $ this -> addColumn ( 'BILLING_ADDRESS_COUNTRY' , 'BillingAddressCountry' , 'VARCHAR' , false , 128 , null ) ; $ this -> addColumn ( 'SECURITY_QUESTION_1' , 'FirstSecurityQuestion' , 'VARCHAR' , false , 128 , null ) ; $ this -> addColumn ( 'SECURITY_ANSWER_1' , 'FirstSecurityQuestionAnswer' , 'VARCHAR' , false , 128 , null ) ; $ this -> addColumn ( 'SECURITY_QUESTION_2' , 'SecondSecurityQuestion' , 'VARCHAR' , false , 128 , null ) ; $ this -> addColumn ( 'SECURITY_ANSWER_2' , 'SecondSecurityQuestionAnswer' , 'VARCHAR' , false , 128 , null ) ; $ this -> addColumn ( 'SECURITY_QUESTION_CUSTOM' , 'CustomSecurityQuestion' , 'VARCHAR' , false , 128 , null ) ; $ this -> addColumn ( 'SECURITY_ANSWER_CUSTOM' , 'CustomSecurityAnswer' , 'VARCHAR' , false , 128 , null ) ; $ this -> addColumn ( 'CREATED_AT' , 'CreatedAt' , 'TIMESTAMP' , false , null , null ) ; $ this -> addColumn ( 'UPDATED_AT' , 'UpdatedAt' , 'TIMESTAMP' , false , null , null ) ; }
Initialize the table attributes and columns
 Relations are not initialized by this method since they are lazy loaded
Initialize the table attributes and columns Relations are not initialized by this method since they are lazy loaded
// attributes // columns