1package models
2
3import (
4 "database/sql"
5 "time"
6)
7
8// Organization represents an organization in the system.
9type Organization struct {
10 ID int64 `db:"id"`
11 Name sql.NullString `db:"name"`
12 ContactEmail string `db:"contact_email"`
13 CreatedAt time.Time `db:"created_at"`
14 UpdatedAt time.Time `db:"updated_at"`
15 Handle Handle `db:"handle"`
16}
17
18// OrganizationMember represents a member of an organization.
19type OrganizationMember struct {
20 ID int64 `db:"id"`
21 OrganizationID int64 `db:"org_id"`
22 UserID int64 `db:"user_id"`
23 CreatedAt time.Time `db:"created_at"`
24 UpdatedAt time.Time `db:"updated_at"`
25}