| 1 | // Copyright 2022 The Archivista Contributors |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | package schemascip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/ |
| 16 | |
| 17 | import ( |
| 18 | "entgo.io/entscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/" |
| 19 | "entgo.io/ent/schema/edgescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/edge`/" |
| 20 | "entgo.io/ent/schema/fieldscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/" |
| 21 | "github.com/google/uuidscip-go gomod github.com/google/uuid v1.6.0 `github.com/google/uuid`/" |
| 22 | ) |
| 23 | |
| 24 | type Timestampscip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/Timestamp# struct { |
| 25 | entscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/.Schemascip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/Timestamp#Schema. |
| 26 | } |
| 27 | |
| 28 | func (Timestampscip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/Timestamp#) Fieldsscip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/Timestamp#Fields().() []entscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/.Fieldscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/Field# { |
| 29 | return []entscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/.Fieldscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/Field#{ |
| 30 | fieldscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/.UUIDscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/UUID().("id", uuidscip-go gomod github.com/google/uuid v1.6.0 `github.com/google/uuid`/.UUIDscip-go gomod github.com/google/uuid v1.6.0 `github.com/google/uuid`/UUID#{}).Defaultscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/uuidBuilder#Default().(uuidscip-go gomod github.com/google/uuid v1.6.0 `github.com/google/uuid`/.Newscip-go gomod github.com/google/uuid v1.6.0 `github.com/google/uuid`/New().).Immutablescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/uuidBuilder#Immutable().().Uniquescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/uuidBuilder#Unique().(), |
| 31 | fieldscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/.Stringscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/String().("type"), |
| 32 | fieldscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/.Timescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/Time().("timestamp"), |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | func (Timestampscip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/Timestamp#) Edgesscip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/Timestamp#Edges().() []entscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/.Edgescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/Edge# { |
| 37 | return []entscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/.Edgescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/Edge#{ |
| 38 | edgescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/edge`/.Fromscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/edge`/From().("signature", Signaturescip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/Signature#.Typescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/Interface#Type().).Refscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/edge`/inverseBuilder#Ref().("timestamps").Uniquescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/edge`/inverseBuilder#Unique().(), |
| 39 | } |
| 40 | } |