-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add simple database creation script
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- execute this scrpit to create an sqlite DB | ||
drop table if exists todo; | ||
|
||
create table todo | ||
( | ||
id integer primary key autoincrement, | ||
title varchar(255) not null, | ||
description text, | ||
due_at timestamp, | ||
finished boolean default false | ||
); | ||
|
||
-- Insert some fake coder todos | ||
insert into todo (title, description, due_at) | ||
values ('Learn Python', 'Learn Python to be able to write some cool scripts', '2019-12-31 23:59:59'), | ||
('Learn Flask', 'Learn Flask to be able to write some cool web apps', '2019-12-31 23:59:59'), | ||
('Learn Django', 'Learn Django to be able to write some cool web apps', '2019-12-31 23:59:59'), | ||
('Learn React', 'Learn React to be able to write some cool web apps', '2019-12-31 23:59:59'), | ||
('Learn Vue', 'Learn Vue to be able to write some cool web apps', '2019-12-31 23:59:59'), | ||
('Learn Angular', 'Learn Angular to be able to write some cool web apps', '2019-12-31 23:59:59'); |