contact props hint and comment update

This commit is contained in:
Jérémy Munsch 2023-09-01 09:30:01 +02:00
parent 90a9770a17
commit 0d06cce559
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
2 changed files with 11 additions and 3 deletions

View file

@ -17,12 +17,12 @@ use Kwaadpepper\Enum\Traits\CastsEnums;
* @property integer $app_user_id
* @property string $id
* @property string $email
* @property string $lastname
* @property string $firstname
* @property string|null $lastname
* @property string|null $firstname
* @property string|null $phone
* @property array<\App\Lib\Inputs\Definition\Input> $data
* @property string|null $notes
* @property array<array<string,string>>|null $visits
* @property array<array<string,string>> $visits
*/
class Contact extends Model
{

View file

@ -26,6 +26,14 @@ class UpgradeContactsTable extends Migration
* Keep columns, id, notes, visits, app_user_id
*/
Schema::table('contacts', function (Blueprint $table) {
$table->string('email')->comment('Email du contact, Form Status: System')->change();
$table->string('lastname')->nullable()->comment('Nom du contact, Form Status: Locked')->change();
$table->string('firstname')->nullable()->comment('Prénom du contact, Form Status: Locked')->change();
$table->string('phone')->nullable()->comment('Téléphone du contact, Form Status: Locked')->change();
$table->string('notes')->nullable()->comment('Notes sur un contact')->change();
$table->string('visits')->default('[]')
->comment('Visite d\'un contact, Array<{title:string,note:string}>')->change();
$table->dropColumn('type');
$table->dropColumn('other');
$table->dropColumn('select1');