rollerverbrauch/app/schema.sql

26 lines
729 B
MySQL
Raw Permalink Normal View History

2015-03-06 21:58:53 +01:00
drop table if exists pitstops;
create table pitstops (
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
`date` TEXT NOT NULL,
2015-03-06 21:58:53 +01:00
`odometer` INTEGER NOT NULL,
`litres` REAL NOT NULL
2015-03-16 22:06:59 +01:00
);
2015-03-16 22:06:59 +01:00
drop table if exists services;
CREATE TABLE `services` (
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
`date` TEXT,
2015-03-16 22:06:59 +01:00
`odometer_planned` INTEGER NOT NULL,
`odometer_done` INTEGER,
`tasks` TEXT NOT NULL
2015-03-16 22:47:28 +01:00
);
drop table if exists users;
create table `users` (
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
`name` TEXT NOT NULL,
`salt` TEXT NOT NULL,
`password` TEXT NOT NULL
);
insert into users (name, salt, password) values ('shing19m', 'pL85Kl2U', '207357fdbf6f379c53bb5ab7fa0bc8c0072ae743973a510f551db7b5c90049b7');