datumforge / datum

Datum's central server
https://datum.net
Apache License 2.0
53 stars 7 forks source link

feat: first cut of the entity and contact schemas #1098

Open golanglemonade opened 5 days ago

golanglemonade commented 5 days ago

This adds the basic schemas for entities and contacts and the ability to associate them to each other:

Entities

go run cmd/cli/main.go entity get -i 01J1X89DVCD79EC4BMSA9NYM9S -z json
{
  "entity": {
    "contacts": [
      {
        "address": "",
        "company": "datum",
        "email": "mitb@matty.net",
        "fullName": "Matt Anderson",
        "id": "01J1X8D8VJM3G7H6WX25GFZSCS",
        "phoneNumber": "555-867-5309",
        "title": "cat typist"
      },
      {
        "address": "",
        "company": "datum",
        "email": "sfunk@funky.net",
        "fullName": "Sarah Funkhouser",
        "id": "01J1X8XNCDWP6F2GS02536P63F",
        "phoneNumber": "303-867-5309",
        "title": "gopher"
      }
    ],
    "createdAt": "2024-07-03T21:33:56.502593Z",
    "createdBy": "01J1TEBX83FW9W1BXQ2MQAB25H",
    "description": "",
    "displayName": "mitb",
    "entityType": "ORGANIZATION",
    "id": "01J1X89DVCD79EC4BMSA9NYM9S",
    "name": "mitb",
    "ownerID": "01J1TECHXM99QSCYA125P8SNE7",
    "updatedAt": "2024-07-03T21:45:10.116133Z",
    "updatedBy": "01J1TEBX83FW9W1BXQ2MQAB25H"
  }
}
sonarcloud[bot] commented 5 days ago

Quality Gate Passed Quality Gate passed

Issues
6 New issues
0 Accepted issues

Measures
0 Security Hotspots
15.9% Coverage on New Code
14.2% Duplication on New Code

See analysis details on SonarCloud