From 6d194a3ff1cb9e76c02e25f02358953ddefdd852 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 21 Feb 2024 12:10:29 +0100 Subject: [PATCH 1/1] Add google token entity --- Resources/config/doctrine/GoogleToken.orm.yml | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Resources/config/doctrine/GoogleToken.orm.yml diff --git a/Resources/config/doctrine/GoogleToken.orm.yml b/Resources/config/doctrine/GoogleToken.orm.yml new file mode 100644 index 0000000..07712e9 --- /dev/null +++ b/Resources/config/doctrine/GoogleToken.orm.yml @@ -0,0 +1,43 @@ +Rapsys\AirBundle\Entity\GoogleToken: + type: entity + #repositoryClass: Rapsys\AirBundle\Repository\GoogleTokenRepository + table: google_tokens + id: + id: + type: integer + generator: + strategy: AUTO + options: + unsigned: true + fields: + mail: + type: string + length: 254 + access: + type: string + length: 2048 + refresh: + type: string + length: 512 + nullable: true + expired: + type: datetime + created: + type: datetime + updated: + type: datetime + manyToOne: + user: + targetEntity: Rapsys\AirBundle\Entity\User + inversedBy: googleTokens + joinColumn: + nullable: false + oneToMany: + googleCalendars: + targetEntity: Rapsys\AirBundle\Entity\GoogleCalendar + mappedBy: googleToken + uniqueConstraints: + user_mail: + columns: [ user_id, mail ] + lifecycleCallbacks: + preUpdate: ['preUpdate'] -- 2.41.1