Skip to content

Commit

Permalink
Merge pull request #57 from aura-nw/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
harisato authored Oct 12, 2024
2 parents f91340c + ddfb1f7 commit 0910da7
Show file tree
Hide file tree
Showing 150 changed files with 6,536 additions and 369 deletions.
43 changes: 0 additions & 43 deletions hasura/metadata/databases/punkga-pg/tables/public_albums.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,3 @@ array_relationships:
table:
name: artworks
schema: public
select_permissions:
- role: anonymous
permission:
columns:
- created_at
- creator_id
- description
- disable
- id
- name
- show
- thumbnail_url
- updated_at
filter: {}
allow_aggregations: true
- role: creator
permission:
columns:
- created_at
- creator_id
- description
- disable
- id
- name
- show
- thumbnail_url
- updated_at
filter: {}
allow_aggregations: true
- role: user
permission:
columns:
- created_at
- creator_id
- description
- disable
- id
- name
- show
- thumbnail_url
- updated_at
filter: {}
allow_aggregations: true
20 changes: 1 addition & 19 deletions hasura/metadata/databases/punkga-pg/tables/public_artworks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,23 @@ select_permissions:
- role: anonymous
permission:
columns:
- album_id
- contest_id
- contest_round
- created_at
- creator_id
- id
- name
- source_url
- updated_at
- url
filter: {}
allow_aggregations: true
- role: creator
permission:
columns:
- album_id
- contest_id
- contest_round
- creator_id
- id
- name
- source_url
- url
- created_at
- updated_at
filter: {}
allow_aggregations: true
- role: user
permission:
columns:
- album_id
- contest_id
- contest_round
- creator_id
- id
- name
- source_url
- url
- created_at
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ select_permissions:
- revoked_timestamp
- roles
- signup_methods
- ton_wallet_address
- updated_at
- wallet_address
computed_fields:
Expand All @@ -110,7 +109,6 @@ update_permissions:
- gender
- nickname
- picture
- ton_wallet_address
- wallet_address
filter:
id:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
table:
name: character_total_likes
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
table:
name: creator_request
schema: public
object_relationships:
- name: creator
using:
foreign_key_constraint_on: creator_id
- name: manga
using:
foreign_key_constraint_on: manga_id
insert_permissions:
- role: creator
permission:
check:
creator_id:
_eq: X-Hasura-User-Id
columns:
- status
- type
- creator_id
- id
- manga_id
- data
- created_at
- updated_at
select_permissions:
- role: creator
permission:
columns:
- status
- type
- creator_id
- id
- manga_id
- data
- created_at
- updated_at
filter:
creator_id:
_eq: X-Hasura-User-Id
allow_aggregations: true
update_permissions:
- role: creator
permission:
columns:
- status
- type
- creator_id
- id
- manga_id
- data
- created_at
- updated_at
filter:
creator_id:
_eq: X-Hasura-User-Id
check:
creator_id:
_eq: X-Hasura-User-Id
12 changes: 8 additions & 4 deletions hasura/metadata/databases/punkga-pg/tables/public_likes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,40 @@ insert_permissions:
user_id: x-hasura-User-Id
columns:
- chapter_id
- created_at
- id
- story_character_id
- user_id
- created_at
select_permissions:
- role: anonymous
permission:
columns:
- chapter_id
- created_at
- id
- story_character_id
- user_id
- created_at
filter: {}
allow_aggregations: true
- role: user
permission:
columns:
- chapter_id
- created_at
- id
- story_character_id
- user_id
- created_at
filter: {}
allow_aggregations: true
update_permissions:
- role: user
permission:
columns:
- chapter_id
- created_at
- id
- story_character_id
- user_id
- created_at
filter:
user_id:
_eq: X-Hasura-User-Id
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
table:
name: story_artwork
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
table:
name: story_artwork_character
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
table:
name: story_character
schema: public
object_relationships:
- name: authorizer_user
using:
foreign_key_constraint_on: user_id
- name: charater_total_likes
using:
manual_configuration:
column_mapping:
id: story_character_id
insertion_order: null
remote_table:
name: character_total_likes
schema: public
- name: story_ip_asset
using:
foreign_key_constraint_on: story_ip_asset_id
array_relationships:
- name: likes
using:
foreign_key_constraint_on:
column: story_character_id
table:
name: likes
schema: public
- name: user_collect_characters
using:
foreign_key_constraint_on:
column: story_character_id
table:
name: user_collect_character
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
table:
name: story_event_submission
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
table:
name: story_ip_asset
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
table:
name: story_manga
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
table:
name: story_manga_character
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
table:
name: user_collect_character
schema: public
object_relationships:
- name: story_character
using:
foreign_key_constraint_on: story_character_id
10 changes: 10 additions & 0 deletions hasura/metadata/databases/punkga-pg/tables/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
- "!include public_chapter_languages.yaml"
- "!include public_chapter_total_likes.yaml"
- "!include public_chapters.yaml"
- "!include public_character_total_likes.yaml"
- "!include public_contest.yaml"
- "!include public_creator_request.yaml"
- "!include public_creators.yaml"
- "!include public_donate_history.yaml"
- "!include public_email_subscribe.yaml"
Expand All @@ -30,6 +32,13 @@
- "!include public_repeat_quests.yaml"
- "!include public_request_log.yaml"
- "!include public_social_activities.yaml"
- "!include public_story_artwork.yaml"
- "!include public_story_artwork_character.yaml"
- "!include public_story_character.yaml"
- "!include public_story_event_submission.yaml"
- "!include public_story_ip_asset.yaml"
- "!include public_story_manga.yaml"
- "!include public_story_manga_character.yaml"
- "!include public_subscribers.yaml"
- "!include public_system_custodial_wallet.yaml"
- "!include public_system_key.yaml"
Expand All @@ -42,6 +51,7 @@
- "!include public_top_user_donate.yaml"
- "!include public_user_campaign.yaml"
- "!include public_user_campaign_reward.yaml"
- "!include public_user_collect_character.yaml"
- "!include public_user_level.yaml"
- "!include public_user_quest.yaml"
- "!include public_user_quest_reward.yaml"
Expand Down
Loading

0 comments on commit 0910da7

Please sign in to comment.