<?php

class SibsCardTokens extends ObjectModel
{
    public $id_sibs_card_tokens;

    public $id_sibs_card_tokens_category;

    public $position;

    public $active;

    public static $definition = [
        'table'     => 'sibs_card_tokens',
        'primary'   => 'id',
        'multilang' => false,
        'fields'    => [
            'id_customer'         => ['type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'size' => 10],
            'token_name'          => ['type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 100],
            'token_type'          => ['type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 32],
            'value'               => ['type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 100],
            'masked_pan'          => ['type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 32],
            'expire_date'         => ['type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 32],
            'expire_date_example' => ['type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 6],
        ],
    ];
}
