package com.socialapp.data.db.entity import androidx.room.Entity import androidx.room.PrimaryKey @Entity(tableName = "users") data class UserEntity( @PrimaryKey val id: Int, val username: String, val email: String, val bio: String?, val profileImage: String?, val coverPhoto: String?, val followersCount: Int = 0, val followingCount: Int = 0, val postsCount: Int = 0, val verified: Boolean = false ) @Entity(tableName = "posts") data class PostEntity( @PrimaryKey val id: Int, val userId: Int, val username: String, val profileImage: String?, val content: String, val mediaUrl: String?, // JSON array as string val likesCount: Int, val commentsCount: Int, val isLiked: Boolean, val createdAt: String, val updatedAt: String ) @Entity(tableName = "comments") data class CommentEntity( @PrimaryKey val id: Int, val postId: Int, val userId: Int, val username: String, val profileImage: String?, val content: String, val createdAt: String ) @Entity(tableName = "stories") data class StoryEntity( @PrimaryKey val id: Int, val userId: Int, val username: String, val profileImage: String?, val mediaUrl: String, val expiresAt: String, val createdAt: String )