You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 satır
713B

  1. <?php
  2. namespace App\Kintone\Models;
  3. /**
  4. * アプリ名 顧客マスタ
  5. */
  6. class Customer extends KintoneModel
  7. {
  8. const CONFIG_KEY = "KINTONE_APP_CUSTOMER";
  9. const FIELD_CUSTOMER_CODE = "CustomerCode";
  10. const FIELD_CUSTOMER_NAME = "CustomerName";
  11. const FIELD_EMAIL = "メールアドレス";
  12. protected const FIELDS = [
  13. ...parent::FIELDS,
  14. self::FIELD_CUSTOMER_CODE => FieldType::NUMBER,
  15. self::FIELD_CUSTOMER_NAME => FieldType::SINGLE_LINE_TEXT,
  16. self::FIELD_EMAIL => FieldType::LINK,
  17. ];
  18. protected const FIELD_NAMES = [
  19. ...parent::FIELD_NAMES,
  20. self::FIELD_CUSTOMER_NAME => 'customer_name',
  21. self::FIELD_EMAIL => 'email',
  22. ];
  23. }