1
0
mirror of https://github.com/actix/examples synced 2024-11-30 17:14:35 +01:00
examples/databases/postgres/sql/schema.sql

12 lines
292 B
MySQL
Raw Permalink Normal View History

2020-01-16 01:19:15 +01:00
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)
);