hezarfen_backend
Clone
https://git.tahinli.com/archive/hezarfen_backend.git
0 watching0 forksRust8.3 MiB6d68754Ahmet Kaan Gümüş2 months ago566 commits
| 1 | use crateUserId; |
| 2 | |
| 3 | /// The (parent, student) pair — the table's natural composite primary key. |
| 4 | /// The same pair always maps to the same row, so linking is a single atomic |
| 5 | /// upsert with no find-then-insert race and one-row-per-pair by construction. |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | /// A parent account's tie to one student it may observe. Almost entirely a |
| 48 | /// read grant: it gates the parent's access to the student's reports (marks, |
| 49 | /// attendance, pomodoro). The single write it authorizes is the food program — |
| 50 | /// a parent books and cancels a linked child's meals, since paying for lunch |
| 51 | /// is a parent's job and a small child cannot do it themselves. |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 |