12 lines
969 B
Bash
12 lines
969 B
Bash
#! /bin/bash
|
|
set -euo pipefail
|
|
|
|
mix phx.gen.schema User users name:string username:string password:string email:string dob:date gender_type:enum:trans:cis:nb gender_id:enum:fem:masc:combined:fluid:none bio:text affil:array:map perms:array:integer user_token:string pub_keys:map totp_secret:string ltotp:utc_datetime fido_priority:integer fido_creds:array:string fido_keys:array:map fido_enabled:boolean fido_active:boolean totp_enabled:boolean totp_active:boolean
|
|
mix ecto.migrate
|
|
mix phx.gen.schema Post posts title:string:unique abst:text auth_id:references:users rev_id:references:users slug:string content:text tags:array:string cat:string ledit:utc_datetime
|
|
mix ecto.migrate
|
|
mix phx.gen.schema Folio folios user_id:references:users resume:map showcase:map theme_uri:string
|
|
mix ecto.migrate
|
|
mix phx.gen.schema Comment comments post_id:references:posts reply_to:references:comments slug:string tripcode:string:unique content:text ledit:utc_datetime
|
|
mix ecto.migrate
|