Commit Graph

18 Commits

Author SHA1 Message Date
d4b1b2f661 Companies table (#79)
* Add columns to companies:
* account_owner_id
* employees
* address

Add foreign key constraint companies_account_owner_id_fkey
to auth.users.id

* Add select permissions to:
* account_owner_id
* employees
* address

Add relationship between companies and auth.users.

* Update Companies interface to include:
* account_owner_id
* employees
* address

Opportunity is expected to be replace by actual opportunity in a separate PR.

* Add GetCompanies query

* Add initial companies table

* Update test to use mock apollo provider

* Update to match changed company column names

* Add company interface mapping tests

* Test entire object

* Add test for companies being rendered in table.

* Add test for sorting reduce.

* Fix prettier errors
2023-04-27 12:46:43 +02:00
04051e737f Fix long table scroll 2023-04-26 17:29:00 +02:00
6c7eb53333 Add seeds and move to uuid (#80)
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-04-26 16:42:01 +02:00
d4152fdcff Merge pull request #68 from twentyhq/cbo-add-user-to-workspaces-on-signup
Assign user to workspace on signin
2023-04-24 17:01:24 +02:00
7ae7efb523 Fix 2023-04-24 17:00:14 +02:00
6d2c8bbdf9 Assign user to workspace on signin 2023-04-24 14:53:48 +02:00
b5cbf219e3 Add write permissions for user to people and companies
Add insert, update, delete permissions without any custom checks.

It is assumes that custom checks will be added as a part of the
workspace authorization ticket.
2023-04-24 11:53:28 +02:00
678363d8fd Fix according to PR 2023-04-21 14:37:46 +02:00
c5f2850a3b Fetch jwt token from hasura-auth with refresh_token 2023-04-21 14:07:02 +02:00
cd18e952b9 Store refresh token on login 2023-04-21 09:33:57 +02:00
08f6e82e5b bugfix: rename hasura file 2023-04-20 15:13:32 +02:00
38e2e930b6 feature: add creation dates 2023-04-20 13:58:53 +02:00
63c31b4290 feature: add company and link person to company and workspace 2023-04-20 13:58:53 +02:00
79f274c355 feature: add person schema in hasura 2023-04-20 13:58:52 +02:00
ead01b4184 Migrate database to default 2023-04-20 12:35:51 +02:00
7ed8d60a00 Migrate database to twenty 2023-04-20 12:26:38 +02:00
39ffb0f90b Setup Hasura-auth locally 2023-04-19 17:49:09 +02:00
0445c03b51 Setup first hasura schema 2023-04-14 08:38:35 +02:00