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.

37 lines
812B

  1. <?php
  2. namespace App\Kintone\Models;
  3. use Illuminate\Support\Carbon;
  4. /**
  5. * アプリ名 入金プール
  6. *
  7. * @property int customerCode
  8. * @property string customerName
  9. * @property int poolAmount
  10. */
  11. class Pool extends KintoneModel
  12. {
  13. const CONFIG_KEY = "KINTONE_APP_POOL";
  14. const FIELD_CUSTOMER_CODE = "顧客コード";
  15. const FIELD_CUSTOMER_NAME = "顧客名";
  16. const FIELD_POOL_AMOUNT = "プール金";
  17. protected const FIELDS = [
  18. ...parent::FIELDS,
  19. self::FIELD_CUSTOMER_CODE => FieldType::NUMBER,
  20. self::FIELD_CUSTOMER_NAME => FieldType::SINGLE_LINE_TEXT,
  21. self::FIELD_POOL_AMOUNT => FieldType::NUMBER,
  22. ];
  23. protected const FIELD_NAMES = [
  24. ...parent::FIELD_NAMES,
  25. ];
  26. protected const RELATIONS = [
  27. Customer::class,
  28. ];
  29. }