DAO là interface với các method cho thao tác CRUD trên database. Bạn annotate method với @Query, @Insert, @Update, @Delete. Room sinh implementation lúc compile.
Ví dụ: @Query("SELECT * FROM users WHERE id = :id") suspend fun getUser(id: Int): User. DAO là nơi định nghĩa query, và dùng suspend function giúp query tự động chạy trên background thread.