2025-08-26 14:13:09 -06:00
|
|
|
# Poll-system
|
|
|
|
|
|
2025-08-27 13:21:11 -06:00
|
|
|
# ADDRESSES:
|
|
|
|
|
|
|
|
|
|
- A giant dataset of all the addresses and their log,lat location (not interactive)
|
|
|
|
|
- A user able to see his ward addresses
|
|
|
|
|
- Assing the address to a user whose role is leader or volunteer
|
|
|
|
|
- mass assign addresses to the user, multiple houses can be assined ith tiem left blank
|
|
|
|
|
- we can assing only after checking id the volunter is free on that day and time
|
|
|
|
|
- volunteer schedualing their time and date
|
|
|
|
|
- view the volunteers schedualling preference
|
|
|
|
|
|
|
|
|
|
# TODO
|
|
|
|
|
|
|
|
|
|
## VOLUNTEER
|
|
|
|
|
|
|
|
|
|
- Volunteer Schdual
|
|
|
|
|
- Appointment
|
|
|
|
|
|
|
|
|
|
## APPOINTMENT
|
|
|
|
|
|
2025-08-27 17:54:45 -06:00
|
|
|
```sql
|
2025-08-27 13:21:11 -06:00
|
|
|
create table user_addresses
|
|
|
|
|
(
|
|
|
|
|
user_id integer not null
|
|
|
|
|
references users
|
|
|
|
|
on delete cascade,
|
|
|
|
|
address_line1 varchar(200) not null,
|
|
|
|
|
address_line2 varchar(200),
|
|
|
|
|
city varchar(100),
|
|
|
|
|
province varchar(100),
|
|
|
|
|
country varchar(100),
|
|
|
|
|
postal_code varchar(20) not null,
|
|
|
|
|
created_at timestamp default now(),
|
|
|
|
|
updated_at timestamp default now(),
|
|
|
|
|
primary key (user_id, address_line1, postal_code)
|
2025-08-27 17:54:45 -06:00
|
|
|
);
|
|
|
|
|
```
|