| 123456789101112131415161718192021222324252627282930 |
- <?php
- declare(strict_types=1);
- namespace TestApp\Model\Table;
- use Cake\ORM\Table;
- class ContactsTable extends Table
- {
- /**
- * Initializes the schema
- *
- * @param array $config
- */
- public function initialize(array $config): void
- {
- $this->setSchema([
- 'id' => ['type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'],
- 'name' => ['type' => 'string', 'null' => '', 'default' => '', 'length' => '255'],
- 'email' => ['type' => 'string', 'null' => '', 'default' => '', 'length' => '255'],
- 'phone' => ['type' => 'string', 'null' => '', 'default' => '', 'length' => '255'],
- 'password' => ['type' => 'string', 'null' => '', 'default' => '', 'length' => '255'],
- 'published' => ['type' => 'date', 'null' => true, 'default' => null, 'length' => null],
- 'created' => ['type' => 'date', 'null' => '1', 'default' => '', 'length' => ''],
- 'updated' => ['type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null],
- 'age' => ['type' => 'integer', 'null' => '', 'default' => '', 'length' => null],
- '_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]],
- ]);
- }
- }
|