-- 表名: collect_info
-- 描述: 收集信息

CREATE TABLE collect_info
(
    id          INTEGER PRIMARY KEY AUTOINCREMENT, -- 自增主键 id
    name        TEXT,                              -- 生产线id
    lon         REAL,                              -- 经度
    lat         REAL,                              -- 纬度
    create_time TEXT                               -- 创建时间，格式 'YYYY-MM-DD HH:MM:SS'
);

-- 插入 30 条测试数据
-- 数据规则说明：
--   1. 生产线名称依次为 '生产线1' ~ '生产线30'
--   2. 经度从 116.397128 起，每条记录递增 0.1
--   3. 纬度从 39.916527 起，每条记录递增 0.1
--   4. 创建时间从 '2023-01-01 08:00:00' 起，每条记录递增 5 分钟

INSERT INTO collect_info (name, lon, lat, create_time)
VALUES ('生产线1', 116.397128, 39.916527, '2023-01-01 08:00:00'),
       ('生产线2', 116.497128, 40.016527, '2023-01-01 08:05:00'),
       ('生产线3', 116.597128, 40.116527, '2023-01-01 08:10:00'),
       ('生产线4', 116.697128, 40.216527, '2023-01-01 08:15:00'),
       ('生产线5', 116.797128, 40.316527, '2023-01-01 08:20:00'),
       ('生产线6', 116.897128, 40.416527, '2023-01-01 08:25:00'),
       ('生产线7', 116.997128, 40.516527, '2023-01-01 08:30:00'),
       ('生产线8', 117.097128, 40.616527, '2023-01-01 08:35:00'),
       ('生产线9', 117.197128, 40.716527, '2023-01-01 08:40:00'),
       ('生产线10', 117.297128, 40.816527, '2023-01-01 08:45:00'),
       ('生产线11', 117.397128, 40.916527, '2023-01-01 08:50:00'),
       ('生产线12', 117.497128, 41.016527, '2023-01-01 08:55:00'),
       ('生产线13', 117.597128, 41.116527, '2023-01-01 09:00:00'),
       ('生产线14', 117.697128, 41.216527, '2023-01-01 09:05:00'),
       ('生产线15', 117.797128, 41.316527, '2023-01-01 09:10:00'),
       ('生产线16', 117.897128, 41.416527, '2023-01-01 09:15:00'),
       ('生产线17', 117.997128, 41.516527, '2023-01-01 09:20:00'),
       ('生产线18', 118.097128, 41.616527, '2023-01-01 09:25:00'),
       ('生产线19', 118.197128, 41.716527, '2023-01-01 09:30:00'),
       ('生产线20', 118.297128, 41.816527, '2023-01-01 09:35:00'),
       ('生产线21', 118.397128, 41.916527, '2023-01-01 09:40:00'),
       ('生产线22', 118.497128, 42.016527, '2023-01-01 09:45:00'),
       ('生产线23', 118.597128, 42.116527, '2023-01-01 09:50:00'),
       ('生产线24', 118.697128, 42.216527, '2023-01-01 09:55:00'),
       ('生产线25', 118.797128, 42.316527, '2023-01-01 10:00:00'),
       ('生产线26', 118.897128, 42.416527, '2023-01-01 10:05:00'),
       ('生产线27', 118.997128, 42.516527, '2023-01-01 10:10:00'),
       ('生产线28', 119.097128, 42.616527, '2023-01-01 10:15:00'),
       ('生产线29', 119.197128, 42.716527, '2023-01-01 10:20:00'),
       ('生产线30', 119.297128, 42.816527, '2023-01-01 10:25:00');
