Created
March 7, 2022 14:03
-
-
Save evankirkiles/b1bb7b633063fc13b7fe24a2aaff0035 to your computer and use it in GitHub Desktop.
AWS Amplify: Sample Wardrobe Schema for Cascade Deletion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Outfit | |
@model | |
@auth(rules: [{ allow: owner }]) { | |
components: [OutfitComponent!] @hasMany | |
} | |
type OutfitComponent | |
@model | |
@auth(rules: [{ allow: owner }]) { | |
clotheImage: ClotheImage! @belongsTo | |
} | |
type Clothe | |
@model | |
@auth(rules: [{ allow: owner }]) { | |
images: [ClotheImage!]! @hasMany | |
} | |
type ClotheImage | |
@model | |
@auth(rules: [{ allow: owner }]) { | |
components: [OutfitComponent] @hasMany | |
clothe: Clothe! @belongsTo | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment