TrackEntity

data class TrackEntity(val trackId: Int = 0, val name: String, val description: String?, val createdAt: Long)

Room database entity representing a Track.

This is the persistence-layer model stored in the local DB. It maps directly to the "tracks" table.

Constructors

Link copied to clipboard
constructor(trackId: Int = 0, name: String, description: String?, createdAt: Long)

Properties

Link copied to clipboard

Epoch timestamp (in millis) when the track was created.

Link copied to clipboard

Optional description of the track.

Link copied to clipboard

Human-readable name of the track.

Link copied to clipboard
val trackId: Int = 0

Primary key, auto-generated.

Functions

Link copied to clipboard

Converts a TrackEntity (database entity) into a domain Track object, including its list of Waypoints.