From 043f85580a58daed4caf58b19163fc2a92c30c15 Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Fri, 25 Jul 2025 11:29:30 -0400 Subject: [PATCH] Created a bash script for mix commands generating database schemas and migrating --- mixology.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 mixology.sh diff --git a/mixology.sh b/mixology.sh new file mode 100644 index 0000000..4a1c41d --- /dev/null +++ b/mixology.sh @@ -0,0 +1,11 @@ +#! /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 +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 \ No newline at end of file