feat: add mobile application structure with emotion picker and API integration
- Added favicon and icon assets for the mobile app. - Implemented EmotionPicker component for selecting emotions with child options. - Created hooks for fetching emotions, feeds, and rapport data. - Established API service for handling requests and authentication. - Integrated Zustand for state management of user authentication. - Defined color palette for the application. - Set up TypeScript types for various entities including User, Emotion, and Feed. - Configured Babel and TypeScript for the mobile project. - Added package.json with necessary dependencies for Expo and React Native.
This commit is contained in:
@@ -12,7 +12,7 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->foreignId('tracker_id')->constrained('trackers')->onDelete('cascade');
|
||||
$table->foreignId('emotion_id')->constrained('emotions');
|
||||
$table->tinyInteger('intensite');
|
||||
$table->unsignedTinyInteger('intensite');
|
||||
$table->text('note')->nullable();
|
||||
$table->dateTime('date_saisie');
|
||||
$table->timestamps();
|
||||
|
||||
@@ -15,7 +15,7 @@ return new class extends Migration
|
||||
$table->longText('contenu');
|
||||
$table->string('image_url')->nullable();
|
||||
$table->boolean('est_publie')->default(false);
|
||||
$table->foreignId('auteur_id')->constrained('utilisateurs');
|
||||
$table->foreignId('auteur_id')->constrained('utilisateurs')->onDelete('cascade');
|
||||
$table->integer('ordre')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user