1
0
mirror of https://github.com/actix/examples synced 2024-12-04 18:51:55 +01:00
examples/sqlx_todo/schema.sql
Milan Zivkovic 8dab533b40
Simple Todo API using actix-web and sqlx with postgresql database (#303)
* Simple Todo application using Actix-web with SQLx and PostgreSQL

* fix issue with not matching project name

* remove comment

* - downgrade on actix-web 2.0.0
- fixed typo
- renamed .env-example to .env.example
- removed comments
2020-04-23 17:03:04 +09:00

6 lines
152 B
SQL

CREATE TABLE IF NOT EXISTS todos (
id SERIAL PRIMARY KEY,
description TEXT NOT NULL,
done BOOLEAN NOT NULL DEFAULT FALSE
);