Entity plan
A price plan.
Subject areas: Billing
Attributes
| # | Name | Type | Null | Default | Key | Terms | Description |
|---|---|---|---|---|---|---|---|
| 1 | id | bigint | no | PK | |||
| 2 | code | text(40) | no | UQ | |||
| 3 | monthly_price | decimal(10, 2) | no |
Keys
| Kind | Name | Attributes |
|---|---|---|
| primary | pk_plan | id |
| unique | uq_plan_code | code |
Relationships
| Name | Role | Other entity | Cardinality | Attributes | Identifying | On delete | On update |
|---|---|---|---|---|---|---|---|
| subscription_plan | parent | subscription | one to many | subscription.plan_id -> plan.id | no | restrict | no_action |
Physical
lite (sqlite): main.plan
| # | Name | Type | Null | Default | Identity | Collation | Attribute | Comment |
|---|---|---|---|---|---|---|---|---|
| 1 | id | integer | no | by_default | id | |||
| 2 | code | text | no | code | ||||
| 3 | monthly_price | numeric | no | monthly_price |
- primary key pk_plan (id)
- unique uq_plan_code (code)
pg (postgresql): app.plan
A price plan.
| # | Name | Type | Null | Default | Identity | Collation | Attribute | Comment |
|---|---|---|---|---|---|---|---|---|
| 1 | id | bigint | no | always | id | |||
| 2 | code | varchar(40) | no | code | ||||
| 3 | monthly_price | numeric(10, 2) | no | monthly_price |
- primary key pk_plan (id)
- unique uq_plan_code (code)