Files
Road_roller/src/service/rtkTrack.ts
2026-09-08 16:46:06 +08:00

25 lines
611 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* RTK 轨迹数据表
* 字段说明:
* - id:轨迹唯一标识符
* - work_record_id:作业记录 ID
* - timestamp:时间戳
* - latitude:纬度
* - longitude:经度
* - altitude:高度
* - speed:速度
* - heading:方向
*/
export const rtkTrackTableSql = `CREATE TABLE IF NOT EXISTS rtk_track (
id INTEGER PRIMARY KEY AUTOINCREMENT,
work_record_id INTEGER,
timestamp DATETIME,
latitude REAL,
longitude REAL,
altitude REAL,
speed REAL,
heading REAL,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (work_record_id) REFERENCES work_record(id)
)`