<commit_before><?php
class Model_Account extends Model_Table {
	var $table= "accounts";

	function init(){
		parent::init();

		$this->hasOne('Agent','agent_id');
		$this->hasOne('Branch','branch_id')->defaultValue($this->api->current_branch->id);
		$this->hasOne('Staff','staff_id')->defaultValue($this->api->auth->model->id);
		$this->hasOne('Dealer','dealer_id');
		$this->hasOne('Member','collector_id');
		$this->hasOne('Member','member_id');
		$this->hasOne('Scheme','scheme_id');
		
		$this->addField('OpeningBalanceDr')->type('money');
		$this->addField('OpeningBalanceCr')->type('money');
		$this->addField('ClosingBalance')->type('money');
		$this->addField('CurrentBalanceDr')->type('money');
		$this->addField('CurrentInterest');
		$this->addField('ActiveStatus')->type('boolean')->defaultValue(true);
		$this->addField('Nominee');
		$this->addField('NomineeAge');
		$this->addField('RelationWithNominee');
		$this->addField('MinorNomineeDOB');
		$this->addField('MinorNomineeParentName');
		$this->addField('ModeOfOperation');<commit_msg>Automplete added in accounts model<commit_after><?php
class Model_Account extends Model_Table {
	var $table= "accounts";

	function init(){
		parent::init();

		$this->hasOne('Agent','agent_id')->display(array('form'=>'authcomplete/Basic'));
		$this->hasOne('Branch','branch_id')->defaultValue($this->api->current_branch->id);
		$this->hasOne('Staff','staff_id')->defaultValue($this->api->auth->model->id);
		$this->hasOne('Dealer','dealer_id')->display(array('form'=>'authcomplete/Basic'));
		$this->hasOne('Member','collector_id')->display(array('form'=>'authcomplete/Basic'));
		$this->hasOne('Member','member_id')->display(array('form'=>'authcomplete/Basic'));
		$this->hasOne('Scheme','scheme_id')->display(array('form'=>'authcomplete/Basic'));
		
		$this->addField('OpeningBalanceDr')->type('money');
		$this->addField('OpeningBalanceCr')->type('money');
		$this->addField('ClosingBalance')->type('money');
		$this->addField('CurrentBalanceDr')->type('money');
		$this->addField('CurrentInterest');
		$this->addField('ActiveStatus')->type('boolean')->defaultValue(true);
		$this->addField('Nominee');
		$this->addField('NomineeAge');
		$this->addField('RelationWithNominee');
		$this->addField('MinorNomineeDOB');
		$this->addField('MinorNomineeParentName');
		$this->addField('ModeOfOperation');
{'fraction_non_alphanumeric': 0.24011899702507436, 'fraction_numerical': 0.0, 'mean_word_length': 8.932489451476794, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 81, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '333413', 'n_tokens_mistral': 831, 'n_tokens_neox': 763, 'n_words': 63}