From: Raphaƫl Gertz Date: Wed, 21 Feb 2024 11:10:29 +0000 (+0100) Subject: Add google token entity X-Git-Tag: 0.3.0~87 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/6d194a3ff1cb9e76c02e25f02358953ddefdd852?ds=inline;hp=15bd07b88ef06f2f33a3dcc97ad7ab5b1a3624d4 Add google token entity --- 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']