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.

38 lines
896B

  1. <?php
  2. namespace App\Kintone\Models;
  3. use Illuminate\Support\Carbon;
  4. /**
  5. * アプリ名 問い合わせ
  6. * @property string $genre
  7. * @property string $ask
  8. * @property Carbon $askDatetime
  9. */
  10. class Ask extends KintoneModel
  11. {
  12. const CONFIG_KEY = "KINTONE_APP_ASK";
  13. const FIELD_CUSTOMER_CODE = "顧客コード";
  14. const FIELD_GENRE = "ジャンル";
  15. const FIELD_ASK = "問い合わせ";
  16. const FIELD_ASK_DATETIME = "問い合わせ日時";
  17. protected const FIELDS = [
  18. ...parent::FIELDS,
  19. self::FIELD_CUSTOMER_CODE => FieldType::NUMBER,
  20. self::FIELD_GENRE => FieldType::SINGLE_LINE_TEXT,
  21. self::FIELD_ASK => FieldType::MULTI_LINE_TEXT,
  22. self::FIELD_ASK_DATETIME => FieldType::DATETIME,
  23. ];
  24. protected const FIELD_NAMES = [
  25. ...parent::FIELD_NAMES,
  26. ];
  27. protected const RELATIONS = [
  28. Customer::class,
  29. ];
  30. }