AddressFixture.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?php
  2. /* Address Fixture generated on: 2011-11-20 21:58:38 : 1321822718 */
  3. /**
  4. * AddressFixture
  5. *
  6. */
  7. class AddressFixture extends CakeTestFixture {
  8. /**
  9. * Fields
  10. *
  11. * @var array
  12. */
  13. public $fields = [
  14. 'id' => ['type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary', 'collate' => null, 'comment' => ''],
  15. 'foreign_id' => ['type' => 'string', 'null' => true, 'default' => null, 'length' => 36, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'],
  16. 'model' => ['type' => 'string', 'null' => false, 'default' => null, 'length' => 30, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'],
  17. 'country_id' => ['type' => 'integer', 'null' => true, 'default' => null, 'length' => 10, 'collate' => null, 'comment' => 'redundance purposely'],
  18. 'first_name' => ['type' => 'string', 'null' => false, 'default' => null, 'length' => 50, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'],
  19. 'last_name' => ['type' => 'string', 'null' => false, 'default' => null, 'length' => 50, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'],
  20. 'street' => ['type' => 'string', 'null' => false, 'default' => null, 'length' => 100, 'collate' => 'utf8_unicode_ci', 'comment' => 'street address and street numbe', 'charset' => 'utf8'],
  21. 'postal_code' => ['type' => 'string', 'null' => false, 'default' => null, 'length' => 10, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'],
  22. 'city' => ['type' => 'string', 'null' => false, 'default' => null, 'length' => 100, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'],
  23. 'lat' => ['type' => 'float', 'null' => false, 'default' => '0.000000', 'length' => '10,6', 'collate' => null, 'comment' => 'maps.google.de latitude'],
  24. 'lng' => ['type' => 'float', 'null' => false, 'default' => '0.000000', 'length' => '10,6', 'collate' => null, 'comment' => 'maps.google.de longitude'],
  25. 'last_used' => ['type' => 'datetime', 'null' => true, 'default' => null, 'collate' => null, 'comment' => ''],
  26. 'formatted_address' => ['type' => 'string', 'null' => false, 'default' => null, 'length' => 100, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'],
  27. 'created' => ['type' => 'datetime', 'null' => true, 'default' => null, 'collate' => null, 'comment' => ''],
  28. 'modified' => ['type' => 'datetime', 'null' => true, 'default' => null, 'collate' => null, 'comment' => ''],
  29. 'type_id' => ['type' => 'integer', 'null' => true, 'default' => null, 'length' => 4, 'collate' => null, 'comment' => ''],
  30. 'indexes' => ['PRIMARY' => ['column' => 'id', 'unique' => 1]],
  31. 'tableParameters' => []
  32. ];
  33. /**
  34. * Records
  35. *
  36. * @var array
  37. */
  38. public $records = [
  39. [
  40. 'id' => '46',
  41. 'foreign_id' => '6',
  42. 'model' => 'Partner',
  43. 'country_id' => null,
  44. 'first_name' => 'Hans',
  45. 'last_name' => 'Wurst',
  46. 'street' => 'Langstrasse 10',
  47. 'postal_code' => '101010',
  48. 'city' => 'München',
  49. 'lat' => '48.150589',
  50. 'lng' => '11.472230',
  51. 'last_used' => null,
  52. 'formatted_address' => 'Josef-Lang-Straße 10, 81245 München, Deutschland',
  53. 'created' => '2011-04-21 16:50:05',
  54. 'modified' => '2011-10-07 17:42:27',
  55. 'type_id' => null
  56. ],
  57. [
  58. 'id' => '47',
  59. 'foreign_id' => '4',
  60. 'model' => 'Restaurant',
  61. 'country_id' => '1',
  62. 'first_name' => '',
  63. 'last_name' => '',
  64. 'street' => 'Leckermannstrasse 10',
  65. 'postal_code' => '101010',
  66. 'city' => 'München',
  67. 'lat' => '48.133942',
  68. 'lng' => '11.490000',
  69. 'last_used' => '2031-01-01 00:00:00',
  70. 'formatted_address' => 'Eckermannstraße 10, 80689 München, Deutschland',
  71. 'created' => '2011-04-21 16:51:01',
  72. 'modified' => '2011-10-07 17:44:02',
  73. 'type_id' => null
  74. ],
  75. [
  76. 'id' => '48',
  77. 'foreign_id' => '7',
  78. 'model' => 'Partner',
  79. 'country_id' => null,
  80. 'first_name' => 'Tim',
  81. 'last_name' => 'Schoror',
  82. 'street' => 'Krebenweg 11',
  83. 'postal_code' => '12523',
  84. 'city' => 'Schwäbisch Boll',
  85. 'lat' => '19.081490',
  86. 'lng' => '19.690800',
  87. 'last_used' => null,
  88. 'formatted_address' => 'Krebenweg 11, 12523 Schwäbisch Boll, Deutschland',
  89. 'created' => '2011-11-17 13:47:36',
  90. 'modified' => '2011-11-17 13:47:36',
  91. 'type_id' => null
  92. ],
  93. [
  94. 'id' => '49',
  95. 'foreign_id' => '5',
  96. 'model' => 'Restaurant',
  97. 'country_id' => '1',
  98. 'first_name' => '',
  99. 'last_name' => '',
  100. 'street' => 'hjsf',
  101. 'postal_code' => 'hsjsdf',
  102. 'city' => 'sdhfhj',
  103. 'lat' => '0.000000',
  104. 'lng' => '0.000000',
  105. 'last_used' => null,
  106. 'formatted_address' => '',
  107. 'created' => '2011-11-17 14:34:14',
  108. 'modified' => '2011-11-17 14:49:21',
  109. 'type_id' => null
  110. ],
  111. ];
  112. }