| 1 | import { Model } from 'objection'; |
| 2 | |
| 3 | export class GroupModel extends Model { |
| 4 | static override tableName = 'groups'; |
| 5 | |
| 6 | id!: string; |
| 7 | |
| 8 | encrypted_name!: Uint8Array; |
| 9 | |
| 10 | main_page_id!: string; |
| 11 | |
| 12 | user_id!: string | null; |
| 13 | |
| 14 | encrypted_rehashed_password_hash!: Uint8Array | null; |
| 15 | |
| 16 | access_keyring!: Uint8Array | null; |
| 17 | encrypted_content_keyring!: Uint8Array; |
| 18 | |
| 19 | public_keyring!: Uint8Array; |
| 20 | encrypted_private_keyring!: Uint8Array; |
| 21 | |
| 22 | permanent_deletion_date!: Date | null; |
| 23 | |
| 24 | are_join_requests_allowed!: boolean; |
| 25 | } |