1
0
mirror of https://github.com/actix/examples synced 2024-12-05 03:01:55 +01:00
examples/database_interactions/pg/sql/schema.sql
2021-02-26 00:57:58 +00:00

12 lines
292 B
SQL

DROP SCHEMA IF EXISTS testing CASCADE;
CREATE SCHEMA testing;
CREATE TABLE testing.users (
id BIGSERIAL PRIMARY KEY,
email VARCHAR(200) NOT NULL,
first_name VARCHAR(200) NOT NULL,
last_name VARCHAR(200) NOT NULL,
username VARCHAR(50) UNIQUE NOT NULL,
UNIQUE (username)
);