mirror of
https://github.com/LeNei/axum-sqlx-template.git
synced 2026-02-13 22:56:19 +00:00
Base login setup
This commit is contained in:
12
migrations/20250328091229_add_user_table.up.sql
Normal file
12
migrations/20250328091229_add_user_table.up.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- Add up migration script here
|
||||
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
||||
|
||||
create table users (
|
||||
id uuid not null primary key default uuid_generate_v4(),
|
||||
username varchar(255) not null unique,
|
||||
password varchar(255) not null,
|
||||
created_at timestamptz not null default now(),
|
||||
updated_at timestamptz not null default now()
|
||||
);
|
||||
|
||||
select manage_updated_at('users');
|
||||
Reference in New Issue
Block a user