Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments |
|---|---|---|---|---|---|---|---|---|
| id | VARCHAR | 36 | null |
|
|
|||
| accepted_at | DATETIME | 26 | √ | null |
|
|
||
| created_at | DATETIME | 26 | null |
|
|
|||
| expires_at | DATETIME | 26 | √ | null |
|
|
||
| grace_reason | VARCHAR | 500 | √ | null |
|
|
||
| grace_until | DATE | 10 | √ | null |
|
|
||
| last_reminder_at | DATETIME | 26 | √ | null |
|
|
||
| sent_at | DATETIME | 26 | √ | null |
|
|
||
| signer_email | VARCHAR | 255 | null |
|
|
|||
| signer_ip | VARCHAR | 45 | √ | null |
|
|
||
| signer_user_agent | VARCHAR | 512 | √ | null |
|
|
||
| status | enum('ACCEPTED', 'EXPIRED', 'PENDING', 'VOIDED') | 8 | null |
|
|
|||
| template_id | VARCHAR | 36 | null |
|
|
|||
| template_version | INT | 10 | null |
|
|
|||
| tenant_id | VARCHAR | 36 | null |
|
|
|||
| updated_at | DATETIME | 26 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| idx_tenant_agreements_status | Performance | Asc | status |
| uk_tenant_agreements_tenant_template | Must be unique | Asc/Asc | tenant_id + template_id |