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
383 B

  1. CREATE TABLE IF NOT EXISTS queries (
  2. id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  3. title TEXT NOT NULL,
  4. created_at TIMESTAMPTZ NOT NULL DEFAULT now()
  5. );
  6. CREATE TABLE IF NOT EXISTS query_messages (
  7. id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  8. query_id UUID REFERENCES queries(id),
  9. message TEXT NOT NULL,
  10. created_at TIMESTAMPTZ NOT NULL DEFAULT now()
  11. );