RustRover cargo-generate template: Axum + Vue 3 + TypeScript + Tailwind + sqlx
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 line
355 B

  1. CREATE EXTENSION IF NOT EXISTS pgcrypto;
  2. CREATE TABLE IF NOT EXISTS items (
  3. id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  4. name TEXT NOT NULL,
  5. description TEXT,
  6. created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
  7. updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
  8. );
  9. CREATE INDEX IF NOT EXISTS items_created_at_idx ON items (created_at DESC);